Update static analyzer configuration

This commit is contained in:
Sebastian Meyer 2024-02-09 21:31:00 +01:00
parent fc54a7161b
commit 0ae6064c1e
2 changed files with 8 additions and 2 deletions

View File

@ -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']));

View File

@ -3,5 +3,7 @@
<description>Open Culture Consulting strictly follows PSR standards.</description>
<file>./src</file>
<arg name="extensions" value="php"/>
<rule ref="PSR1"/>
<rule ref="PSR2"/>
<rule ref="PSR12"/>
</ruleset>