PMD, CheckStyle and FindBugs

Version 1 by Olivier Fabre
on Jul 12, 2010 14:54.

compared with
Current by Olivier Fabre
on Jul 12, 2010 15:06.

Key
This line was removed.
This word was removed. This word was added.
This line was added.

Changes (17)

View Page History
h3. {color:#000000}{*}Install{*}{color}

{color:#333333}Update site : {color}{color:#006daf}[{color:#006daf}http://pmd.sourceforge.net/eclipse{color}|http://pmd.sourceforge.net/eclipse]{color}
{color:#333333}Update site : {color}{color:#006daf}\[{color}{color:#006daf}http://pmd.sourceforge.net/eclipse{color}\|http://pmd.sourceforge.net/eclipse\]

{color:#333333}Install PMD for eclipse 3.{color}
Install PMD for eclipse 3.

h3. {color:#000000}{*}Configure{*}{color}
{color:#333333}Then remove all rules.{color}

{color:#333333}Then import rule set from : "dragon-quality" projet under "src/main/resources". The file to import is "pmd.xml". Import by reference.{color}

h3. {color:#000000}{*}Use it{*}{color}
{color:#333333}Before all commit : try to remove all priority 1 and 2 violations. If you could remove other violations quickly, do it. If you don't understand a rule, don't spend to much time on it and report it to the project owner.{color}

{color:#333333}For more information : go to {color}{color:#006daf}[{color:#006daf}http://pmd.sourceforge.net/{color}|http://pmd.sourceforge.net/]{color}{color:#333333}.{color} to {color}{color:#006daf}\[{color}{color:#006daf}http://pmd.sourceforge.net/{color}\|http://pmd.sourceforge.net/\].

h2. {color:#000000}{*}CheckStyle{*}{color}
h3. {color:#000000}{*}Install{*}{color}

{color:#333333}Update site : {color}{color:#006daf}[{color:#006daf}http://eclipse-cs.sf.net/update/{color}|http://eclipse-cs.sf.net/update/]{color}
{color:#333333}Update site : {color}{color:#006daf}\[{color}{color:#006daf}http://eclipse-cs.sf.net/update/{color}\|http://eclipse-cs.sf.net/update/\]

{color:#333333}Install Checkstyle plugin version 5.x and Migration plugin from 4.x to 5.x{color}

h3. {color:#000000}{*}Configure{*}{color}
{color:#333333}Go to : Windows > Preferences > Checktyle{color}

{color:#333333}Then import the rule set file by clicking on "New...". The file is in the "dragon-quality" projet under "src/main/resources". The file to import is "checkstyle.xml".{color}

{color:#333333}Then chose it as default by clicking on the "Set as default" button.{color}
{color:#333333}Before all commit : try to remove all errors and warnings. If you could remove other violations quickly, do it. If you don't understand a rule, don't spend to much time on it and report it to the project owner.{color}

{color:#333333}For more information : go to {color}{color:#006daf}[{color:#006daf}http://eclipse-cs.sourceforge.net/{color}|http://eclipse-cs.sourceforge.net/]{color}{color:#333333}.{color} to {color}{color:#006daf}\[{color}{color:#006daf}http://eclipse-cs.sourceforge.net/{color}\|http://eclipse-cs.sourceforge.net/\].

h2. {color:#000000}{*}Findbugs{*}{color}
h3. {color:#000000}{*}Install{*}{color}

{color:#333333}Update site : {color}{color:#006daf}[{color:#006daf}http://findbugs.cs.umd.edu/eclipse/{color}|http://findbugs.cs.umd.edu/eclipse/]{color}
{color:#333333}Update site : {color}{color:#006daf}\[{color}{color:#006daf}http://findbugs.cs.umd.edu/eclipse/{color}\|http://findbugs.cs.umd.edu/eclipse/\]

{color:#333333}Install Findbugs plugin.{color}
Install Findbugs plugin.

h3. {color:#000000}{*}Configure{*}{color}
{color:#333333}Go to : Windows > Preferences > Java > Findbugs > Filter Files{color}

{color:#333333}Then import the rule set file by clicking on "Add..." button of the "Include filter files" section. The file is in the "dragon-quality" projet under "src/main/resources". The file to import is "findbug.xml".{color}

h3. {color:#000000}{*}Use it{*}{color}
{color:#333333}Before all commit : try to remove all red bugs. If you could remove other bugs quickly, do it. If you don't understand a rule, don't spend to much time on it and report it to the project owner.{color}

{color:#333333}For more information : go to {color}{color:#006daf}[{color:#006daf}http://findbugs.sourceforge.net/manual/eclipse.html{color}|http://findbugs.sourceforge.net/manual/eclipse.html]{color}{color:#333333}.{color} to {color}{color:#006daf}\[{color}{color:#006daf}http://findbugs.sourceforge.net/manual/eclipse.html{color}\|http://findbugs.sourceforge.net/manual/eclipse.html\].