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



A mező tartalma nem nyilvános.
  • A webcímek és email címek automatikusan linkekké alakulnak.
  • Engedélyezett HTML elemek: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • A sorokat és bekezdéseket a rendszer automatikusan felismeri.

További információ a formázási lehetőségekről

Ez a kérdés az automatizált üzenetek megelőzésére szolgál.
Copy the characters (respecting upper/lower case) from the image.