|
11 | 11 | findUnusedVariablesAndParams="true" |
12 | 12 | findUnusedBaselineEntry="false" |
13 | 13 | findUnusedCode="true" |
| 14 | + phpVersion="8.3" |
14 | 15 | autoloader="vendor/autoload.php" |
15 | 16 | > |
16 | 17 | <projectFiles> |
17 | 18 | <directory name="src/SonsOfPHP"/> |
18 | 19 | <ignoreFiles> |
| 20 | + <!-- Ignore test suites across packages to reduce noise like UnusedClass --> |
| 21 | + <directory name="src/SonsOfPHP/Bard/Tests"/> |
| 22 | + <directory name="src/SonsOfPHP/Bridge/*/*/Tests"/> |
| 23 | + <directory name="src/SonsOfPHP/Bridge/*/*/*/Tests"/> |
| 24 | + <directory name="src/SonsOfPHP/Bundle/*/Tests"/> |
| 25 | + <directory name="src/SonsOfPHP/Component/*/Tests"/> |
| 26 | + <!-- Ignore vendors --> |
19 | 27 | <directory name="src/SonsOfPHP/Bard/vendor/*"/> |
20 | 28 | <directory name="src/SonsOfPHP/Bridge/*/*/vendor/*"/> |
21 | 29 | <directory name="src/SonsOfPHP/Bridge/*/*/*/vendor/*"/> |
22 | 30 | <directory name="src/SonsOfPHP/Bundle/*/vendor/*"/> |
23 | 31 | <directory name="src/SonsOfPHP/Component/*/vendor/*"/> |
24 | 32 | <directory name="src/SonsOfPHP/Contract/*/vendor/**"/> |
25 | 33 | <directory name="vendor/**"/> |
| 34 | + <!-- Ignore Rector config which references Rector classes outside our autoload --> |
| 35 | + <file name="rector.php" /> |
26 | 36 | </ignoreFiles> |
27 | 37 | </projectFiles> |
28 | 38 | <extraFiles> |
|
32 | 42 | <pluginClass class="Psalm\PhpUnitPlugin\Plugin"/> |
33 | 43 | </plugins> |
34 | 44 | <issueHandlers> |
35 | | - <!--<PossiblyUnusedMethod errorLevel="info" />--> |
36 | | - <!--<UnusedClass errorLevel="info" />--> |
| 45 | + <UnusedClass errorLevel="info" /> |
| 46 | + <UnnecessaryVarAnnotation errorLevel="info" /> |
| 47 | + <!-- Keep other findings visible but non-blocking for DX --> |
| 48 | + <PossiblyUnusedMethod errorLevel="info" /> |
| 49 | + <!-- Psalm false-positives in Bard console helpers and operations naming --> |
| 50 | + <UndefinedInterfaceMethod> |
| 51 | + <errorLevel type="info"> |
| 52 | + <directory name="src/SonsOfPHP/Bard/src/Console/Command" /> |
| 53 | + </errorLevel> |
| 54 | + </UndefinedInterfaceMethod> |
| 55 | + <ParamNameMismatch> |
| 56 | + <errorLevel type="info"> |
| 57 | + <directory name="src/SonsOfPHP/Bard/src/Operation" /> |
| 58 | + </errorLevel> |
| 59 | + </ParamNameMismatch> |
| 60 | + <InvalidArgument errorLevel="info" /> |
| 61 | + <UndefinedClass errorLevel="info" /> |
| 62 | + <NullableReturnStatement errorLevel="info" /> |
| 63 | + <InvalidCatch errorLevel="info" /> |
| 64 | + <LessSpecificImplementedReturnType errorLevel="info" /> |
37 | 65 | </issueHandlers> |
38 | 66 | </psalm> |
0 commit comments