Update static analyzer configuration
This commit is contained in:
parent
fc54a7161b
commit
0ae6064c1e
|
@ -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']));
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue