Skip to content

Commit d508edc

Browse files
committed
Default to the loadsys coding standard.
1 parent 0847442 commit d508edc

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

run-codesniffer

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,10 @@ else
6161
COVERAGE="--report-full --report-summary"
6262
fi
6363

64-
$PHPCS -p --extensions=php --standard=CakePHP ${COVERAGE} ${SNIFF_FOLDERS[@]}
64+
# @TODO: Detect which to use. Ours should be a dependency of the shell-scripts so it's always available though.
65+
CODE_STANDARD=CakePHP
66+
CODE_STANDARD=Vendor/loadsys/loadsys_codesniffer/Loadsys
67+
$PHPCS -p --extensions=php --standard="$CODE_STANDARD" ${COVERAGE} ${SNIFF_FOLDERS[@]}
6568

6669
if [ $SAVE_REPORTS ] && [ $? -eq 0 ]; then
6770
echo "## Full report created at: ${FULL_REPORT_FILE}"

0 commit comments

Comments
 (0)