Skip to content

Instantly share code, notes, and snippets.

@MacDada
Created October 18, 2015 15:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MacDada/41a3db98cd8336644d82 to your computer and use it in GitHub Desktop.
Save MacDada/41a3db98cd8336644d82 to your computer and use it in GitHub Desktop.
Ant: build.xml: php lint
<?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