Fix PHPStan and PHPCS errors
This commit is contained in:
parent
f5a0225c86
commit
b49b487590
4 changed files with 12 additions and 15 deletions
12
Makefile
12
Makefile
|
@ -3,18 +3,12 @@ SHELL=/bin/bash -e -o pipefail
|
|||
.PHONY: *
|
||||
|
||||
phpcs:
|
||||
symfony php vendor/bin/phpcs -n \
|
||||
--standard="Drupal,DrupalPractice" \
|
||||
--extensions="php,module,inc,install,test,profile,theme" \
|
||||
--ignore=*/tests/* \
|
||||
--exclude="Drupal.Commenting.ClassComment,Drupal.Commenting.FunctionComment" \
|
||||
web/modules/custom
|
||||
|
||||
symfony php vendor/bin/phpcs -n \
|
||||
--standard="Drupal,DrupalPractice" \
|
||||
--extensions="php,module,inc,install,test,profile,theme" \
|
||||
--exclude="Drupal.Commenting.ClassComment,Drupal.Commenting.DocComment,Drupal.Commenting.FunctionComment,Drupal.NamingConventions.ValidFunctionName" \
|
||||
web/modules/custom/**/tests
|
||||
--exclude="Drupal.Commenting.ClassComment,Drupal.Commenting.FunctionComment,Drupal.Commenting.VariableComment" \
|
||||
web/modules/custom \
|
||||
web/themes/custom
|
||||
|
||||
phpstan:
|
||||
vendor/bin/phpstan analyze
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue