diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 31a819c6..a47d3f54 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -40,8 +40,11 @@ jobs: - name: Run PHPCS run: | - vendor/bin/phpcs public/modules/custom/ --ignore="*.js,*.css" --extensions=php,module,install --standard=Drupal - vendor/bin/phpcs public/themes/custom/ --ignore="*.js,*.css" --extensions=php,theme --standard=Drupal + vendor/bin/phpcs public/modules/custom/ --ignore="*.js,*.css" --extensions=php,module,install --standard=Drupal,DrupalPractice + vendor/bin/phpcs public/themes/custom/ --ignore="*.js,*.css" --extensions=php,theme --standard=Drupal,DrupalPractice + + - name: Run phpstan + run: vendor/bin/phpstan analyze - name: Download latest dump env: diff --git a/phpstan.neon b/phpstan.neon new file mode 100644 index 00000000..8b083a22 --- /dev/null +++ b/phpstan.neon @@ -0,0 +1,14 @@ +parameters: + fileExtensions: + - php + - module + - install + - theme + paths: + - ./public/modules/custom + - ./public/themes/custom + excludePaths: + - vendor + level: 3 + checkMissingIterableValueType: false + treatPhpDocTypesAsCertain: false