Using Checkstyle to enforce 308 coding conventions

Windows and Linux instructions only.

  1. Install the Checkstyle eclipse plugin found here.
  2. Download the 308 style conventions file here.
  3. In eclipse, go to window->preferences... and click on Checkstyle on the left.
  4. In the Checkstyle pane, click on new.
  5. Select External Configuration File for the type.
  6. Click browse and select the 308style.xml file you downloaded.
  7. Type in any name and click OK.
  8. Set the new configuration as the default.

If Checkstyle reports an error, do the following.

  1. Click on Configure.
  2. Under the Other tab, remove VariableNameLength and LogicComment.