Skip to content

Instantly share code, notes, and snippets.

@yifeiyin
Created June 3, 2020 04:50
Show Gist options
  • Save yifeiyin/2290c048df573fb46f32266317c474f6 to your computer and use it in GitHub Desktop.
Save yifeiyin/2290c048df573fb46f32266317c474f6 to your computer and use it in GitHub Desktop.
Java checkstyle using google format settings
curl \
https://github.com/checkstyle/checkstyle/releases/download/checkstyle-8.33/checkstyle-8.33-all.jar \
-o /tmp/deleteme-checkstyle-8.33-all.jar -sL
curl \
https://github.com/checkstyle/checkstyle/raw/ec015cd3529ddbb2005639782e1995e46c0a05d1/src/main/resources/google_checks.xml \
-o /tmp/deleteme-google_checks.xml -sL
java \
-jar /tmp/deleteme-checkstyle-8.33-all.jar \
-c /tmp/deleteme-google_checks.xml \
<files>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment