|
@@ -1,24 +1,12 @@
|
|
parameters:
|
|
parameters:
|
|
autoload_files:
|
|
autoload_files:
|
|
- - phpstan/autoload.php
|
|
|
|
|
|
+ - autoload.php
|
|
level: 0
|
|
level: 0
|
|
excludes_analyse:
|
|
excludes_analyse:
|
|
- - 'tests/Composer/Test/Fixtures'
|
|
|
|
- - 'tests/Composer/Test/Autoload/Fixtures'
|
|
|
|
- - 'tests/Composer/Test/Plugin/Fixtures'
|
|
|
|
|
|
+ - '../tests/Composer/Test/Fixtures/*'
|
|
|
|
+ - '../tests/Composer/Test/Autoload/Fixtures/*'
|
|
|
|
+ - '../tests/Composer/Test/Plugin/Fixtures/*'
|
|
ignoreErrors:
|
|
ignoreErrors:
|
|
- # unused parameters
|
|
|
|
- - '~^Constructor of class Composer\\Repository\\VcsRepository has an unused parameter \$dispatcher\.$~'
|
|
|
|
- - '~^Constructor of class Composer\\Repository\\PearRepository 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\.$~'
|
|
|
|
- - '~^Constructor of class Composer\\Repository\\PearRepository has an unused parameter \$config\.$~'
|
|
|
|
-
|
|
|
|
- # unused uses
|
|
|
|
- - '~^Anonymous function has an unused use \$io\.$~'
|
|
|
|
- - '~^Anonymous function has an unused use \$cache\.$~'
|
|
|
|
- - '~^Anonymous function has an unused use \$path\.$~'
|
|
|
|
-
|
|
|
|
# ion cube is not installed
|
|
# ion cube is not installed
|
|
- '~^Function ioncube_loader_\w+ not found\.$~'
|
|
- '~^Function ioncube_loader_\w+ not found\.$~'
|
|
# rar is not installed
|
|
# rar is not installed
|
|
@@ -33,14 +21,17 @@ parameters:
|
|
# variable defined in eval
|
|
# variable defined in eval
|
|
- '~^Undefined variable: \$res$~'
|
|
- '~^Undefined variable: \$res$~'
|
|
|
|
|
|
- # always checked whether the class exists
|
|
|
|
- - '~^Instantiated class Symfony\\Component\\Console\\Terminal not found\.$~'
|
|
|
|
- - '~^Class Symfony\\Component\\Console\\Input\\StreamableInputInterface not found\.$~'
|
|
|
|
- - '~^Call to an undefined static method Symfony\\Component\\Process\\Process::fromShellCommandline\(\).$~'
|
|
|
|
|
|
+ # we don't have different constructors for parent/child
|
|
|
|
+ - '~^Unsafe usage of new static\(\)\.$~'
|
|
|
|
|
|
- # parent call in test mocks
|
|
|
|
- - '~^Composer\\Test\\Mock\\HttpDownloaderMock::__construct\(\) does not call parent constructor from Composer\\Util\\HttpDownloader\.$~'
|
|
|
|
- - '~^Composer\\Test\\Mock\\InstallationManagerMock::__construct\(\) does not call parent constructor from Composer\\Installer\\InstallationManager\.$~'
|
|
|
|
|
|
+ # hhvm should have support for $this in closures
|
|
|
|
+ -
|
|
|
|
+ count: 1
|
|
|
|
+ message: '~^Using \$this inside anonymous function is prohibited because of PHP 5\.3 support\.$~'
|
|
|
|
+ path: '../tests/Composer/Test/Repository/PlatformRepositoryTest.php'
|
|
paths:
|
|
paths:
|
|
- - src
|
|
|
|
- - tests
|
|
|
|
|
|
+ - ../src
|
|
|
|
+ - ../tests
|
|
|
|
+
|
|
|
|
+rules:
|
|
|
|
+ - Composer\PHPStanRules\AnonymousFunctionWithThisRule
|