Skip to content

Commit

Permalink
Enhancement: Run ergebnis/composer-normalize in check target
Browse files Browse the repository at this point in the history
  • Loading branch information
localheinz authored and ondrejmirtes committed Dec 20, 2019
1 parent a8d465a commit 91eabf9
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
26 changes: 26 additions & 0 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
composer,
lint,
cs,
composer-normalize-check,
phpstan
"/>

Expand All @@ -19,6 +20,31 @@
</exec>
</target>

<target name="composer-normalize-check">
<exec
executable="composer"
logoutput="true"
passthru="true"
checkreturn="true"
>
<arg value="normalize"/>
<arg value="--ansi"/>
<arg value="--dry-run"/>
</exec>
</target>

<target name="composer-normalize-fix">
<exec
executable="composer"
logoutput="true"
passthru="true"
checkreturn="true"
>
<arg value="normalize"/>
<arg value="--ansi"/>
</exec>
</target>

<target name="lint">
<exec
executable="vendor/bin/parallel-lint"
Expand Down
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
"jakub-onderka/php-parallel-lint": "^1.0",
"phpstan/phpstan-strict-rules": "^0.11",
"slevomat/coding-standard": "^5.0.4",
"phing/phing": "^2.16"
"phing/phing": "^2.16",
"ergebnis/composer-normalize": "^2.0.2"
},
"autoload": {
"psr-4": {
Expand Down

0 comments on commit 91eabf9

Please sign in to comment.