Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
student:checkstyle:start [2018/09/06 17:25] bernstdhstudent:checkstyle:start [2023/12/01 08:47] (current) bowersjc
Line 2: Line 2:
  
   - [[ student:checkstyle:configuration-files | Configuration Files ]]   - [[ student:checkstyle:configuration-files | Configuration Files ]]
-  - [[ student:checkstyle:configuration-files | Common Defects ]]+  - [[ student:checkstyle:common-defects | Common Defects ]] 
 + 
 +===== 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:  
 + 
 +<code> 
 +java -jar <PATH TO CHECKSTYLE JAR> -c <PATH TO CHECKSTYLE CONFIGURATION XML> <PATH TO JAVA FILE> 
 +</code> 
 + 
 +For example, if using the ''checkstyle-9.1-all.jar'' version of Checkstyle on the Google configuration file ''google_checks.xml'' on the Java file ''HashTable.java'' all stored in current working directory, you would run:  
 + 
 +<code> 
 +java -jar checkstyle-9.1-all.jar -c google_checks.xml HashTable.java 
 +</code>