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: