Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
student:checkstyle:start [2018/09/06 17:25] – bernstdh | student:checkstyle:start [2023/12/01 08:47] (current) – bowersjc | ||
---|---|---|---|
Line 2: | Line 2: | ||
- [[ student: | - [[ student: | ||
- | - [[ student: | + | - [[ student: |
+ | |||
+ | ===== Running Checkstyle from the Command Line ===== | ||
+ | |||
+ | Checkstyle is a Java program contained in the Checkstyle JAR file. To run it on a single java file, use the following command format: | ||
+ | |||
+ | < | ||
+ | java -jar <PATH TO CHECKSTYLE JAR> -c <PATH TO CHECKSTYLE CONFIGURATION XML> <PATH TO JAVA FILE> | ||
+ | </ | ||
+ | |||
+ | For example, if using the '' | ||
+ | |||
+ | < | ||
+ | java -jar checkstyle-9.1-all.jar -c google_checks.xml HashTable.java | ||
+ | </ |