mirror of
https://github.com/Karaka-Management/oms-Search.git
synced 2026-01-26 16:58:41 +00:00
9 lines
410 B
Bash
9 lines
410 B
Bash
#!/bin/sh
|
|
set -eu
|
|
|
|
IFS='
|
|
'
|
|
CHANGED_FILES=$(git diff --name-only --diff-filter=ACMRTUXB "${COMMIT_RANGE}")
|
|
if ! echo "${CHANGED_FILES}" | grep -qE "^(\\.php_cs(\\.dist)?|composer\\.lock)$"; then EXTRA_ARGS=$(printf -- '--path-mode=intersection\n--\n%s' "${CHANGED_FILES}"); else EXTRA_ARGS=''; fi
|
|
vendor/bin/php-cs-fixer fix --config=.php_cs.dist -v --dry-run --stop-on-violation --using-cache=no ${EXTRA_ARGS}
|