From a3b7e80d0b69b3d8f67243b0adb7ec634d04b0d0 Mon Sep 17 00:00:00 2001 From: Pol Dellaiera Date: Sun, 19 Dec 2021 10:12:37 +0100 Subject: [PATCH] cs: Add custom PHP CS Fixer configuration. (cherry picked from commit 54bff1659f5ccdde10e7789998e7899b5bd8e586) --- .php-cs-fixer.dist.php | 21 +++++++++++++++++++++ grumphp.yml | 1 + 2 files changed, 22 insertions(+) create mode 100644 .php-cs-fixer.dist.php diff --git a/.php-cs-fixer.dist.php b/.php-cs-fixer.dist.php new file mode 100644 index 0000000..e9add4a --- /dev/null +++ b/.php-cs-fixer.dist.php @@ -0,0 +1,21 @@ +getFinder() + ->in( + [__DIR__ . '/src', __DIR__ . '/tests', __DIR__ . '/tests/benchmarks', __DIR__ . '/tests/static-analysis'] + ); + +return $config; diff --git a/grumphp.yml b/grumphp.yml index c935720..5fb79fd 100644 --- a/grumphp.yml +++ b/grumphp.yml @@ -8,6 +8,7 @@ parameters: # PHP CS Fixer tasks.phpcsfixer.diff: true + tasks.phpcsfixer.config: .php-cs-fixer.dist.php # PHPCS tasks.phpcs.ignore_patterns: