[TASK] Add cglFixMyCommit.bat 78/53678/2
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:54:21 +0000 (11:54 +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/53678
Tested-by: TYPO3com <no-reply@typo3.com>
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 @@
+@ECHO OFF
+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
+)