district09/php_package_qa-drupal

View on GitHub
configs/phpstan.neon

Summary

Maintainability
Test Coverage
includes:
  - vendor/mglaman/phpstan-drupal/extension.neon
  - vendor/phpstan/phpstan-deprecation-rules/rules.neon

parameters:
  level: 4
  tipsOfTheDay: false
  reportUnmatchedIgnoredErrors: false
  ignoreErrors:
    - '#Unsafe usage of new static\(\)#'
    - '#\\Drupal calls should be avoided in classes#'
    - '#Method Drupal\\Core\\Form\\FormBuilderInterface::getForm\(\) invoked with#'
    - '#Access to an undefined property Drupal\\Core\\TypedData\\TypedDataInterface::\$#'

  excludePaths:
    - '*/node_modules/*'

  scanDirectories:
    - %currentWorkingDirectory%

  parallel:
    jobSize: 20
    maximumNumberOfProcesses: 4