mirror of
https://github.com/klaussilveira/gitlist.git
synced 2025-11-18 03:30:55 +01:00
43 lines
1.5 KiB
PHP
43 lines
1.5 KiB
PHP
<?php
|
|
|
|
$finder = PhpCsFixer\Finder::create()
|
|
->in(__DIR__ . '/src')
|
|
->in(__DIR__ . '/tests')
|
|
;
|
|
|
|
$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,
|
|
])
|
|
->setRiskyAllowed(true)
|
|
->setFinder($finder)
|
|
;
|