From 0ae6064c1e435b8529cae36e9a5dc91e6e8aeed3 Mon Sep 17 00:00:00 2001 From: Sebastian Meyer Date: Fri, 9 Feb 2024 21:31:00 +0100 Subject: [PATCH] Update static analyzer configuration --- .php-cs-fixer.dist.php | 8 ++++++-- phpcs.xml.dist | 2 ++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.php-cs-fixer.dist.php b/.php-cs-fixer.dist.php index 32a7a44..385bca2 100644 --- a/.php-cs-fixer.dist.php +++ b/.php-cs-fixer.dist.php @@ -24,11 +24,15 @@ namespace PhpCsFixer; /** * Configuration for PHP-CS-Fixer. + * * @see https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/master/doc/config.rst * * @return ConfigInterface */ -return (new Config()) +$config = new Config(); +$finder = new Finder(); + +return $config ->setRiskyAllowed(true) ->setRules(['@PSR12' => true]) - ->setFinder((new Finder())->in(__DIR__)); + ->setFinder($finder->in([__DIR__ . '/src'])); diff --git a/phpcs.xml.dist b/phpcs.xml.dist index 55e97f3..44db698 100644 --- a/phpcs.xml.dist +++ b/phpcs.xml.dist @@ -3,5 +3,7 @@ Open Culture Consulting strictly follows PSR standards. ./src + +