aboutsummaryrefslogtreecommitdiff
path: root/tools/checkstyle.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tools/checkstyle.sh')
-rwxr-xr-xtools/checkstyle.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/tools/checkstyle.sh b/tools/checkstyle.sh
new file mode 100755
index 000000000..542756932
--- /dev/null
+++ b/tools/checkstyle.sh
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+DEFAULT_SRC_SOURCES=WordPress/src/main/java
+
+if [ x"$1" == x ]; then
+ checkstyle -c cq-configs/checkstyle/checkstyle.xml -r $DEFAULT_SRC_SOURCES
+else
+ checkstyle -c cq-configs/checkstyle/checkstyle.xml $@
+fi