Skip to content

Commit

Permalink
PHPLint add haltonfailure option on phplint
Browse files Browse the repository at this point in the history
  • Loading branch information
ngroot committed May 16, 2014
1 parent 4c16cea commit 3ae2fc1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion lib/phplint/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ Run PHPLint on a directory
Run PHPLint on multiple directories

## Configuration ##
TODO

+ `phplint.dir` - Location where the project source files are.
+ `phplint.haltonfailure` - Fail the build when phplint fails

## Dependencies ##
None
2 changes: 2 additions & 0 deletions lib/phplint/phplint.properties
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
<!-- Directories to lint. Use , to separate -->
phplint.dir=${project.basedir}/module,${project.basedir}/config

phplint.haltonfailure=true
2 changes: 1 addition & 1 deletion lib/phplint/phplint.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</target>

<target name="phplint">
<phplint>
<phplint haltonfailure="${phplint.haltonfailure}">
<fileset dir="${phplint.dir}">
<include name="*.php" />
<include name="**/*.php" />
Expand Down

0 comments on commit 3ae2fc1

Please sign in to comment.