35 lines
1.2 KiB
Plaintext
35 lines
1.2 KiB
Plaintext
parameters:
|
|
level: 1
|
|
excludes_analyse:
|
|
- '../tests/Composer/Test/Fixtures/*'
|
|
- '../tests/Composer/Test/Autoload/Fixtures/*'
|
|
- '../tests/Composer/Test/Plugin/Fixtures/*'
|
|
ignoreErrors:
|
|
# 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\.$~'
|
|
|
|
# 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$~'
|
|
|
|
# we don't have different constructors for parent/child
|
|
- '~^Unsafe usage of new static\(\)\.$~'
|
|
|
|
# BC with older PHPUnit
|
|
- '~^Call to an undefined static method PHPUnit\\Framework\\TestCase::setExpectedException\(\)\.$~'
|
|
|
|
paths:
|
|
- ../src
|
|
- ../tests
|
|
|
|
rules:
|
|
- Composer\PHPStanRules\AnonymousFunctionWithThisRule
|