Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
student:checkstyle:start [2018/08/16 10:30] – created bernstdh | student:checkstyle:start [2023/12/01 08:47] (current) – bowersjc | ||
---|---|---|---|
Line 2: | Line 2: | ||
- [[ 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 | ||
+ | </ |