2019-01-07 15:22:41 +00:00
|
|
|
parameters:
|
2020-04-07 12:13:50 +00:00
|
|
|
level: 1
|
2020-11-20 08:28:09 +00:00
|
|
|
checkClassCaseSensitivity: true # Level 2 rule
|
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/*'
|
2020-09-10 15:21:11 +00:00
|
|
|
- '../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$~'
|
|
|
|
|
2019-02-18 12:03:34 +00:00
|
|
|
# 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\(\)\.$~'
|
2019-12-10 21:31:07 +00:00
|
|
|
|
2020-02-07 22:10:10 +00:00
|
|
|
# BC with older PHPUnit
|
2020-09-10 15:21:11 +00:00
|
|
|
- '~^Call to an undefined static method Composer\\Test\\PolyfillTestCase::setExpectedException\(\)\.$~'
|
2020-09-11 09:52:54 +00:00
|
|
|
- '~^Call to an undefined method Composer\\Test\\[a-zA-Z0-9\\]+::(assertFileDoesNotExist|assertMatchesRegularExpression)\(\)\.$~'
|
2020-06-16 08:05:44 +00:00
|
|
|
|
2019-12-10 15:56:04 +00:00
|
|
|
paths:
|
2019-12-08 01:38:22 +00:00
|
|
|
- ../src
|
|
|
|
- ../tests
|
2019-12-10 21:31:07 +00:00
|
|
|
|
|
|
|
rules:
|
|
|
|
- Composer\PHPStanRules\AnonymousFunctionWithThisRule
|
2020-11-20 08:28:09 +00:00
|
|
|
# Level 2 rules
|
|
|
|
- PHPStan\Rules\Cast\EchoRule
|
|
|
|
- PHPStan\Rules\Cast\InvalidCastRule
|
|
|
|
- PHPStan\Rules\Cast\InvalidPartOfEncapsedStringRule
|
|
|
|
- PHPStan\Rules\Cast\PrintRule
|
|
|
|
- PHPStan\Rules\Functions\IncompatibleDefaultParameterTypeRule
|
|
|
|
- PHPStan\Rules\Generics\ClassAncestorsRule
|
|
|
|
- PHPStan\Rules\Generics\ClassTemplateTypeRule
|
|
|
|
- PHPStan\Rules\Generics\FunctionTemplateTypeRule
|
|
|
|
- PHPStan\Rules\Generics\FunctionSignatureVarianceRule
|
|
|
|
- PHPStan\Rules\Generics\InterfaceAncestorsRule
|
|
|
|
- PHPStan\Rules\Generics\InterfaceTemplateTypeRule
|
|
|
|
- PHPStan\Rules\Generics\MethodTemplateTypeRule
|
|
|
|
- PHPStan\Rules\Generics\MethodSignatureVarianceRule
|
|
|
|
- PHPStan\Rules\Generics\TraitTemplateTypeRule
|
|
|
|
- PHPStan\Rules\Operators\InvalidBinaryOperationRule
|
|
|
|
- PHPStan\Rules\Operators\InvalidUnaryOperationRule
|
|
|
|
- PHPStan\Rules\Operators\InvalidComparisonOperationRule
|
|
|
|
- PHPStan\Rules\PhpDoc\IncompatiblePhpDocTypeRule
|
|
|
|
- PHPStan\Rules\PhpDoc\IncompatiblePropertyPhpDocTypeRule
|
|
|
|
- PHPStan\Rules\PhpDoc\InvalidPhpDocTagValueRule
|
|
|
|
- PHPStan\Rules\PhpDoc\InvalidPHPStanDocTagRule
|