Skip to content

Commit

Permalink
Add PHPStan config (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
DieterHolvoet committed Nov 1, 2020
1 parent e9fa070 commit dca8927
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 3 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
},
"require-dev": {
"ergebnis/composer-normalize": "^2.0",
"wieni/wmcodestyle": "^1.0"
"wieni/wmcodestyle": "^1.3"
},
"repositories": [
{
Expand All @@ -27,7 +27,8 @@
"scripts": {
"coding-standards": [
"@composer normalize",
"php-cs-fixer fix --config=.php_cs.php"
"php-cs-fixer fix --config=.php_cs.php",
"phpstan analyse"
]
}
}
3 changes: 3 additions & 0 deletions phpstan.neon
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
includes:
- vendor/wieni/wmcodestyle/phpstan/custom-rules.neon
- vendor/wieni/wmcodestyle/phpstan/drupal-module.neon

0 comments on commit dca8927

Please sign in to comment.