|
| 1 | +parameters: |
| 2 | + level: 6 |
| 3 | + paths: |
| 4 | + - / |
| 5 | + excludes_analyse: |
| 6 | + - vendor/ |
| 7 | + - Tests/ |
| 8 | + symfony: |
| 9 | + constant_hassers: false |
| 10 | + checkMissingIterableValueType: false |
| 11 | + checkGenericClassInNonGenericObjectType: false |
| 12 | + reportUnmatchedIgnoredErrors: false |
| 13 | + ignoreErrors: |
| 14 | + - '# is not subtype of Throwable#' |
| 15 | + - '#Call to an undefined static method #' |
| 16 | + - '#of class ReflectionClass constructor expects class-string#' |
| 17 | + - '#Psr\Container\ContainerInterface::getParameter#' |
| 18 | + - '#Function apply_filters invoked with 3 parameters, 2 required#' |
| 19 | + - '#Constant DB_#' |
| 20 | + - '#Call to an undefined method Corcel#' |
| 21 | + - '#Constant COOKIE#' |
| 22 | + - '#Constant WP#' |
| 23 | + - '#is neither abstract nor final#' |
| 24 | + # - '#with null as default value#' |
| 25 | + - '#has a nullable return type declaration#' |
| 26 | + - '#but containers should not be injected#' |
| 27 | + - '#strict_types#' |
| 28 | + - '#is not allowed to extend#' |
| 29 | + - '#Variable method call#' |
| 30 | + - '#Variable static property access#' |
| 31 | + - '#Variable property access#' |
| 32 | + - '#Variable static method call on string#' |
| 33 | + - '#Short ternary operator is not allowed#' |
| 34 | + - '#Class wpdb should be written#' |
| 35 | + - '#Class wp_locale should be written with#' |
| 36 | + - '#Class wp_query should be written with ::class#' |
| 37 | + - '#Language construct empty#' |
| 38 | + - '#^Only booleans are allowed in an if condition#' |
| 39 | + - '#^Only booleans are allowed in a negated boolean#' |
| 40 | + - '#^Only booleans are allowed in \|\|#' |
| 41 | + - '#^Only booleans are allowed in a ternary operator condition#' |
| 42 | + - '#^Only booleans are allowed in#' |
| 43 | + - '#class notation, string found#' |
| 44 | + - '#with default value#' |
| 45 | + - '#is not final, but since the containing class is abstract, it should be#' |
| 46 | + - '#code above always terminates#' |
| 47 | + - '# with a nullable type declaration#' |
| 48 | + - '# has an unused parameter#' |
| 49 | + - '#of anonymous function has no typehint#' |
| 50 | + - '#Call to an undefined method object::toArray#' |
| 51 | + - '#Class UrlToQueryItem does not exist#' |
| 52 | + - '#PHPDoc tag @method has invalid value#' |
| 53 | + - '#Unsafe usage of new static#' |
| 54 | + - '#should return mixed but return statement is missing#' |
| 55 | + - '#has\(\) with mixed will always evaluate to#' |
| 56 | + - '#Control structures using switch should not be used#' |
| 57 | + - '#^Function apply_filters(_ref_array)? invoked with [34567] parameters, 2 required\.$#' |
| 58 | + - '#in sprintf\(\) format must be quoted#' |
| 59 | + - '#Interface must be located in "Contract" namespace#' |
| 60 | + - '#returns bool type, so the name should start with is/has/was#' |
| 61 | + - '#Do not use @method tag in class docblock#' |
| 62 | + - '#with null as default value#' |
| 63 | + - '#Spread operator is not allowed#' |
| 64 | + - '#Instead of container injection, use specific service#' |
0 commit comments