Hello,
We recently started implementing checkstyle in our project, so far it's worked great. However, since our project is rather large, it takes about 3 minutes to run checkstyle on all 13000+ java files :-/ we run checkstyle on our CI server, but it would be better for developers to be able to run it locally without having to check files that they didn't modify. I know the best solution is to modularize our project (and we have that in our roadmap) but for now I was exploring using ant selectors, e.g
<target name="checkstyle">
<checkstyle config="checkstyle.xml">
<fileset dir="..." includes="**/*.java">
<modified/>
</fileset>
</checkstyle>
</target>
This should in theory run checkstyle only on files that have been modified. The problem is that when I add that, checkstyle finds no files in the fileset
checkstyle:
[checkstyle] Running Checkstyle 6.3 on 0 files
Would it be possible, or useful to support selectors in checkstyle? If so, it would need to remove fails with failures from the cache so subsequent runs continue to test those...
Thanks in advance!