View Source

h1. {color:#000000}{*}Eclipse Plugins{*}{color}


h2. {color:#000000}{*}PMD{*}{color}


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

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

Install PMD for eclipse 3.

h3. {color:#000000}{*}Configure{*}{color}

{color:#333333}Go to : Windows > Preferences > PMD > Configuration des règles{color}

{color:#333333}Then remove all rules.{color}

{color:#333333}Then import rule set from : "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}On a file you could do a right click and then go to PMD > Check code with PMD.{color}

{color:#333333}A report is generated with all violations.{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}{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}{color:#006daf}http://eclipse-cs.sf.net/update/{color}\|http://eclipse-cs.sf.net/update/\]

Install Checkstyle plugin version 5.x and Migration plugin from 4.x to 5.x

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 "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}

h3. {color:#000000}{*}Use it{*}{color}

{color:#333333}By default, all projects are automaticaly checked. You could deactivate checkstyle on a project : select the project and right click on "Checkstyle > Deactivate Checkstyle".{color}

{color:#333333}You could activate checkstyle on demand by right clicking on the resource (a projet or a simple java file) you want to check and click on "Checkstyle > Check code with checkstyle".{color}

{color:#333333}A report is generated with all violations.{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}{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}{color:#006daf}http://findbugs.cs.umd.edu/eclipse/{color}\|http://findbugs.cs.umd.edu/eclipse/\]

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 "quality" projet under "src/main/resources". The file to import is "findbug.xml".{color}

h3. {color:#000000}{*}Use it{*}{color}

{color:#333333}You could launch findbugs on a project : select the project and right click on "Findbugs > Find Bugs".{color}

{color:#333333}A report is generated with all possible bugs.{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}{color:#006daf}http://findbugs.sourceforge.net/manual/eclipse.html{color}\|http://findbugs.sourceforge.net/manual/eclipse.html\].