How do i exclude unmodified files in maven checkstyle? -
i use http://maven.apache.org/plugins/maven-checkstyle-plugin/ part of project build intent fail build on violation. however, since of projects exist , contains lot of existing code, prefer customize checks in way applies modified files (svn/git) , not whole project. there way achieve this?
you set pre-commit hook on repository run checkstyle on file add/update,that way there no need fail build, can block commit. refer use case: http://saturnnetwork.wordpress.com/2012/11/26/ultimate-architecture-enforcement-prevent-code-violations-at-code-commit-time/
Comments
Post a Comment