mirror of
https://github.com/klaussilveira/gitlist.git
synced 2026-04-14 16:37:58 +02:00
Upgraded to Symfony 6.3 and PHP 8.2.
This commit is contained in:
@@ -8,34 +8,11 @@ $finder = PhpCsFixer\Finder::create()
|
||||
$config = new PhpCsFixer\Config();
|
||||
return $config->setRules([
|
||||
'@Symfony' => true,
|
||||
'@PHP80Migration:risky' => true,
|
||||
'@PHPUnit84Migration:risky' => true,
|
||||
'array_indentation' => true,
|
||||
'array_syntax' => ['syntax' => 'short'],
|
||||
'blank_line_after_opening_tag' => true,
|
||||
'concat_space' => ['spacing' => 'one'],
|
||||
'declare_strict_types' => true,
|
||||
'increment_style' => ['style' => 'post'],
|
||||
'is_null' => true,
|
||||
'list_syntax' => ['syntax' => 'short'],
|
||||
'method_argument_space' => ['on_multiline' => 'ensure_fully_multiline'],
|
||||
'method_chaining_indentation' => true,
|
||||
'modernize_types_casting' => true,
|
||||
'no_superfluous_elseif' => true,
|
||||
'no_superfluous_phpdoc_tags' => false,
|
||||
'no_useless_else' => true,
|
||||
'no_useless_return' => true,
|
||||
'ordered_imports' => true,
|
||||
'phpdoc_align' => false,
|
||||
'phpdoc_order' => true,
|
||||
'php_unit_construct' => true,
|
||||
'php_unit_dedicate_assert' => true,
|
||||
'return_assignment' => true,
|
||||
'single_blank_line_at_eof' => true,
|
||||
'single_line_comment_style' => true,
|
||||
'ternary_to_null_coalescing' => true,
|
||||
'yoda_style' => ['equal' => false, 'identical' => false, 'less_and_greater' => false],
|
||||
'void_return' => true,
|
||||
'global_namespace_import' => [
|
||||
'import_classes' => true,
|
||||
'import_constants' => false,
|
||||
'import_functions' => false,
|
||||
],
|
||||
])
|
||||
->setRiskyAllowed(true)
|
||||
->setFinder($finder)
|
||||
|
||||
Reference in New Issue
Block a user