Commit b1c235c9 authored by Guillaume Perréal's avatar Guillaume Perréal
Browse files

Ajoute "composer format" comme commande pour formatter le code source.

No related merge requests found
Showing with 3 additions and 2 deletions
+3 -2
...@@ -49,7 +49,8 @@ ...@@ -49,7 +49,8 @@
"post-create-project-cmd": "rm CUSTOMIZATION.md README.md LICENSE .docheader src/*.php tests/*.php", "post-create-project-cmd": "rm CUSTOMIZATION.md README.md LICENSE .docheader src/*.php tests/*.php",
"customize-reminder": "echo 'Ne pas oublier de configurer ce template, cf. https://gitlab.irstea.fr/pole-is/tools/php-skeleton/blob/master/CUSTOMIZATION.md'", "customize-reminder": "echo 'Ne pas oublier de configurer ce template, cf. https://gitlab.irstea.fr/pole-is/tools/php-skeleton/blob/master/CUSTOMIZATION.md'",
"phploc": "vendor/bin/phploc src tests", "phploc": "vendor/bin/phploc src tests",
"fix-cs": "vendor/bin/php-cs-fixer fix", "format": "vendor/bin/php-cs-fixer fix",
"fix-cs": "@format",
"test": [ "test": [
"@test:lint", "@test:lint",
"@test:php-cs-fixer", "@test:php-cs-fixer",
...@@ -70,7 +71,7 @@ ...@@ -70,7 +71,7 @@
"test:security-checker": "test '!' -s composer.lock || vendor/bin/security-checker security:check" "test:security-checker": "test '!' -s composer.lock || vendor/bin/security-checker security:check"
}, },
"scripts-descriptions": { "scripts-descriptions": {
"fix-cs": "Applique les corrections automatiques de style.", "format": "Applique les corrections automatiques de style de code.",
"phploc": "Calcule des stats sur les sources.", "phploc": "Calcule des stats sur les sources.",
"test": "Exécute tous les tests en série.", "test": "Exécute tous les tests en série.",
"test:lint": "Vérifie la syntaxe.", "test:lint": "Vérifie la syntaxe.",
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment