1
0
Fork 0
composer/phpstan/config.neon

64 lines
2.4 KiB
Plaintext
Raw Normal View History

includes:
- ../vendor/phpstan/phpstan-phpunit/extension.neon
2021-12-07 08:33:45 +00:00
- ../vendor/phpstan/phpstan-deprecation-rules/rules.neon
- ../vendor/phpstan/phpstan-strict-rules/rules.neon
- ../vendor/phpstan/phpstan-symfony/extension.neon
- ../vendor/phpstan/phpstan-symfony/rules.neon
2021-06-03 09:36:39 +00:00
- ./baseline.neon
- ./ignore-by-php-version.neon.php
2019-01-07 15:22:41 +00:00
parameters:
level: 8
2021-10-18 22:09:59 +00:00
2021-10-25 12:16:20 +00:00
excludePaths:
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'
2021-10-18 22:09:59 +00:00
reportUnmatchedIgnoredErrors: false
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\(\)\.$~'
# Ignore some irrelevant errors in test files
- '~Method Composer\\Test\\[^:]+::(setUp(BeforeClass)?|tearDown(AfterClass)?|test[^(]+)\(\) has no return type specified.~'
- '~Method Composer\\Test\\[^:]+::(data\w+|provide\w+|\w+?Provider)\(\) has no return type specified.~'
# PHPUnit assertions as instance methods
- '~Dynamic call to static method PHPUnit\\Framework\\Assert::\w+\(\)~'
- '~Dynamic call to static method PHPUnit\\Framework\\TestCase::(once|atLeast|exactly|will|exactly|returnValue|returnCallback|any|atLeastOnce|throwException|onConsecutiveCalls|never|returnValueMap)\(\)~'
bootstrapFiles:
2021-12-09 10:35:09 +00:00
- ./locate-phpunit-autoloader.php
- ../tests/bootstrap.php
paths:
2019-12-08 01:38:22 +00:00
- ../src
- ../tests
symfony:
consoleApplicationLoader: ../tests/console-application.php
dynamicConstantNames:
- Composer\Composer::BRANCH_ALIAS_VERSION
- Composer\Composer::VERSION
- Composer\Composer::RELEASE_DATE
- Composer\Composer::SOURCE_VERSION