|
19 | 19 | /** |
20 | 20 | * Stores the configuration used to run PHPCS and PHPCBF. |
21 | 21 | * |
22 | | - * @property string[] $files The files and directories to check. |
23 | | - * @property string[] $standards The standards being used for checking. |
24 | | - * @property int $verbosity How verbose the output should be. |
25 | | - * 0: no unnecessary output |
26 | | - * 1: basic output for files being checked |
27 | | - * 2: ruleset and file parsing output |
28 | | - * 3: sniff execution output |
29 | | - * @property bool $interactive Enable interactive checking mode. |
30 | | - * @property int $parallel Check files in parallel. |
31 | | - * @property bool $cache Enable the use of the file cache. |
32 | | - * @property bool $cacheFile A file where the cache data should be written |
33 | | - * @property bool $colors Display colours in output. |
34 | | - * @property bool $explain Explain the coding standards. |
35 | | - * @property bool $local Process local files in directories only (no recursion). |
36 | | - * @property bool $showSources Show sniff source codes in report output. |
37 | | - * @property bool $showProgress Show basic progress information while running. |
38 | | - * @property bool $quiet Quiet mode; disables progress and verbose output. |
39 | | - * @property bool $annotations Process phpcs: annotations. |
40 | | - * @property int $tabWidth How many spaces each tab is worth. |
41 | | - * @property string $encoding The encoding of the files being checked. |
42 | | - * @property string[] $sniffs The sniffs that should be used for checking. |
43 | | - * If empty, all sniffs in the supplied standards will be used. |
44 | | - * @property string[] $exclude The sniffs that should be excluded from checking. |
45 | | - * If empty, all sniffs in the supplied standards will be used. |
46 | | - * @property string[] $ignored Regular expressions used to ignore files and folders during checking. |
47 | | - * @property string $reportFile A file where the report output should be written. |
48 | | - * @property string $generator The documentation generator to use. |
49 | | - * @property string $filter The filter to use for the run. |
50 | | - * @property string[] $bootstrap One of more files to include before the run begins. |
51 | | - * @property int $reportWidth The maximum number of columns that reports should use for output. |
52 | | - * Set to "auto" for have this value changed to the width of the terminal. |
53 | | - * @property int $errorSeverity The minimum severity an error must have to be displayed. |
54 | | - * @property int $warningSeverity The minimum severity a warning must have to be displayed. |
55 | | - * @property bool $recordErrors Record the content of error messages as well as error counts. |
56 | | - * @property string $suffix A suffix to add to fixed files. |
57 | | - * @property string $basepath A file system location to strip from the paths of files shown in reports. |
58 | | - * @property bool $stdin Read content from STDIN instead of supplied files. |
59 | | - * @property string $stdinContent Content passed directly to PHPCS on STDIN. |
60 | | - * @property string $stdinPath The path to use for content passed on STDIN. |
61 | | - * @property bool $trackTime Whether or not to track sniff run time. |
| 22 | + * @property string[] $files The files and directories to check. |
| 23 | + * @property string[] $standards The standards being used for checking. |
| 24 | + * @property int $verbosity How verbose the output should be. |
| 25 | + * 0: no unnecessary output |
| 26 | + * 1: basic output for files being checked |
| 27 | + * 2: ruleset and file parsing output |
| 28 | + * 3: sniff execution output |
| 29 | + * @property bool $interactive Enable interactive checking mode. |
| 30 | + * @property int $parallel Check files in parallel. |
| 31 | + * @property bool $cache Enable the use of the file cache. |
| 32 | + * @property string $cacheFile Path to the file where the cache data should be written |
| 33 | + * @property bool $colors Display colours in output. |
| 34 | + * @property bool $explain Explain the coding standards. |
| 35 | + * @property bool $local Process local files in directories only (no recursion). |
| 36 | + * @property bool $showSources Show sniff source codes in report output. |
| 37 | + * @property bool $showProgress Show basic progress information while running. |
| 38 | + * @property bool $quiet Quiet mode; disables progress and verbose output. |
| 39 | + * @property bool $annotations Process phpcs: annotations. |
| 40 | + * @property int $tabWidth How many spaces each tab is worth. |
| 41 | + * @property string $encoding The encoding of the files being checked. |
| 42 | + * @property string[] $sniffs The sniffs that should be used for checking. |
| 43 | + * If empty, all sniffs in the supplied standards will be used. |
| 44 | + * @property string[] $exclude The sniffs that should be excluded from checking. |
| 45 | + * If empty, all sniffs in the supplied standards will be used. |
| 46 | + * @property string[] $ignored Regular expressions used to ignore files and folders during checking. |
| 47 | + * @property string $reportFile A file where the report output should be written. |
| 48 | + * @property string $generator The documentation generator to use. |
| 49 | + * @property string $filter The filter to use for the run. |
| 50 | + * @property string[] $bootstrap One of more files to include before the run begins. |
| 51 | + * @property int|string $reportWidth The maximum number of columns that reports should use for output. |
| 52 | + * Set to "auto" for have this value changed to the width of the terminal. |
| 53 | + * @property int $errorSeverity The minimum severity an error must have to be displayed. |
| 54 | + * @property int $warningSeverity The minimum severity a warning must have to be displayed. |
| 55 | + * @property bool $recordErrors Record the content of error messages as well as error counts. |
| 56 | + * @property string $suffix A suffix to add to fixed files. |
| 57 | + * @property string $basepath A file system location to strip from the paths of files shown in reports. |
| 58 | + * @property bool $stdin Read content from STDIN instead of supplied files. |
| 59 | + * @property string $stdinContent Content passed directly to PHPCS on STDIN. |
| 60 | + * @property string $stdinPath The path to use for content passed on STDIN. |
| 61 | + * @property bool $trackTime Whether or not to track sniff run time. |
62 | 62 | * |
63 | 63 | * @property array<string, string> $extensions File extensions that should be checked, and what tokenizer to use. |
64 | 64 | * E.g., array('inc' => 'PHP'); |
@@ -169,7 +169,7 @@ class Config |
169 | 169 | /** |
170 | 170 | * Command line values that the user has supplied directly. |
171 | 171 | * |
172 | | - * @var array<string, TRUE> |
| 172 | + * @var array<string, true|array<string, true>> |
173 | 173 | */ |
174 | 174 | private static $overriddenDefaults = []; |
175 | 175 |
|
|
0 commit comments