Skip to content

Commit 20c1d8c

Browse files
committed
Updated README
1 parent b5063fa commit 20c1d8c

File tree

1 file changed

+14
-6
lines changed

1 file changed

+14
-6
lines changed

README.md

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,18 +41,26 @@ Unexpected T_OBJECT_OPERATOR (->), expecting T_STRING or T_VARIABLE or '{' or '$
4141

4242
Recommended 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
```

0 commit comments

Comments
 (0)