Difference between revisions of "Checkstyle Eclipse"

From SIMA wiki
Jump to: navigation, search
(Eclipse)
(Get the plugin)
Line 6: Line 6:
  
 
===Get the plugin===
 
===Get the plugin===
 +
First go to the marketplace to fetch the plugin.
 
[[File:Eclipse plugin step 1.PNG]]
 
[[File:Eclipse plugin step 1.PNG]]
 
[[File:Eclipse plugin step 2.PNG]]
 
[[File:Eclipse plugin step 2.PNG]]
 +
After installation a restart will be needed to enable the plugin correctly. Once eclipse is running again, in the preferences a new register will be shown for the checkstyle configuration. To get there open up the preferences, either for a specific project or for eclipse in total.
 
[[File:Eclipse plugin step 3.PNG]]
 
[[File:Eclipse plugin step 3.PNG]]
 +
Now specify a new rule set with a link to the checkstyle.xml file.
 
[[File:Eclipse plugin step 4.PNG]]
 
[[File:Eclipse plugin step 4.PNG]]
 +
Save your configuration and ensure it is set to be active in the project you wish to use it as checkstyle files may be different for specific projects.
  
 
===Use the plugin===
 
===Use the plugin===

Revision as of 15:29, 17 February 2013

Checkstyle

The rulesets try to implement the Codeing Guidelines. If changes occur please carry them over to the checkstyle file.

Eclipse

To integrate the checkstyle file well with Eclipse I would recommend the Checkstyle Plugin that can be found in the marketplace.

Get the plugin

First go to the marketplace to fetch the plugin. Eclipse plugin step 1.PNG Eclipse plugin step 2.PNG After installation a restart will be needed to enable the plugin correctly. Once eclipse is running again, in the preferences a new register will be shown for the checkstyle configuration. To get there open up the preferences, either for a specific project or for eclipse in total. Eclipse plugin step 3.PNG Now specify a new rule set with a link to the checkstyle.xml file. Eclipse plugin step 4.PNG Save your configuration and ensure it is set to be active in the project you wish to use it as checkstyle files may be different for specific projects.

Use the plugin