FreshRSS-Extensions/phpstan.neon
Alexandre Alapetite cc6bf0d1e6
New developer command to test all third-party extensions
* `composer run-script phpstan-third-party`
* Rename the directory for generate.php to `third-party` instead of `tmp`
* Take advantage of PHPStan checkMissingOverrideMethodAttribute https://phpstan.org/config-reference#checkmissingoverridemethodattribute
* Detected and fixed bug in URL of https://github.com/tunbridgep/freshrss-invidious
2024-04-07 17:06:35 +02:00

41 lines
1,005 B
Text

parameters:
# TODO: Increase rule-level https://phpstan.org/user-guide/rule-levels
level: 1
phpVersion: 80399 # TODO: Remove line when moving composer.json to PHP 8+
treatPhpDocTypesAsCertain: false
fileExtensions:
- php
- phtml
paths:
- ../FreshRSS
- .
excludePaths:
analyse:
- ../FreshRSS
- vendor/
analyseAndScan:
- .git/
- node_modules/
- symbolic/
- third-party/
- tmp/
dynamicConstantNames:
- TYPE_GIT
checkMissingOverrideMethodAttribute: true
reportMaybesInPropertyPhpDocTypes: false
strictRules:
allRules: false
booleansInConditions: true
closureUsesThis: true
disallowedConstructs: false
disallowedLooseComparison: false
matchingInheritedMethodNames: true
noVariableVariables: true
numericOperandsInArithmeticOperators: true
overwriteVariablesWithLoop: true
requireParentConstructorCall: true
strictCalls: true
switchConditionsMatchingType: true
uselessCast: true
includes:
- vendor/phpstan/phpstan-strict-rules/rules.neon