|
1 | 1 | parameters: |
2 | | - level: 5 |
| 2 | + level: 8 |
3 | 3 |
|
4 | 4 | paths: |
5 | 5 | - src |
| 6 | + |
| 7 | + excludePaths: |
| 8 | + - src/compatibility.php |
| 9 | + - src/compatibility-intf.php |
| 10 | + |
| 11 | + fileExtensions: |
| 12 | + - php |
| 13 | + - phtml |
| 14 | + |
| 15 | + ignoreErrors: |
| 16 | + # Readonly lazy-loading via __get magic |
| 17 | + - |
| 18 | + identifier: property.uninitializedReadonly |
| 19 | + paths: |
| 20 | + - src/Database/Reflection.php |
| 21 | + - src/Database/Reflection/Table.php |
| 22 | + - |
| 23 | + identifier: unset.readOnlyProperty |
| 24 | + paths: |
| 25 | + - src/Database/Reflection.php |
| 26 | + - src/Database/Reflection/Table.php |
| 27 | + - |
| 28 | + identifier: property.readOnlyAssignNotInConstructor |
| 29 | + paths: |
| 30 | + - src/Database/Reflection.php |
| 31 | + - src/Database/Reflection/Table.php |
| 32 | + |
| 33 | + # Deprecated interfaces without generic types |
| 34 | + - |
| 35 | + identifier: missingType.generics |
| 36 | + paths: |
| 37 | + - src/Database/IRow.php |
| 38 | + - src/Database/IRowContainer.php |
| 39 | + |
| 40 | + # Generic conflicts from deprecated IRowContainer/IRow extending Traversable without type params |
| 41 | + - |
| 42 | + identifier: generics.interfaceConflict |
| 43 | + paths: |
| 44 | + - src/Database/ResultSet.php |
| 45 | + - src/Database/Row.php |
| 46 | + - src/Database/Table/GroupedSelection.php |
| 47 | + - src/Database/Table/ActiveRow.php |
| 48 | + - src/Database/Table/Selection.php |
| 49 | + |
| 50 | + # Iterator/ArrayAccess covariance/contravariance (PHP interface limitation) |
| 51 | + - |
| 52 | + identifier: method.childReturnType |
| 53 | + paths: |
| 54 | + - src/Database/ResultSet.php |
| 55 | + - src/Database/Table/Selection.php |
| 56 | + - |
| 57 | + identifier: method.childParameterType |
| 58 | + paths: |
| 59 | + - src/Database/Row.php |
| 60 | + - src/Database/Table/Selection.php |
| 61 | + |
| 62 | + # Intentional new static() in exception hierarchy |
| 63 | + - |
| 64 | + identifier: new.static |
| 65 | + path: src/Database/DriverException.php |
| 66 | + |
| 67 | + # Closure variables consumed by require'd phtml template |
| 68 | + - |
| 69 | + identifier: closure.unusedUse |
| 70 | + path: src/Bridges/DatabaseTracy/ConnectionPanel.php |
| 71 | + |
| 72 | + # Lazy-loading side effect via __get magic |
| 73 | + - |
| 74 | + identifier: expr.resultUnused |
| 75 | + path: src/Database/Reflection.php |
| 76 | + |
| 77 | + # DI extension: $this->config is array|object from Nette Schema |
| 78 | + - |
| 79 | + identifier: foreach.nonIterable |
| 80 | + path: src/Bridges/DatabaseDI/DatabaseExtension.php |
| 81 | + |
| 82 | + # PDOException::$queryString is set by PDO engine, not formally declared |
| 83 | + - |
| 84 | + identifier: property.notFound |
| 85 | + path: src/Bridges/DatabaseTracy/ConnectionPanel.php |
| 86 | + |
| 87 | + # Dynamic callable construction: "is_$type"($value) where $type is always valid |
| 88 | + - |
| 89 | + identifier: callable.nonCallable |
| 90 | + path: src/Database/SqlPreprocessor.php |
| 91 | + |
| 92 | + # Defensive runtime checks unreachable per @param type |
| 93 | + - |
| 94 | + identifier: instanceof.alwaysTrue |
| 95 | + path: src/Database/SqlPreprocessor.php |
| 96 | + - |
| 97 | + identifier: booleanAnd.alwaysFalse |
| 98 | + path: src/Database/SqlPreprocessor.php |
| 99 | + |
| 100 | + # getPrimary() returns string for single-column PK (composite PK not supported here) |
| 101 | + - |
| 102 | + identifier: argument.type |
| 103 | + path: src/Database/Table/ActiveRow.php |
| 104 | + - |
| 105 | + identifier: array.invalidKey |
| 106 | + path: src/Database/Table/ActiveRow.php |
| 107 | + |
| 108 | + # Internal SQL built from trusted components, generic covariance, getPrimary() type unions |
| 109 | + - |
| 110 | + identifier: argument.type |
| 111 | + paths: |
| 112 | + - src/Database/Table/Selection.php |
| 113 | + - src/Database/Table/GroupedSelection.php |
| 114 | + - src/Database/Table/SqlBuilder.php |
| 115 | + |
| 116 | + # Generic T vs concrete ActiveRow assignments |
| 117 | + - |
| 118 | + identifier: assign.propertyType |
| 119 | + path: src/Database/Table/Selection.php |
| 120 | + |
| 121 | + # Return type mismatches from generic covariance and internal caching |
| 122 | + - |
| 123 | + identifier: return.type |
| 124 | + paths: |
| 125 | + - src/Database/ResultSet.php |
| 126 | + - src/Database/Structure.php |
| 127 | + - src/Database/Table/Selection.php |
| 128 | + - src/Database/Table/GroupedSelection.php |
| 129 | + |
| 130 | + # Array offset access on Row/ActiveRow objects and nullable arrays |
| 131 | + - |
| 132 | + identifier: offsetAccess.notFound |
| 133 | + paths: |
| 134 | + - src/Database/Helpers.php |
| 135 | + - src/Database/Table/Selection.php |
| 136 | + - src/Database/Table/SqlBuilder.php |
| 137 | + |
| 138 | + # Defensive checks that are always true/false per PHPStan type narrowing |
| 139 | + - |
| 140 | + identifier: notIdentical.alwaysTrue |
| 141 | + path: src/Database/Helpers.php |
| 142 | + - |
| 143 | + identifier: isset.offset |
| 144 | + path: src/Database/Helpers.php |
| 145 | + - |
| 146 | + identifier: identical.alwaysFalse |
| 147 | + path: src/Database/Table/GroupedSelection.php |
| 148 | + |
| 149 | + # Dynamic string concatenation in binary operations |
| 150 | + - |
| 151 | + identifier: binaryOp.invalid |
| 152 | + path: src/Database/Table/Selection.php |
| 153 | + |
| 154 | + # isList() on iterable that could be array or Selection |
| 155 | + - |
| 156 | + identifier: staticMethod.impossibleType |
| 157 | + path: src/Database/Table/GroupedSelection.php |
| 158 | + |
| 159 | + # Setting column value on iterable data |
| 160 | + - |
| 161 | + identifier: offsetAssign.valueType |
| 162 | + path: src/Database/Table/GroupedSelection.php |
0 commit comments