config.neon 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. parameters:
  2. autoload_files:
  3. - phpstan/autoload.php
  4. level: 0
  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. # unused uses
  17. - '~^Anonymous function has an unused use \$io\.$~'
  18. - '~^Anonymous function has an unused use \$cache\.$~'
  19. - '~^Anonymous function has an unused use \$path\.$~'
  20. # ion cube is not installed
  21. - '~^Function ioncube_loader_\w+ not found\.$~'
  22. # rar is not installed
  23. - '~^Call to static method open\(\) on an unknown class RarArchive\.$~'
  24. # imagick is not installed
  25. - '~^Instantiated class Imagick not found\.$~'
  26. # variables from global scope
  27. - '~^Undefined variable: \$vendorDir$~'
  28. - '~^Undefined variable: \$baseDir$~'
  29. # variable defined in eval
  30. - '~^Undefined variable: \$res$~'
  31. # always checked whether the class exists
  32. - '~^Instantiated class Symfony\\Component\\Console\\Terminal not found\.$~'
  33. - '~^Class Symfony\\Component\\Console\\Input\\StreamableInputInterface not found\.$~'
  34. - '~^Call to an undefined static method Symfony\\Component\\Process\\Process::fromShellCommandline\(\).$~'
  35. # parent call in test mocks
  36. - '~^Composer\\Test\\Mock\\HttpDownloaderMock::__construct\(\) does not call parent constructor from Composer\\Util\\HttpDownloader\.$~'
  37. - '~^Composer\\Test\\Mock\\InstallationManagerMock::__construct\(\) does not call parent constructor from Composer\\Installer\\InstallationManager\.$~'
  38. paths:
  39. - src
  40. - tests