Changes between Version 33 and Version 34 of DevelopersGuide/StyleGuide
- Timestamp:
- 2017-12-05T18:51:55+01:00 (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
DevelopersGuide/StyleGuide
v33 v34 27 27 * You should use '''checkstyle''' before patch/commit: `ant checkstyle` and check `checkstyle-josm.xml`; if you find running checkstyle slow for all files, run for changed files only: 28 28 {{{ 29 svn diff --summarize | awk '{ print $2 }' | xargs java -jar tools/checkstyle/checkstyle-7.1-all.jar -c tools/checkstyle/josm_checks.xml 29 #!bash 30 # make sure build2 dir exists, if it does not run 'ant checkstyle-compile' before 31 32 svn diff --summarize | awk '{ print $2 }' | grep "^[a-z]" | xargs \ 33 java -classpath "build2:tools/checkstyle/checkstyle-all.jar" \ 34 com.puppycrawl.tools.checkstyle.Main -c tools/checkstyle/josm_checks.xml 30 35 # or 31 git diff --name-only | xargs java -jar tools/checkstyle/checkstyle-7.1-all.jar -c tools/checkstyle/josm_checks.xml 36 git diff --name-only | xargs \ 37 java -classpath "build2:tools/checkstyle/checkstyle-all.jar" \ 38 com.puppycrawl.tools.checkstyle.Main -c tools/checkstyle/josm_checks.xml 32 39 }}} 33 40