Package com.puppycrawl.tools.checkstyle
Class Main
- java.lang.Object
-
- com.puppycrawl.tools.checkstyle.Main
-
public final class Main extends Object
Wrapper command line program for the Checker.
-
-
Field Summary
Fields Modifier and Type Field Description static String
CREATE_LISTENER_EXCEPTION
A key pointing to the create listener exception message in the "messages.properties" file.static String
ERROR_COUNTER
A key pointing to the error counter message in the "messages.properties" file.static String
LOAD_PROPERTIES_EXCEPTION
A key pointing to the load properties exception message in the "messages.properties" file.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
main(String... args)
Loops over the files specified checking them for errors.
-
-
-
Field Detail
-
ERROR_COUNTER
public static final String ERROR_COUNTER
A key pointing to the error counter message in the "messages.properties" file.- See Also:
- Constant Field Values
-
LOAD_PROPERTIES_EXCEPTION
public static final String LOAD_PROPERTIES_EXCEPTION
A key pointing to the load properties exception message in the "messages.properties" file.- See Also:
- Constant Field Values
-
CREATE_LISTENER_EXCEPTION
public static final String CREATE_LISTENER_EXCEPTION
A key pointing to the create listener exception message in the "messages.properties" file.- See Also:
- Constant Field Values
-
-
Method Detail
-
main
public static void main(String... args) throws IOException
Loops over the files specified checking them for errors. The exit code is the number of errors found in all the files.- Parameters:
args
- the command line arguments.- Throws:
IOException
- if there is a problem with files access
-
-