Skip to content
This repository has been archived by the owner on Jul 1, 2023. It is now read-only.

Commit

Permalink
Updated README
Browse files Browse the repository at this point in the history
  • Loading branch information
JakubOnderka committed Nov 10, 2013
1 parent b5063fa commit 20c1d8c
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,18 +41,26 @@ Unexpected T_OBJECT_OPERATOR (->), expecting T_STRING or T_VARIABLE or '{' or '$

Recommended setting for usage with Symfony framework
--------------

For run from command line:

```
$ ./bin/parallel-lint --exclude .git --exclude app --exclude vendor .
```

Using in ANT
------------
or setting for ANT:

```xml
<target name="lint" description="Check syntax errors in PHP files">
<exec executable="php" failonerror="true">
<arg line="${basedir}/tests/lint/run.php" />
<arg line="${basedir}/private/" />
<condition property="parallel-lint" value="${basedir}/bin/parallel-lint.bat" else="${basedir}/bin/parallel-lint">
<os family="windows"/>
</condition>

<target name="parallel-lint" description="Run PHP parallel lint">
<exec executable="${parallel-lint}">
<arg line='--exclude ${basedir}/.git/' />
<arg line='--exclude ${basedir}/app/' />
<arg line='--exclude ${basedir}/vendor/' />
<arg line='${basedir}' />
</exec>
</target>
```

0 comments on commit 20c1d8c

Please sign in to comment.