mirror of
https://github.com/tuxis-ie/nsedit.git
synced 2025-04-20 20:13:40 +03:00
37 lines
1.3 KiB
PHP
37 lines
1.3 KiB
PHP
<?php
|
|
$finder = PhpCsFixer\Finder::create()
|
|
->in('.')
|
|
->exclude('jquery-ui');
|
|
|
|
return PhpCsFixer\Config::create()
|
|
->setFinder($finder)
|
|
->setRules([
|
|
'@PSR2' => true,
|
|
'array_syntax' => ['syntax' => 'short'],
|
|
'concat_space' => ['spacing' => 'one'],
|
|
'include' => true,
|
|
'new_with_braces' => true,
|
|
'no_empty_statement' => true,
|
|
'no_extra_consecutive_blank_lines' => true,
|
|
'no_leading_import_slash' => true,
|
|
'no_leading_namespace_whitespace' => true,
|
|
'no_multiline_whitespace_around_double_arrow' => true,
|
|
'no_multiline_whitespace_before_semicolons' => true,
|
|
'no_singleline_whitespace_before_semicolons' => true,
|
|
'no_trailing_comma_in_singleline_array' => true,
|
|
'no_unused_imports' => true,
|
|
'no_whitespace_in_blank_line' => true,
|
|
'object_operator_without_whitespace' => true,
|
|
'ordered_imports' => true,
|
|
'standardize_not_equals' => true,
|
|
'ternary_operator_spaces' => true,
|
|
'phpdoc_order' => true,
|
|
'phpdoc_types' => true,
|
|
'phpdoc_add_missing_param_annotation' => true,
|
|
'single_quote' => true,
|
|
'standardize_not_equals' => true,
|
|
'ternary_operator_spaces' => true,
|
|
'lowercase_cast' => true,
|
|
'no_empty_comment' => true,
|
|
'no_empty_phpdoc' => true,
|
|
]);
|