Changes between Version 33 and Version 34 of DevelopersGuide/StyleGuide


Ignore:
Timestamp:
2017-12-05T18:51:55+01:00 (6 years ago)
Author:
cmuelle8
Comment:

updated manual checkstyle commands

Legend:

Unmodified
Added
Removed
Modified
  • DevelopersGuide/StyleGuide

    v33 v34  
    2727 * 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:
    2828{{{
    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
    3035    # 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
    3239}}}
    3340