0
点赞
收藏
分享

微信扫一扫

checkstyle命令

闲鱼不咸_99f1 2022-01-06 阅读 56

java -jar checkstyle-8.15-all.jar -h

Usage: checkstyle [-dghjJtTV] [--executeIgnoredModules] [--tabWidth=<tabWidth>]
                  [-c=<configurationFile>] [-C=<checkerThreadsNumber>] [-f=<format>]
                  [-o=<outputPath>] [-p=<propertiesFile>] [-s=<suppressionLineColumnNumber>]
                  [-W=<treeWalkerThreadsNumber>] [-e=<exclude>]... [-x=<excludeRegex>]... <files>...
Checkstyle verifies that the specified source code files adhere to the specified rules. By default
errors are reported to standard out in plain format. Checkstyle requires a configuration XML file
that configures the checks to apply.
      <files>...            One or more source files to verify
      --executeIgnoredModules
                            Allows ignored modules to be run.
      --tabWidth=<tabWidth> Sets the length of the tab character. Used only with "-s" option. Default
                              value is 8
  -c=<configurationFile>    Sets the check configuration file to use.
  -C, --checker-threads-number=<checkerThreadsNumber>
                            (experimental) The number of Checker threads (must be greater than zero)
  -d, --debug               Print all debug logging of CheckStyle utility
  -e, --exclude=<exclude>   Directory path to exclude from CheckStyle
  -f=<format>               Sets the output format. Valid values: xml, plain. Defaults to plain
  -g, --generate-xpath-suppression
                            Generates to output a suppression.xml to use to suppress all violations from
                              user's config
  -h, --help                Show this help message and exit.
  -j, --javadocTree         Print Parse tree of the Javadoc comment
  -J, --treeWithJavadoc     Print full Abstract Syntax Tree of the file
  -o=<outputPath>           Sets the output file. Defaults to stdout
  -p=<propertiesFile>       Loads the properties file
  -s=<suppressionLineColumnNumber>
                            Print xpath suppressions at the file's line and column position. Argument is
                              the line and column number (separated by a : ) in the file that the
                              suppression should be generated for
  -t, --tree                Print Abstract Syntax Tree(AST) of the file
  -T, --treeWithComments    Print Abstract Syntax Tree(AST) of the file including comments
  -V, --version             Print version information and exit.
  -W, --tree-walker-threads-number=<treeWalkerThreadsNumber>
                            (experimental) The number of TreeWalker threads (must be greater than zero)
  -x, --exclude-regexp=<excludeRegex>
                            Regular expression of directory to exclude from CheckStyle
 

举报

相关推荐

0 条评论