-
Notifications
You must be signed in to change notification settings - Fork 1
/
phpstan.src.neon
38 lines (34 loc) · 1.51 KB
/
phpstan.src.neon
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
includes:
- vendor/phpstan/phpstan-symfony/extension.neon
- vendor/phpstan/phpstan-deprecation-rules/rules.neon
- vendor/phpstan/phpstan-strict-rules/rules.neon
parameters:
level: 7
tmpDir: var/cache/_phpstan
parallel:
jobSize: 20
maximumNumberOfProcesses: 16
minimumNumberOfJobsPerProcess: 2
processTimeout: 30.0
symfony:
#container_xml_path: '%rootDir%/../../../var/cache/dev/NoFlash_SnmpBridge_KernelDevDebugContainer.xml'
console_application_loader: %rootDir%/../../../.tools/PhpStan/console-application.php
excludes_analyse:
- %rootDir%/../../../src/DependencyInjection/Configuration.php # semantic config will never work with static analysis
tipsOfTheDay: false
polluteScopeWithLoopInitialAssignments: false
polluteScopeWithAlwaysIterableForeach: false
polluteCatchScopeWithTryAssignments: true
checkAlwaysTrueCheckTypeFunctionCall: true
checkAlwaysTrueInstanceof: true
checkAlwaysTrueStrictComparison: true
checkExplicitMixedMissingReturn: true
checkFunctionNameCase: true
checkMissingClosureNativeReturnTypehintRule: true
reportMaybesInMethodSignatures: true
reportStaticMethodSignatures: true
checkTooWideReturnTypesInProtectedAndPublicMethods: true
treatPhpDocTypesAsCertain: false
checkMissingIterableValueType: false # handled by PHPCs with more granularity
ignoreErrors:
- '/Method RouterOS\\Interfaces\\ClientInterface\:\:query\(\) invoked with 1 parameter, 4 required\./'