# Generate empty folder
mkdir tmp
cd tmp
git init
echo "vendor" > .gitignore
pbpaste > grumphp.yml
composer require --dev phpro/grumphp
# Your actions
# Please add the steps on how to reproduce the issue here.
We are using this with Magento 2.
The php-cs-fixer exclude is working while I run php-cs-fixer separately.
But with GrumPHP it is not able to exclude the directories as configured in .php-cs-fixer.php.
Please check the attached screenshot.
# Run GrumPHP:
git add -A && git commit -m"Test"
# or
./vendor/bin/grumphp run
Result:
# Please add the result of the run or git commit actions here.
phpcsfixer2
===========
1) /var/www/html/magento/magento245ee_1/site/magento/dev/tests/api-functional/testsuite/Magento/GraphQl/Catalog/ProductPriceTest.php (braces, method_argument_space, no_singleline_whitespace_before_semicolons, ordered_imports)
2) /var/www/html/magento/magento245ee_1/site/magento/dev/tests/api-functional/testsuite/Magento/GraphQl/Quote/CartPromotionsTest.php (no_multiline_whitespace_around_double_arrow, ordered_imports)
3) /var/www/html/magento/magento245ee_1/site/magento/dev/tests/integration/framework/Magento/TestFramework/MessageQueue/PublisherConsumerController.php (ordered_imports)
![image](https://user-images.githubusercontent.com/4614581/235480954-522a665d-8de9-4c47-9b22-8c00639656d6.png)
My configuration
dist file - https://github.com/magento/magento2/blob/2.4-develop/.php-cs-fixer.dist.php
Steps to reproduce:
Result: