Skip to content

Commit

Permalink
cs: Add custom PHP CS Fixer configuration.
Browse files Browse the repository at this point in the history
(cherry picked from commit 54bff1659f5ccdde10e7789998e7899b5bd8e586)
  • Loading branch information
drupol committed Dec 19, 2021
1 parent 5201840 commit a3b7e80
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?php

/**
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*/

declare(strict_types=1);

use PhpCsFixer\Config;

$config = require __DIR__ . '/vendor/drupol/php-conventions/config/php73/php_cs_fixer.config.php';

/** @var Config $config */
$config
->getFinder()
->in(
[__DIR__ . '/src', __DIR__ . '/tests', __DIR__ . '/tests/benchmarks', __DIR__ . '/tests/static-analysis']
);

return $config;
1 change: 1 addition & 0 deletions grumphp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit a3b7e80

Please sign in to comment.