checkstyle命令

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
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值