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

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -