mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-07-24 09:05:34 +08:00
change fixer config
This commit is contained in:
@@ -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')
|
||||||
|
|||||||
Reference in New Issue
Block a user