phpcbf工具帮助

```

[root@localhost workspace]# phpcbf --help
Usage: phpcbf [-nwli] [-d key[=value]] [--stdin-path=<stdinPath>]
    [--standard=<standard>] [--sniffs=<sniffs>] [--exclude=<sniffs>] [--suffix=<suffix>]
    [--severity=<severity>] [--error-severity=<severity>] [--warning-severity=<severity>]
    [--tab-width=<tabWidth>] [--encoding=<encoding>]
    [--extensions=<extensions>] [--ignore=<patterns>] [--bootstrap=<bootstrap>] <file> ...
        -n            Do not fix warnings (shortcut for --warning-severity=0)                   不修改警告
        -w            Fix both warnings and errors (on by default)                                    修改警告和错误
        -l            Local directory only, no recursion                                                    对文件夹不递归操作
        -i            Show a list of installed coding standards                                           查看已安装的代码基准
        -d            Set the [key] php.ini value to [value] or [true] if value is omitted            设置php.ini的参数默认为true
        --help        Print this help message
        --version     Print version information
        --no-patch    Do not make use of the "diff" or "patch" programs
        <file>        One or more files and/or directories to fix
        <stdinPath>   If processing STDIN, the file path that STDIN will be processed as
        <bootstrap>   A comma separated list of files to run before processing starts
        <encoding>    The encoding of the files being fixed (default is iso-8859-1)          代码编码格式
        <extensions>  A comma separated list of file extensions to fix                            文件后缀
                      (extension filtering only valid when checking a directory)
                      The type of the file can be specified using: ext/type
                      e.g., module/php,es/js
        <patterns>    A comma separated list of patterns to ignore files and directories       忽略的文件或文件夹
        <sniffs>      A comma separated list of sniff codes to include or exclude during fixing
                      (all sniffs must be part of the specified standard)
        <severity>    The minimum severity required to fix an error or warning
        <standard>    The name or path of the coding standard to use                               代码基准使用
        <suffix>      Write modified files to a filename using this suffix
                      ("diff" and "patch" are not used in this mode)
        <tabWidth>    The number of spaces each tab represents
```

转载于:https://my.oschina.net/chunhei2008/blog/805539

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值