Create clean_levels.sh

This commit is contained in:
Gabriel Caruso 2017-12-30 15:41:49 -02:00
parent 3bf09cc19f
commit ad03ea6a57
2 changed files with 12 additions and 2 deletions

3
bin/clean_levels.sh Executable file
View File

@ -0,0 +1,3 @@
#!/usr/bin/env bash
# trailing whitespaces
sed -i -E 's/\s+$//g' src/config/level/*/*.yml

View File

@ -57,9 +57,16 @@
}
},
"scripts": {
"complete-check": ["@check-cs", "phpunit", "@phpstan"],
"complete-check": [
"@check-cs",
"phpunit",
"@phpstan"
],
"check-cs": "vendor/bin/ecs check bin packages src tests",
"fix-cs": "vendor/bin/ecs check bin packages src tests --fix",
"fix-cs": [
"vendor/bin/ecs check bin packages src tests --fix",
"bin/clean_levels.sh"
],
"phpstan": "vendor/bin/phpstan.phar analyse packages src tests --level max --configuration phpstan.neon"
},
"bin": [