1
0
mirror of https://github.com/xPaw/PHP-Source-Query.git synced 2026-06-11 00:03:15 +02:00

Bring in stricter CS Fixer rules.

This commit is contained in:
Anthony Birkett
2021-05-31 13:42:44 +01:00
parent 48b89017c4
commit 0e4d7d4a6b
23 changed files with 287 additions and 509 deletions
+27
View File
@@ -0,0 +1,27 @@
<?php
declare(strict_types=1);
return (new PhpCsFixer\Config())
->setRiskyAllowed(true)
->setRules([
'@PSR1' => true,
'@PSR12' => true,
'@PSR12:risky' => true,
'@PSR2' => true,
'@PhpCsFixer' => true,
'@PhpCsFixer:risky' => true,
'@Symfony' => true,
'@Symfony:risky' => true,
'concat_space' => false,
'native_constant_invocation' => false,
'native_function_invocation' => false,
'php_unit_fqcn_annotation' => false,
])
->setFinder(PhpCsFixer\Finder::create()
->exclude('vendor')
->in('Examples')
->in('SourceQuery')
->in('Tests')
)
;