config.neon 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. parameters:
  2. level: 1
  3. autoload_files:
  4. - '../src/bootstrap.php'
  5. excludes_analyse:
  6. - '../tests/Composer/Test/Fixtures/*'
  7. - '../tests/Composer/Test/Autoload/Fixtures/*'
  8. - '../tests/Composer/Test/Plugin/Fixtures/*'
  9. ignoreErrors:
  10. # unused parameters
  11. - '~^Constructor of class Composer\\Repository\\VcsRepository has an unused parameter \$dispatcher\.$~'
  12. - '~^Constructor of class Composer\\Util\\Http\\CurlDownloader has an unused parameter \$disableTls\.$~'
  13. - '~^Constructor of class Composer\\Util\\Http\\CurlDownloader has an unused parameter \$options\.$~'
  14. # ion cube is not installed
  15. - '~^Function ioncube_loader_\w+ not found\.$~'
  16. # variables from global scope
  17. - '~^Undefined variable: \$vendorDir$~'
  18. - '~^Undefined variable: \$baseDir$~'
  19. # variable defined in eval
  20. - '~^Undefined variable: \$res$~'
  21. # we don't have different constructors for parent/child
  22. - '~^Unsafe usage of new static\(\)\.$~'
  23. # BC with older PHPUnit
  24. - '~^Call to an undefined static method PHPUnit\\Framework\\TestCase::setExpectedException\(\)\.$~'
  25. # hhvm should have support for $this in closures
  26. -
  27. count: 1
  28. message: '~^Using \$this inside anonymous function is prohibited because of PHP 5\.3 support\.$~'
  29. path: '../tests/Composer/Test/Repository/PlatformRepositoryTest.php'
  30. paths:
  31. - ../src
  32. - ../tests
  33. rules:
  34. - Composer\PHPStanRules\AnonymousFunctionWithThisRule