Install Checkstyle
- Start Eclipse
- Follow here and follow the Download & Installation section.
Configuring Checkstyle
- Download this file: CheckstyleConfig.xml. I recommend putting this file in your workspace directory
- In Eclipse: Windows:Preferences:Checkstyle
- Click on new
- Select “External Configuration File” (it defaults to Internal Configuration)
- Enter a name (e.g. MyCheckstylePrefs)
- Click on import
- Select the file you downloaded above
- Click on OK to save configuration
- Click on OK to close Windows:Preferences
- Set your project’s Checkstyle preferences by right-clicking on it, …
Comments