Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
student:checkstyle:start [2018/09/06 17:26] – bernstdh | student:checkstyle:start [2023/12/01 08:47] (current) – bowersjc | ||
---|---|---|---|
Line 3: | Line 3: | ||
- [[ 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 | ||
+ | </ |