Files
ops-Gazelle/misc/phpstan.neon
2023-04-04 19:10:11 +02:00

71 lines
1.9 KiB
Plaintext

includes:
- phpstan-baseline.neon
parameters:
level: 7
errorFormat: table
stubFiles:
- ../lib/stub/memcached.stub
bootstrapFiles:
- ../lib/config.php
scanFiles:
- ../lib/bootstrap.php
- ../lib/util.php
paths:
- ../app
- ../classes
- ../misc/phinx
- ../scripts
- ../tests
- ../sections
parallel:
maximumNumberOfProcesses: 1
dynamicConstantNames:
- AJAX
- BLOCK_TOR
- DISABLE_IRC
- DISABLE_TRACKER
- DEBUG
- DEBUG_EMAIL
- DEBUG_MODE
- FEATURE_EMAIL_REENABLE
- LASTFM_API_KEY
- OPEN_REGISTRATION
- REAPER_TASK_CLAIM
- REAPER_TASK_NOTIFY
- REAPER_TASK_REMOVE_NEVER_SEEDED
- REAPER_TASK_REMOVE_UNSEEDED
- RECOVERY
- RECOVERY_AUTOVALIDATE
- RECOVERY_DB
- REQUEST_TAX
- SHOW_PUBLIC_INDEX
- STACKABLE_FREELEECH_TOKENS
- USER_LIMIT
ignoreErrors:
-
message: '/^Method [^:]+::\w+\(\) has parameter \S+ with no (?:type specified|value type specified in iterable type array)\.$/'
paths:
- ../app/*
- ../tests/*
-
message: '/^Method [^:]+::\w+\(\) return type has no value type specified in iterable type array\.$/'
paths:
- ../app/*
- ../misc/phinx/migrations/*
- ../tests/phpunit/*
-
message: '/^Property [^:]+::\$\w+ type has no value type specified in iterable type array\.$/'
paths:
- ../app/*
- ../tests/phpunit/*
-
message: '/^Variable \$(?:Cache|DB|Debug|SessionID|Twig|Viewer) might not be defined\.$/'
paths:
- ../scripts/*
- ../sections/*
-
message: '/^Variable \$Router might not be defined\.$/'
paths:
- ../sections/forums/index.php