[TASK] Add cglFixMyCommit.bat 69/53669/3
authorSusanne Moog <susanne.moog@typo3.com>
Thu, 10 Aug 2017 07:09:38 +0000 (09:09 +0200)
committerSusanne Moog <susanne.moog@typo3.org>
Fri, 11 Aug 2017 09:39:13 +0000 (11:39 +0200)
This patch introduces a bat file to run php-cs-fixer
with TYPO3 core config on Windows. It does not disable xdebug
like its linux counterpart.

Change-Id: If4543cac0b5026a8eab469f16e234130f999ba78
Resolves: #81949
Releases: master, 8.7
Reviewed-on: https://review.typo3.org/53669
Reviewed-by: Sascha Rademacher <sascha.rademacher+typo3@gmail.com>
Tested-by: Sascha Rademacher <sascha.rademacher+typo3@gmail.com>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Jigal van Hemert <jigal.van.hemert@typo3.org>
Tested-by: Jigal van Hemert <jigal.van.hemert@typo3.org>
Reviewed-by: Susanne Moog <susanne.moog@typo3.org>
Tested-by: Susanne Moog <susanne.moog@typo3.org>
Build/Scripts/cglFixMyCommit.bat [new file with mode: 0644]

diff --git a/Build/Scripts/cglFixMyCommit.bat b/Build/Scripts/cglFixMyCommit.bat
new file mode 100644 (file)
index 0000000..129dc19
--- /dev/null
@@ -0,0 +1,4 @@
+FOR /F %%i in ('git diff-tree --no-commit-id --name-only -r HEAD ^| findstr -i ".*\.php"') DO (
+       bin\php-cs-fixer.bat fix --path-mode intersection --config=Build/.php_cs %%i