|
| 1 | +parameters: |
| 2 | + #phpVersion: 50400 # Needs to be 70100 or higher... sigh... |
| 3 | + level: 6 |
| 4 | + paths: |
| 5 | + - Modernize |
| 6 | + - NormalizedArrays |
| 7 | + - Universal |
| 8 | + bootstrapFiles: |
| 9 | + - phpunit-bootstrap.php |
| 10 | + treatPhpDocTypesAsCertain: false |
| 11 | + |
| 12 | + ignoreErrors: |
| 13 | + # Level 1 |
| 14 | + # Keep to stay in line with parent class. |
| 15 | + - |
| 16 | + message: '`^Constructor of class PHPCSExtra\\Universal\\Helpers\\DummyTokenizer has an unused parameter \$content\.$`' |
| 17 | + path: Universal\Helpers\DummyTokenizer.php |
| 18 | + count: 1 |
| 19 | + |
| 20 | + # Level 4 |
| 21 | + # PHPStan doesn't seem to like uninitialized properties... |
| 22 | + - |
| 23 | + message: '`^Property \S+Sniff::\$(phpVersion|tabWidth) \(int\) in isset\(\) is not nullable\.$`' |
| 24 | + paths: |
| 25 | + - Modernize\Sniffs\FunctionCalls\DirnameSniff.php |
| 26 | + - Universal\Sniffs\Arrays\DuplicateArrayKeySniff.php |
| 27 | + - Universal\Sniffs\CodeAnalysis\ConstructorDestructorReturnSniff.php |
| 28 | + - Universal\Sniffs\WhiteSpace\CommaSpacingSniff.php |
| 29 | + - Universal\Sniffs\WhiteSpace\DisallowInlineTabsSniff.php |
| 30 | + - Universal\Sniffs\WhiteSpace\PrecisionAlignmentSniff.php |
| 31 | + - |
| 32 | + message: '`^Strict comparison using === between true and false will always evaluate to false\.$`' |
| 33 | + paths: |
| 34 | + - Modernize\Sniffs\FunctionCalls\DirnameSniff.php |
| 35 | + - Universal\Sniffs\Arrays\DuplicateArrayKeySniff.php |
| 36 | + - Universal\Sniffs\CodeAnalysis\ConstructorDestructorReturnSniff.php |
| 37 | + - Universal\Sniffs\WhiteSpace\CommaSpacingSniff.php |
| 38 | + - Universal\Sniffs\WhiteSpace\DisallowInlineTabsSniff.php |
| 39 | + - Universal\Sniffs\WhiteSpace\PrecisionAlignmentSniff.php |
| 40 | + - |
| 41 | + message: '`^Property PHPCSExtra\\Universal\\Sniffs\\Arrays\\DuplicateArrayKeySniff\:\:\$currentMaxIntKey[GL]t8 \(int\) in isset\(\) is not nullable\.$`' |
| 42 | + path: Universal\Sniffs\Arrays\DuplicateArrayKeySniff.php |
| 43 | + count: 5 |
| 44 | + - |
| 45 | + message: '`^Result of && is always false\.$`' |
| 46 | + path: Universal\Sniffs\Arrays\DuplicateArrayKeySniff.php |
| 47 | + count: 1 |
| 48 | + |
| 49 | + # Level 5 |
| 50 | + # We're not using strict types, so this will be juggled without any issues. |
| 51 | + - '#^Parameter \#3 \$value of method \S+File::recordMetric\(\) expects string, \(?(float|int|bool)(<[^>]+>)?(\|(float|int|bool)(<[^>]+>)?)*\)? given\.$#' |
| 52 | + - '#^Parameter \#2 \$content of method \S+Fixer::replaceToken\(\) expects string, \(?(float|int|bool)(<[^>]+>)?(\|(float|int|bool)(<[^>]+>)?)*\)? given\.$#' |
0 commit comments