File tree Expand file tree Collapse file tree 1 file changed +14
-6
lines changed Expand file tree Collapse file tree 1 file changed +14
-6
lines changed Original file line number Diff line number Diff line change @@ -41,18 +41,26 @@ Unexpected T_OBJECT_OPERATOR (->), expecting T_STRING or T_VARIABLE or '{' or '$
41
41
42
42
Recommended setting for usage with Symfony framework
43
43
--------------
44
+
45
+ For run from command line:
46
+
44
47
```
45
48
$ ./bin/parallel-lint --exclude .git --exclude app --exclude vendor .
46
49
```
47
50
48
- Using in ANT
49
- ------------
51
+ or setting for ANT:
50
52
51
53
``` xml
52
- <target name =" lint" description =" Check syntax errors in PHP files" >
53
- <exec executable =" php" failonerror =" true" >
54
- <arg line =" ${basedir}/tests/lint/run.php" />
55
- <arg line =" ${basedir}/private/" />
54
+ <condition property =" parallel-lint" value =" ${basedir}/bin/parallel-lint.bat" else =" ${basedir}/bin/parallel-lint" >
55
+ <os family =" windows" />
56
+ </condition >
57
+
58
+ <target name =" parallel-lint" description =" Run PHP parallel lint" >
59
+ <exec executable =" ${parallel-lint}" >
60
+ <arg line =' --exclude ${basedir}/.git/' />
61
+ <arg line =' --exclude ${basedir}/app/' />
62
+ <arg line =' --exclude ${basedir}/vendor/' />
63
+ <arg line =' ${basedir}' />
56
64
</exec >
57
65
</target >
58
66
```
You can’t perform that action at this time.
0 commit comments