Class Main

java.lang.Object
com.puppycrawl.tools.checkstyle.Main

public final class Main extends Object
Wrapper command line program for the Checker.
  • Field Details

    • ERROR_COUNTER

      public static final String ERROR_COUNTER
      A key pointing to the error counter message in the "messages.properties" file.
      See Also:
    • 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:
    • 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:
  • Method Details

    • 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