Skip to content

Commit

Permalink
Replace drupal-check in favour of phpstan
Browse files Browse the repository at this point in the history
  • Loading branch information
omarlopesino committed Apr 14, 2023
1 parent 8f421a5 commit 99302a4
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 3 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
"drush/drush": "^10.3"
},
"require-dev": {
"metadrop/drupal-dev": "^0.1.10",
"metadrop/drupal-dev": "^0.3",
"metadrop/grumphp-php-compatibility": "master",
"phpcompatibility/php-compatibility": "dev-develop as 9.3.5"
},
Expand Down
10 changes: 8 additions & 2 deletions grumphp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ grumphp:
git_hook_variables:
EXEC_GRUMPHP_COMMAND: docker-compose run -e'PHP_ERROR_REPORTING=E_ALL & ~E_DEPRECATED' --rm -T php
extensions:
- GrumphpDrupalCheck\ExtensionLoader
- Metadrop\PhpCompatibilityTask\ExtensionLoader
hooks_dir: ~
hooks_preset: local
Expand Down Expand Up @@ -39,7 +38,6 @@ grumphp:
yamllint: ~
composer: ~
jsonlint: ~
drupalcheck: ~
file_size:
max_size: 2M
ignore_patterns:
Expand Down Expand Up @@ -101,3 +99,11 @@ grumphp:
- inc
- module
- install
phpstan:
autoload_file: ~
configuration: ~
force_patterns: []
ignore_patterns: []
triggered_by: ['php', 'module', 'inc', 'theme', 'install']
memory_limit: "-1"
use_grumphp_paths: true
10 changes: 10 additions & 0 deletions phpstan.neon
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
parameters:
level: 8
paths:
- web/modules/custom
- web/themes/custom
ignoreErrors:
- message: '#.*return type has no value type specified.*#'
- message: '#.*has parameter .* with no type specified#'
- message: '#.*has no return type specified.*#'
- message: '#.*has parameter .* with no value type specified*#'

0 comments on commit 99302a4

Please sign in to comment.