diff options
Diffstat (limited to 'phpstan.dist.neon')
| -rw-r--r-- | phpstan.dist.neon | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/phpstan.dist.neon b/phpstan.dist.neon new file mode 100644 index 000000000..994ee6aec --- /dev/null +++ b/phpstan.dist.neon @@ -0,0 +1,65 @@ +parameters: + level: 9 # https://phpstan.org/user-guide/rule-levels + 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 + checkMissingOverrideMethodAttribute: true + reportMaybesInPropertyPhpDocTypes: false + treatPhpDocTypesAsCertain: 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 + exceptions: + check: + missingCheckedExceptionInThrows: false # TODO pass + tooWideThrowType: true + implicitThrows: false + checkedExceptionClasses: + - 'Minz_Exception' + 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 |
