- In Eclipse, click on Help -> Install New Software...
- Click on Add.. Enter the following:
- Name: Checkstyle for Eclipse Update Site
- URL: http://eclipse-cs.sf.net/update/
and click OK.
- You should see Checkstyle. Select the checkbox
next to it and click Next >
- Open new View > Choose Checkstyle violations
- Open any file and right click > Checkstyle
> Check code with Checkstyle
- Go to Preferences > Checkstyle > Rules
Configuration
- Choose new to import new rule set.
- Select type as “External configuration file”,
browse the path to your rule file and click Ok.
Note: Remember to set your new rule as Default
No comments:
Post a Comment