change fixer config

This commit is contained in:
crazywhalecc
2022-12-24 01:26:34 +08:00
parent bd98608d2e
commit ccc0280d2f

View File

@@ -6,9 +6,7 @@ declare(strict_types=1);
* @since 2.7.0 * @since 2.7.0
*/ */
return (new PhpCsFixer\Config()) $rules = [
->setRiskyAllowed(true)
->setRules([
'@PSR12' => true, '@PSR12' => true,
'@Symfony' => true, '@Symfony' => true,
'@PhpCsFixer' => true, '@PhpCsFixer' => true,
@@ -68,8 +66,17 @@ return (new PhpCsFixer\Config())
'php_unit_test_class_requires_covers' => false, 'php_unit_test_class_requires_covers' => false,
'global_namespace_import' => false, 'global_namespace_import' => false,
'phpdoc_order' => false, 'phpdoc_order' => false,
'no_useless_concat_operator' => false, ];
])
if (PHP_VERSION_ID > 70400) {
$rules['no_useless_concat_operator'] = false;
}
// 'no_useless_concat_operator' => false,
return (new PhpCsFixer\Config())
->setRiskyAllowed(true)
->setRules($rules)
->setFinder( ->setFinder(
PhpCsFixer\Finder::create() PhpCsFixer\Finder::create()
->in(__DIR__ . '/src') ->in(__DIR__ . '/src')