summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2017-04-26 15:33:01 +0300
committerAndrew Dolgov <[email protected]>2017-04-26 15:33:01 +0300
commit2f3bce59605a68a25c7b7d675a000c040dcfd326 (patch)
tree02b85f443095985dcab66752f946492c95c85511 /utils
parent7b55001eeeb326323d020dcfac2f864f8c3ad633 (diff)
move phpmd stuff to a script
Diffstat (limited to 'utils')
-rw-r--r--utils/gitlab-ci/phpmd.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/utils/gitlab-ci/phpmd.sh b/utils/gitlab-ci/phpmd.sh
new file mode 100644
index 000000000..3f3b376bc
--- /dev/null
+++ b/utils/gitlab-ci/phpmd.sh
@@ -0,0 +1,7 @@
+#!/bin/sh -e
+
+phpmd include text utils/gitlab-ci/phpmd-ruleset.xml
+phpmd classes text utils/gitlab-ci/phpmd-ruleset.xml
+
+FILES=$(ls -dm *.php | sed "s/ //g")
+phpmd $FILES text utils/gitlab-ci/phpmd-ruleset.xml