Files
FreshRSS/phpstan.neon
Alexandre Alapetite 30c69ef147 Use PHPStan dynamicConstantNames (#5370)
https://phpstan.org/config-reference#constants
Avoid a few phpstan-ignore-next-line
2023-05-04 19:47:54 +02:00

37 lines
710 B
Plaintext

parameters:
# TODO: Increase rule-level https://phpstan.org/user-guide/rule-levels
level: 6
treatPhpDocTypesAsCertain: false
fileExtensions:
- php
- phtml
paths:
- .
excludePaths:
analyse:
- lib/marienfressinaud/*
- lib/phpgt/*
- lib/phpmailer/*
- lib/SimplePie/*
- vendor/*
analyseAndScan:
- .git/*
- 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
- SIMPLEPIE_SYSLOG_ENABLED
- STDERR
- STDOUT
- TMP_PATH
- USERS_PATH
includes:
- vendor/phpstan/phpstan-phpunit/extension.neon
- vendor/phpstan/phpstan-phpunit/rules.neon