Update static analyzer configuration
This commit is contained in:
parent
fc54a7161b
commit
0ae6064c1e
|
@ -24,11 +24,15 @@ namespace PhpCsFixer;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Configuration for PHP-CS-Fixer.
|
* Configuration for PHP-CS-Fixer.
|
||||||
|
*
|
||||||
* @see https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/master/doc/config.rst
|
* @see https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/master/doc/config.rst
|
||||||
*
|
*
|
||||||
* @return ConfigInterface
|
* @return ConfigInterface
|
||||||
*/
|
*/
|
||||||
return (new Config())
|
$config = new Config();
|
||||||
|
$finder = new Finder();
|
||||||
|
|
||||||
|
return $config
|
||||||
->setRiskyAllowed(true)
|
->setRiskyAllowed(true)
|
||||||
->setRules(['@PSR12' => true])
|
->setRules(['@PSR12' => true])
|
||||||
->setFinder((new Finder())->in(__DIR__));
|
->setFinder($finder->in([__DIR__ . '/src']));
|
||||||
|
|
|
@ -3,5 +3,7 @@
|
||||||
<description>Open Culture Consulting strictly follows PSR standards.</description>
|
<description>Open Culture Consulting strictly follows PSR standards.</description>
|
||||||
<file>./src</file>
|
<file>./src</file>
|
||||||
<arg name="extensions" value="php"/>
|
<arg name="extensions" value="php"/>
|
||||||
|
<rule ref="PSR1"/>
|
||||||
|
<rule ref="PSR2"/>
|
||||||
<rule ref="PSR12"/>
|
<rule ref="PSR12"/>
|
||||||
</ruleset>
|
</ruleset>
|
||||||
|
|
Loading…
Reference in New Issue