X

Geertjan's Blog

  • October 12, 2007

Checkstyle

Geertjan Wielenga
Product Manager
If you look in contrib/tasklist, you will find the sources of a module called Checkstyle, which integrates Checkstyle into the IDE. As stated on the Checkstyle site, it is "a development tool to help programmers write Java code that adheres to a coding standard. It automates the process of checking Java code to spare humans of this boring (but important) task." It is also interesting as an example of the new NetBeans IDE Task List API. Soon, I will be investigating how to use that API, with the Checkstyle plugin as my entry point.

Here's me checking the style of the module that integrates Checkstyle into the IDE:

Join the discussion

Comments ( 9 )
  • Tor Norbye Friday, October 12, 2007

    FYI - I think the SQE plugin (https://sqe.dev.java.net/) integrates Checkstyle and it also integrates with the tasklist!


  • Geertjan Friday, October 12, 2007

    Thanks! But, for someone studying the Task List API, having working sources that focus on that specific API are more useful than something that encompasses other things too. So, from a learning perspective, I'd stick with this one. From a usage perspective -- head for the one Tor refers to above.


  • Sven Reimers Saturday, October 13, 2007

    Believe me or not - we are really trying to get the sources for SQE to dev.java.net - but you know open sourcing takes time - you do not want all the world look at your code and start laughing or cursing ;-)

    Perhaps we get it done before Javapolis ;-)


  • jiai Saturday, October 13, 2007

    From your blog entry from September 29, 2007 I know you are interested in Hudson. Did you ever tried the violations plugin? There you can configure checkstyle-, pmd-, cpd- and findbugs-checks in a synoptic view.

    I'm a little bit sceptic if it is wise to overload an IDE with a plethora of functions.


  • Sven Reimers Saturday, October 13, 2007

    Integrating such tools in an IDE has the advantage of a quick turn around time. Select your favourite (FindBugs/Checkstyle/PMD) and just try it out. On the other hand integration in continous tools like Hudson is quite useful for monitoring the software quality. So we do use both.


  • Mck Sunday, October 14, 2007

    There's an older tasklist checkstyle module that uses the older tasklist api under the tasklist module (as opposed to contrib/tasklist).

    This has some autocomplete features some of the simple checkstyle violations.

    Hopefully some of this code can be brought over ;-)


  • Petr Hejl Tuesday, October 23, 2007

    There exists yet another checkstyle plugin with support of the editor annotations and tasklist integration. http://www.sickboy.cz/checkstyle


  • Rajnikant Joshi Monday, April 13, 2009

    I am quite novice in checkstyle. How could I integrate checkstyle plugins with my netbeans 6.5 in windows platform.

    Thanks in advance.


  • HoLyToNy Saturday, May 30, 2009

    I don't think you can.


Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.