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.
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.
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
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
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