This repository was archived by the owner on Jul 1, 2023. It is now read-only.
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 '$
4141
4242Recommended setting for usage with Symfony framework
4343--------------
44+
45+ For run from command line:
46+
4447```
4548$ ./bin/parallel-lint --exclude .git --exclude app --exclude vendor .
4649```
4750
48- Using in ANT
49- ------------
51+ or setting for ANT:
5052
5153``` 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}' />
5664 </exec >
5765</target >
5866```
You can’t perform that action at this time.
0 commit comments