Skip to content

Commit 419cd68

Browse files
localheinzondrejmirtes
authored andcommitted
Enhancement: Run ergebnis/composer-normalize in check target
1 parent a6d1352 commit 419cd68

File tree

2 files changed

+28
-1
lines changed

2 files changed

+28
-1
lines changed

build.xml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
composer-install,
77
lint,
88
cs,
9+
composer-normalize-check,
910
tests,
1011
phpstan
1112
"/>
@@ -32,6 +33,31 @@
3233
</exec>
3334
</target>
3435

36+
<target name="composer-normalize-check">
37+
<exec
38+
executable="composer"
39+
logoutput="true"
40+
passthru="true"
41+
checkreturn="true"
42+
>
43+
<arg value="normalize"/>
44+
<arg value="--ansi"/>
45+
<arg value="--dry-run"/>
46+
</exec>
47+
</target>
48+
49+
<target name="composer-normalize-fix">
50+
<exec
51+
executable="composer"
52+
logoutput="true"
53+
passthru="true"
54+
checkreturn="true"
55+
>
56+
<arg value="normalize"/>
57+
<arg value="--ansi"/>
58+
</exec>
59+
</target>
60+
3561
<target name="lint">
3662
<exec
3763
executable="vendor/bin/parallel-lint"

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
"slevomat/coding-standard": "^4.7.2",
1515
"symfony/process": "^4.0",
1616
"phpstan/extension-installer": "^1.0",
17-
"phpstan/phpstan-strict-rules": "^0.12"
17+
"phpstan/phpstan-strict-rules": "^0.12",
18+
"ergebnis/composer-normalize": "^2.0.2"
1819
},
1920
"autoload": {
2021
"psr-4": {"PHPStan\\PhpDocParser\\": ["src/"]}

0 commit comments

Comments
 (0)