agriget/utils/gitlab-ci/phpmd.sh

9 lines
187 B
Bash
Raw Normal View History

2019-03-22 22:17:29 +08:00
#!/bin/sh
set -e
phpmd include,classes,plugins text utils/gitlab-ci/phpmd-ruleset.xml
FILES=$(ls -dm *.php | tr -d " "| tr -d "\n")
phpmd $FILES text utils/gitlab-ci/phpmd-ruleset.xml