config.neon 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. parameters:
  2. level: 1
  3. autoload_files:
  4. - autoload.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\\Repository\\PearRepository has an unused parameter \$dispatcher\.$~'
  13. - '~^Constructor of class Composer\\Util\\Http\\CurlDownloader has an unused parameter \$disableTls\.$~'
  14. - '~^Constructor of class Composer\\Util\\Http\\CurlDownloader has an unused parameter \$options\.$~'
  15. - '~^Constructor of class Composer\\Repository\\PearRepository has an unused parameter \$config\.$~'
  16. # ion cube is not installed
  17. - '~^Function ioncube_loader_\w+ not found\.$~'
  18. # rar is not installed
  19. - '~^Call to static method open\(\) on an unknown class RarArchive\.$~'
  20. # imagick is not installed
  21. - '~^Instantiated class Imagick not found\.$~'
  22. # windows specific constants
  23. -
  24. message: '~^Constant PHP_WINDOWS_VERSION_MAJOR not found\.$~'
  25. path: '*/src/Composer/Downloader/PathDownloader.php'
  26. -
  27. message: '~^Constant PHP_WINDOWS_VERSION_MINOR not found\.$~'
  28. path: '*/src/Composer/Downloader/PathDownloader.php'
  29. # variables from global scope
  30. - '~^Undefined variable: \$vendorDir$~'
  31. - '~^Undefined variable: \$baseDir$~'
  32. # variable defined in eval
  33. - '~^Undefined variable: \$res$~'
  34. # we don't have different constructors for parent/child
  35. - '~^Unsafe usage of new static\(\)\.$~'
  36. # BC with older PHPUnit
  37. - '~^Call to an undefined static method PHPUnit\\Framework\\TestCase::setExpectedException\(\)\.$~'
  38. # hhvm should have support for $this in closures
  39. -
  40. count: 1
  41. message: '~^Using \$this inside anonymous function is prohibited because of PHP 5\.3 support\.$~'
  42. path: '../tests/Composer/Test/Repository/PlatformRepositoryTest.php'
  43. paths:
  44. - ../src
  45. - ../tests
  46. rules:
  47. - Composer\PHPStanRules\AnonymousFunctionWithThisRule