This task runs PHP_CodeSniffer Version 3+ to detect violations of a defined set of coding standards.
Table C.74: Attributes
Name | Type | Description | Default | Required |
---|---|---|---|---|
file | String | File or directory to check. | n/a | Yes |
bin | String | Path to phpcs binary. | phpcs | No |
cache | Boolean | Cache results between runs. | false | No |
ignoreAnnotations | Boolean | Ignore all phpcs annotations in code comments. | false | No |
checkreturn | Boolean | Whether to check the return code. | false | No |
level | String | Set the log level of generated messages.
Change this to verbose ,
if you only want output in verbose mode for example.
Valid log levels are one of
debug ,
info ,
verbose ,
warning or
error | info | No |