Skip to content

Commit 9cdd121

Browse files
localheinzondrejmirtes
authored andcommitted
Enhancement: Run ergebnis/composer-normalize in check target
1 parent 6771ec8 commit 9cdd121

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
@@ -5,6 +5,7 @@
55
composer,
66
lint,
77
cs,
8+
composer-normalize-check,
89
tests,
910
phpstan
1011
"/>
@@ -20,6 +21,31 @@
2021
</exec>
2122
</target>
2223

24+
<target name="composer-normalize-check">
25+
<exec
26+
executable="composer"
27+
logoutput="true"
28+
passthru="true"
29+
checkreturn="true"
30+
>
31+
<arg value="normalize"/>
32+
<arg value="--ansi"/>
33+
<arg value="--dry-run"/>
34+
</exec>
35+
</target>
36+
37+
<target name="composer-normalize-fix">
38+
<exec
39+
executable="composer"
40+
logoutput="true"
41+
passthru="true"
42+
checkreturn="true"
43+
>
44+
<arg value="normalize"/>
45+
<arg value="--ansi"/>
46+
</exec>
47+
</target>
48+
2349
<target name="lint">
2450
<exec
2551
executable="vendor/bin/parallel-lint"

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@
3737
"nette/di": "^2.3.0 || ^3.0.0",
3838
"nette/forms": "^2.3.0 || ^3.0.0",
3939
"nette/utils": "^2.3.0 || ^3.0.0",
40-
"nette/http": "^2.3.0 || ^3.0.0"
40+
"nette/http": "^2.3.0 || ^3.0.0",
41+
"ergebnis/composer-normalize": "^2.0.2"
4142
},
4243
"conflict": {
4344
"nette/application": "<2.3.0",

0 commit comments

Comments
 (0)