mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-02-01 00:51:13 -05:00
* Pass PHPStan level 8 And prepare for PHPStan level 9 https://phpstan.org/user-guide/rule-levels * Revert wrong replace in comment * Fix PHPStan level 8 * Update PHPStan and other dev dependencies * Remove obsolete comment * noVariableVariables and towards bleedingEdge https://github.com/phpstan/phpstan-strict-rules https://phpstan.org/blog/what-is-bleeding-edge * More bleedingEdge * A bit more PHPStan level 9 * More PHPStan level 9 * Prepare for booleansInConditions Ignore int and null * Revert wrong line * More fixes * Fix keep_max_n_unread * Stricter attribute functions * Stricter callHooks and more PHPStan level 9 * More typing * A tiny more
60 lines
1.5 KiB
Plaintext
60 lines
1.5 KiB
Plaintext
parameters:
|
|
# TODO: Increase rule-level https://phpstan.org/user-guide/rule-levels
|
|
level: 8
|
|
fileExtensions:
|
|
- php
|
|
- phtml
|
|
paths:
|
|
- .
|
|
excludePaths:
|
|
analyse:
|
|
- lib/marienfressinaud/*
|
|
- lib/phpgt/*
|
|
- lib/phpmailer/*
|
|
- lib/SimplePie/*
|
|
- vendor/*
|
|
analyseAndScan:
|
|
- .git/*
|
|
- extensions/node_modules
|
|
- extensions/symbolic
|
|
- extensions/vendor
|
|
- node_modules/*
|
|
bootstrapFiles:
|
|
- cli/_cli.php
|
|
- lib/favicons.php
|
|
dynamicConstantNames:
|
|
- CACHE_PATH
|
|
- COPY_LOG_TO_SYSLOG
|
|
- COPY_SYSLOG_TO_STDERR
|
|
- DATA_PATH
|
|
- MAX_LOG_SIZE
|
|
- PUBLIC_RELATIVE
|
|
- SIMPLEPIE_SYSLOG_ENABLED
|
|
- STDERR
|
|
- STDOUT
|
|
- TMP_PATH
|
|
- USERS_PATH
|
|
reportMaybesInPropertyPhpDocTypes: false
|
|
treatPhpDocTypesAsCertain: false
|
|
strictRules:
|
|
allRules: false
|
|
booleansInConditions: false # TODO pass
|
|
closureUsesThis: true
|
|
disallowedConstructs: false
|
|
disallowedLooseComparison: false
|
|
matchingInheritedMethodNames: true
|
|
noVariableVariables: true
|
|
numericOperandsInArithmeticOperators: true
|
|
overwriteVariablesWithLoop: true
|
|
requireParentConstructorCall: true
|
|
strictCalls: true
|
|
switchConditionsMatchingType: true
|
|
uselessCast: true
|
|
ignoreErrors:
|
|
# - '#Only booleans are allowed in (a negated boolean|a ternary operator condition|an elseif condition|an if condition|&&|\|\|), (bool|false|int(<[0-9, max]+>)?|true|null|\|)+ given.*#'
|
|
includes:
|
|
- vendor/phpstan/phpstan-phpunit/extension.neon
|
|
- vendor/phpstan/phpstan-phpunit/rules.neon
|
|
- vendor/phpstan/phpstan-strict-rules/rules.neon
|
|
# - vendor/phpstan/phpstan/conf/bleedingEdge.neon
|