1
0
Fork 0
composer/phpstan/config.neon

36 lines
1.3 KiB
Plaintext
Raw Normal View History

2019-01-07 15:22:41 +00:00
parameters:
2020-04-07 12:13:50 +00:00
level: 1
2019-01-07 15:22:41 +00:00
excludes_analyse:
2019-12-08 01:38:22 +00:00
- '../tests/Composer/Test/Fixtures/*'
- '../tests/Composer/Test/Autoload/Fixtures/*'
- '../tests/Composer/Test/Plugin/Fixtures/*'
- '../tests/Composer/Test/PolyfillTestCase.php'
2019-01-07 15:22:41 +00:00
ignoreErrors:
2020-04-07 12:13:50 +00:00
# unused parameters
- '~^Constructor of class Composer\\Repository\\VcsRepository has an unused parameter \$dispatcher\.$~'
- '~^Constructor of class Composer\\Util\\Http\\CurlDownloader has an unused parameter \$disableTls\.$~'
- '~^Constructor of class Composer\\Util\\Http\\CurlDownloader has an unused parameter \$options\.$~'
2019-01-07 15:22:41 +00:00
# ion cube is not installed
- '~^Function ioncube_loader_\w+ not found\.$~'
# variables from global scope
- '~^Undefined variable: \$vendorDir$~'
- '~^Undefined variable: \$baseDir$~'
# variable defined in eval
- '~^Undefined variable: \$res$~'
2019-12-08 01:38:22 +00:00
# we don't have different constructors for parent/child
- '~^Unsafe usage of new static\(\)\.$~'
2020-02-07 22:10:10 +00:00
# BC with older PHPUnit
- '~^Call to an undefined static method Composer\\Test\\PolyfillTestCase::setExpectedException\(\)\.$~'
paths:
2019-12-08 01:38:22 +00:00
- ../src
- ../tests
rules:
- Composer\PHPStanRules\AnonymousFunctionWithThisRule