Debug php-cs-fixer
This commit is contained in:
parent
a04dafff18
commit
309b308adc
4 changed files with 11 additions and 1 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -66,3 +66,4 @@ doc/install.lock
|
|||
/build/phpstan/phpstan
|
||||
/build/phpstan/bootstrap_custom.php
|
||||
phpstan_custom.neon
|
||||
/.php-cs-fixer.cache
|
||||
|
|
|
|||
|
|
@ -3,6 +3,8 @@
|
|||
$finder = (new PhpCsFixer\Finder())
|
||||
->in(__DIR__)
|
||||
->exclude([
|
||||
'documents',
|
||||
'htdocs/custom',
|
||||
'htdocs/includes',
|
||||
])
|
||||
->notPath([
|
||||
|
|
|
|||
1
dev/tools/.gitignore
vendored
Normal file
1
dev/tools/.gitignore
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
/vendor/
|
||||
8
dev/tools/run-php-cs-fixer.sh
Normal file → Executable file
8
dev/tools/run-php-cs-fixer.sh
Normal file → Executable file
|
|
@ -6,7 +6,7 @@
|
|||
# Optionally set COMPOSER_VENDOR_DIR to your vendor path for composer.
|
||||
#
|
||||
# Run php-cs-fixer by calling this script:
|
||||
# ./run-php-cs-fixer.sh check # Only checks (the default)
|
||||
# ./run-php-cs-fixer.sh check # Only checks
|
||||
# ./run-php-cs-fixer.sh fix # Fixes
|
||||
#
|
||||
# You can fix only a few files using
|
||||
|
|
@ -42,6 +42,12 @@ if [ ! -r "${PHP_CS_FIXER}" ] ; then
|
|||
fi
|
||||
|
||||
|
||||
if [ "x$1" = "x" ]; then
|
||||
echo "***** run-php-cs-fixer.sh *****"
|
||||
echo "Syntax: run-php-cs-fixer.sh check|fix [path]"
|
||||
exit 1;
|
||||
fi
|
||||
|
||||
(
|
||||
cd "${MYDIR}/../.." || exit
|
||||
CMD=
|
||||
|
|
|
|||
Loading…
Reference in a new issue