Created
October 18, 2015 15:32
-
-
Save MacDada/41a3db98cd8336644d82 to your computer and use it in GitHub Desktop.
Ant: build.xml: php lint
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<project name="NazwaProjektu" default="lint"> | |
<target name="lint" description="Sprawdzamy poprawność składni PHP (syntax check)"> | |
<apply executable="php" failonerror="true"> | |
<arg value="--syntax-check" /> | |
<fileset dir="${basedir}"> | |
<include name="**/*.php" /><!-- sprawdzaj wszystkie pliki php --> | |
<exclude name="PominTenFolder/**/*" /> | |
<exclude name="pomin/tez/folder/z/keszami/app/cache/**/*" /> | |
<exclude name="bin/**/*" /> | |
<exclude name="vendor/**/*" /> | |
<exclude name="src/foo/bar.php" /><!-- pomin tez ten plik --> | |
<modified /><!-- sprawdzaj tylko zmienione pliki, zeby bylo szybciej --> | |
</fileset> | |
</apply> | |
</target> | |
</project> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment