Skip to content

Commit

Permalink
feat: exclude Pimple
Browse files Browse the repository at this point in the history
Signed-off-by: Jessica González <[email protected]>
  • Loading branch information
MissAllSunday committed Jan 21, 2020
1 parent 53f8e91 commit d3a778b
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 25 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,4 @@ Thumbs.db

# Dev stuff
.php_cs.cache
.php_cs
5 changes: 5 additions & 0 deletions .php_cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
<?php

$finder = PhpCsFixer\Finder::create()
->exclude('Breeze/Pimple/')
->in(__DIR__ . '/Sources/');

return PhpCsFixer\Config::create()
->setRules([
'@PHP71Migration:risky' => true,
Expand Down Expand Up @@ -41,5 +45,6 @@ return PhpCsFixer\Config::create()
'native_constant_invocation' => true,
'method_argument_space' => ['ensure_fully_multiline' => true],
])
->setFinder($finder)
->setUsingCache(true)
->setRiskyAllowed(true);
59 changes: 34 additions & 25 deletions .php_cs.dist
Original file line number Diff line number Diff line change
@@ -1,41 +1,50 @@
<?php

$finder = PhpCsFixer\Finder::create()
->exclude('Breeze/Pimple/')
->in(__DIR__ . '/Sources/');

return PhpCsFixer\Config::create()
->setRules([
'@PHP71Migration:risky' => true,
'@PHPUnit60Migration:risky' => true,
'array_indentation' => true,
'array_syntax' => ['syntax' => 'short'],
'blank_line_after_opening_tag' => true,
'concat_space' => ['spacing' => 'one'],
'class_attributes_separation' => ['elements' => ['method', 'property']],
'declare_strict_types' => true,
'increment_style' => ['style' => 'post'],
'is_null' => ['use_yoda_style' => false],
'list_syntax' => ['syntax' => 'short'],
'blank_line_after_namespace' => true,
'blank_line_after_opening_tag' => true,
'array_indentation' => true,
'array_syntax' => ['syntax' => 'short'],
'blank_line_before_return' => true,
'concat_space' => ['spacing' => 'one'],
'declare_strict_types' => true,
'method_chaining_indentation' => true,
'modernize_types_casting' => true,
'no_multiline_whitespace_before_semicolons' => true,
'no_superfluous_elseif' => true,
'no_superfluous_phpdoc_tags' => true,
'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' => true, 'identical' => true, 'less_and_greater' => true],
'void_return' => true,
'elseif' => true,
'encoding' => true,
'line_ending' => true,
'lowercase_cast' => true,
'lowercase_constants' => true,
'native_constant_invocation' => true,
'increment_style' => ['style' => 'post'],
'is_null' => ['use_yoda_style' => false],
'list_syntax' => ['syntax' => 'short'],
'method_argument_space' => ['ensure_fully_multiline' => true],
'method_chaining_indentation' => true,
'modernize_types_casting' => true,
'no_multiline_whitespace_before_semicolons' => true,
'no_superfluous_elseif' => true,
'no_superfluous_phpdoc_tags' => true,
'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_line_comment_style' => true,
'ternary_to_null_coalescing' => true,
'yoda_style' => ['equal' => false, 'identical' => false, 'less_and_greater' => false],
'single_blank_line_at_eof' => true,
])
->setFinder($finder)
->setUsingCache(true)
->setRiskyAllowed(true);

0 comments on commit d3a778b

Please sign in to comment.