mirror of
https://github.com/pterodactyl/panel.git
synced 2026-11-30 11:25:52 -05:00
Co-authored-by: Anthony <anthony@infraly.co> Co-authored-by: Sky Mulley <daniel.mulley@outlook.com>
31 lines
1.2 KiB
Plaintext
31 lines
1.2 KiB
Plaintext
# Self-analysis config: the rule set analysed by the rule set it defines, at
|
|
# maximum strictness. Run from the repository root:
|
|
# vendor/bin/phpstan analyse -c tools/phpstan/rules/phpstan.neon
|
|
includes:
|
|
- extension.neon
|
|
|
|
parameters:
|
|
level: 10
|
|
checkImplicitMixed: true
|
|
paths:
|
|
- src
|
|
rules:
|
|
# Rule source is itself a boundary parser: it receives php-parser AST
|
|
# nodes and PHPStan types (external, unparsed input by this set's own
|
|
# definition) and narrows them with instanceof / is_* checks. This is
|
|
# the path-scoped re-allow mechanism the set prescribes for boundaries,
|
|
# not a baseline.
|
|
boundaryPaths:
|
|
- tools/phpstan/rules/src/**
|
|
forbiddenSymbolTerms:
|
|
- shape
|
|
ignoreErrors:
|
|
# The per-parameter @phpstan-assert exemption (rule 1) requires reading
|
|
# which parameter an AssertTag targets; no BC-covered PHPStan API
|
|
# exposes that today. This acknowledges the advisory for that one call
|
|
# rather than dropping the exemption the spec requires.
|
|
-
|
|
identifier: phpstanApi.method
|
|
path: src/Support/SignatureResolver.php
|
|
count: 1
|