wallabag/.php-cs-fixer.dist.php

53 lines
1.4 KiB
PHP
Raw Normal View History

2017-07-01 09:52:38 +02:00
<?php
$config = new PhpCsFixer\Config();
return $config
2017-07-01 09:52:38 +02:00
->setRiskyAllowed(true)
->setRules([
'@Symfony' => true,
'@Symfony:risky' => true,
'array_syntax' => [
'syntax' => 'short'
],
'combine_consecutive_unsets' => true,
'heredoc_to_nowdoc' => true,
2022-08-01 20:15:15 +02:00
'no_extra_blank_lines' => [
'tokens' => [
'break',
'continue',
'extra',
'return',
'throw',
'use',
'parenthesis_brace_block',
'square_brace_block',
'curly_brace_block'
],
2017-07-01 09:52:38 +02:00
],
'no_unreachable_default_argument_value' => true,
'no_useless_else' => true,
'no_useless_return' => true,
'ordered_class_elements' => true,
'ordered_imports' => true,
'php_unit_strict' => true,
'phpdoc_order' => true,
2022-08-01 20:15:15 +02:00
// 'psr_autoloading' => true,
2017-07-01 09:52:38 +02:00
'strict_comparison' => true,
'strict_param' => true,
'concat_space' => [
'spacing' => 'one'
],
])
->setFinder(
PhpCsFixer\Finder::create()
->exclude([
'node_modules',
2017-07-01 09:52:38 +02:00
'vendor',
'var',
'web'
])
->in(__DIR__)
)
->setCacheFile('.php-cs-fixer.cache')
2017-07-01 09:52:38 +02:00
;