Upgrading GWT Checkstyle Setup to support Checkstyle 5

GWT, the Google Web Toolkit is a widely known framework that allows developers to use the Java language to write AJAX Web Applications.

It is a less known fact that the GWT developers have a pretty strict code style in effect. Of course any policy will only work as intended, if it is enforced. GWT uses Checkstyle to enforce the code style rules. The source tree also includes instructions and code formatter specifications for the Eclipse IDE. One nice thing about this code style is that the methods and optionally the fields are ordered alphabetically, which makes the diffs much easier to read.

Unfortunately Checkstyle 5 is not completely backwards compatible with Checkstyle 4, so the GWT rules need to be updated.
Also, the latest Eclipse-CS plugin, no longer supports the old method for adding extension rules, it now requires an Eclipse plugin for this, according to the documentation.

I updated the Checkstyle rules + created a plugin project from the custom checks for the new Eclipse-CS plugin.

Trackback URL for this post:

gwt-checkstyle-update.zip5.27 KB
gwt-checkstyle-eclipse-plugin.zip20.73 KB


Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options

This question is to prevent automated spam submissions.
Copy the characters (respecting upper/lower case) from the image.