|
65 | 65 | * @property string $stdinContent Content passed directly to PHPCS on STDIN. |
66 | 66 | * @property string $stdinPath The path to use for content passed on STDIN. |
67 | 67 | * @property bool $trackTime Whether or not to track sniff run time. |
68 | | - * @property bool $allowEmptyFileList Suppresses "No files were checked" error. |
69 | 68 | * |
70 | 69 | * @property array<string, string> $extensions File extensions that should be checked, and what tokenizer is used. |
71 | 70 | * E.g., array('inc' => 'PHP'); |
@@ -161,43 +160,42 @@ class Config |
161 | 160 | * @var array<string, mixed> |
162 | 161 | */ |
163 | 162 | private $settings = [ |
164 | | - 'files' => null, |
165 | | - 'standards' => null, |
166 | | - 'verbosity' => null, |
167 | | - 'interactive' => null, |
168 | | - 'parallel' => null, |
169 | | - 'cache' => null, |
170 | | - 'cacheFile' => null, |
171 | | - 'colors' => null, |
172 | | - 'explain' => null, |
173 | | - 'local' => null, |
174 | | - 'showSources' => null, |
175 | | - 'showProgress' => null, |
176 | | - 'quiet' => null, |
177 | | - 'annotations' => null, |
178 | | - 'tabWidth' => null, |
179 | | - 'encoding' => null, |
180 | | - 'extensions' => null, |
181 | | - 'sniffs' => null, |
182 | | - 'exclude' => null, |
183 | | - 'ignored' => null, |
184 | | - 'reportFile' => null, |
185 | | - 'generator' => null, |
186 | | - 'filter' => null, |
187 | | - 'bootstrap' => null, |
188 | | - 'reports' => null, |
189 | | - 'basepath' => null, |
190 | | - 'reportWidth' => null, |
191 | | - 'errorSeverity' => null, |
192 | | - 'warningSeverity' => null, |
193 | | - 'recordErrors' => null, |
194 | | - 'suffix' => null, |
195 | | - 'stdin' => null, |
196 | | - 'stdinContent' => null, |
197 | | - 'stdinPath' => null, |
198 | | - 'trackTime' => null, |
199 | | - 'unknown' => null, |
200 | | - 'allowEmptyFileList' => null, |
| 163 | + 'files' => null, |
| 164 | + 'standards' => null, |
| 165 | + 'verbosity' => null, |
| 166 | + 'interactive' => null, |
| 167 | + 'parallel' => null, |
| 168 | + 'cache' => null, |
| 169 | + 'cacheFile' => null, |
| 170 | + 'colors' => null, |
| 171 | + 'explain' => null, |
| 172 | + 'local' => null, |
| 173 | + 'showSources' => null, |
| 174 | + 'showProgress' => null, |
| 175 | + 'quiet' => null, |
| 176 | + 'annotations' => null, |
| 177 | + 'tabWidth' => null, |
| 178 | + 'encoding' => null, |
| 179 | + 'extensions' => null, |
| 180 | + 'sniffs' => null, |
| 181 | + 'exclude' => null, |
| 182 | + 'ignored' => null, |
| 183 | + 'reportFile' => null, |
| 184 | + 'generator' => null, |
| 185 | + 'filter' => null, |
| 186 | + 'bootstrap' => null, |
| 187 | + 'reports' => null, |
| 188 | + 'basepath' => null, |
| 189 | + 'reportWidth' => null, |
| 190 | + 'errorSeverity' => null, |
| 191 | + 'warningSeverity' => null, |
| 192 | + 'recordErrors' => null, |
| 193 | + 'suffix' => null, |
| 194 | + 'stdin' => null, |
| 195 | + 'stdinContent' => null, |
| 196 | + 'stdinPath' => null, |
| 197 | + 'trackTime' => null, |
| 198 | + 'unknown' => null, |
201 | 199 | ]; |
202 | 200 |
|
203 | 201 | /** |
@@ -583,7 +581,6 @@ public function restoreDefaults() |
583 | 581 | $this->stdinPath = null; |
584 | 582 | $this->trackTime = false; |
585 | 583 | $this->unknown = []; |
586 | | - $this->allowEmptyFileList = false; |
587 | 584 |
|
588 | 585 | $standard = self::getConfigData('default_standard'); |
589 | 586 | if ($standard !== null) { |
@@ -831,14 +828,6 @@ public function processLongArgument(string $arg, int $pos) |
831 | 828 | $this->annotations = false; |
832 | 829 | $this->overriddenDefaults['annotations'] = true; |
833 | 830 | break; |
834 | | - case 'allow-empty-file-list': |
835 | | - if (isset($this->overriddenDefaults['allowEmptyFileList']) === true) { |
836 | | - break; |
837 | | - } |
838 | | - |
839 | | - $this->allowEmptyFileList = true; |
840 | | - $this->overriddenDefaults['allowEmptyFileList'] = true; |
841 | | - break; |
842 | 831 | case 'config-set': |
843 | 832 | if (isset($this->cliArgs[($pos + 1)]) === false |
844 | 833 | || isset($this->cliArgs[($pos + 2)]) === false |
|
0 commit comments