We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 27d6959 commit 49bcfe4Copy full SHA for 49bcfe4
docs/hooks/syntax-checker.md
@@ -1,7 +1,10 @@
1
# Description
2
3
Checks for syntax errors in files that have a checker, based on the file extension.
4
-For the moment, there only is a php checker, located at `hooks/syntaxchecker/php/check.sh`.
+For the moment, there is :
5
+
6
+- a php checker, located at `hooks/syntaxchecker/php.sh`;
7
+- an xliff checker, located at `hooks/syntaxchecker/xlf.sh`.
8
9
This hook is language-agnostic.
10
template/hooks/syntaxchecker/xlf.sh
@@ -0,0 +1,7 @@
+#!/bin/sh
+type xmllint > /dev/null 2>&1
+if [ $? -eq 0 ]
+then
+ xmllint $FILE > /dev/null
+fi
0 commit comments