Menu

#148 checkstyle on save actions

6.2.0
open
nobody
None
1
2016-07-07
2015-02-17
No

Hi, would it be possible to launch checkstyle on save actions ?

I know it is possible through the build auto of eclipse, but on big multi module maven projects it is a waste of time and ressources to launch the build each time.

Discussion

  • Lars Koedderitzsch

    Hi,
    maybe I don't quite understand what you're asking but running Checkstyle on save is a feature present since day one.
    To enable this go to the properties of your project, section Checkstyle, and activate Checkstyle for your project(s).
    In this mode Checkstyle will take part in full builds AND in incremental builds - effectively when a resource is saved in the editor.
    There is no need to manually invoke a Checkstyle build or something.

    Also read here for starters: http://eclipse-cs.sourceforge.net/#!/project-setup

    Hope that helps,
    Lars

     
  • Florent TRIQUET

    Florent TRIQUET - 2015-02-19

    Hi,

    What I would like is checkstyle to be run only on the saved file without any build or incremental builds run on Eclipse. In my team since the "build automatically" feature costs a lot of ressources it is deactivated so we can't have automatic update of checkstyle without using "check code with checkstyle".

    thanks for your answer.
    Florent

     
  • Thomas Schürger

    Any solution for this? We have the same problem. We are not using "Build automatically" or even Build in Eclipse. Still we want Checkstyle to be executed everytime we open a Java class or save changes.

    At least a Save Action for Checkstyle would be great. Even better: also when a file is openend.

     

    Last edit: Thomas Schürger 2016-07-07

Log in to post a comment.