3 if [ -z "$1" ] ||
[ "$1" == "-h" ] ||
[ "$1" == "--help" ] ; then
4 printf "OpenEMR Parallel Linter\n\n"
6 printf " -h, --help | Information on using this script\n"
7 printf " -d, --dir | The codebase directory for OpenEMR\n"
11 if [ "$1" == "-d" ] ||
[ "$1" == "--dir" ] ; then
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 \
21 -o -path .
/library
/edihistory \
) -prune -o \
22 -name "*.php" -print0 |
xargs -0 -n1 -P8 php
-l