java - How to run checkstyle on edited lines in eclipse? -


i'm working on large codebase there many violated checkstyle rules. pushed towards sticking rules more strictly (the rules had been in place, weren't enforced).

so see violations in code edited. don't want see every violation, because distracting.

is there option, save action or builder can add project this?

i haven't found except run in background builder check files in eclipse project.

i'm running eclipse mars eclipse checkstyle plug-in 6.5.0.

well, eclipse-cs runs checkstyle on changed files (via checkstyle builder). performance reasons. still see issues flagged in entire code base. 'problems' view in eclipse can configured show warnings on selected file. in experience, these mechanisms combined enough efficiently navigate code base tens of thousands of warnings.

you still have drawback of prolonged wait initial build, because files checked @ least once. if problem, can configure checkstyle builder not run on files in sync source repository:

enter image description here


Comments