Removing some unused code (#875)
[openemr.git] / ci / lint.sh
blob42f7d551d08d73f2a35048a4e9fd8d7614ff5602
1 #!/bin/bash
3 if [ -z "$1" ] || [ "$1" == "-h" ] || [ "$1" == "--help" ] ; then
4 printf "OpenEMR Parallel Linter\n\n"
5 printf " Arguments\n"
6 printf " -h, --help | Information on using this script\n"
7 printf " -d, --dir | The codebase directory for OpenEMR\n"
8 exit 0
9 fi
11 if [ "$1" == "-d" ] || [ "$1" == "--dir" ] ; then
12 cd $2
13 find . -type d \( -path ./vendor \
14 -o -path ./interface/main/calendar/modules \
15 -o -path ./interface/reports \
16 -o -path ./contrib/util \
17 -o -path ./library/html2pdf/vendor/tecnickcom \
18 -o -path ./library/classes/fpdf \
19 -o -path ./library/html2pdf \
20 -o -path ./gacl \
21 -o -path ./library/edihistory \) -prune -o \
22 -name "*.php" -print0 | xargs -0 -n1 -P8 php -l