-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.php_cs
28 lines (26 loc) · 967 Bytes
/
.php_cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?php
// definimos as pastas que serão excluídas da verificação
$finder = PhpCsFixer\Finder::create()
->exclude('node_modules')
->exclude('bootstrap/cache')
->exclude('public')
->exclude('resources')
->exclude('storage')
->exclude('vendor')
->exclude('_ide_helper.php')
->exclude('_ide_helper_models.php')
->exclude('.phpstorm.meta.php')
->in(__DIR__);
// definimos a configuração
return PhpCsFixer\Config::create()
->setFinder($finder) // configuramos o finder
->setRules([ // definimos as regras usadas
'@Symfony:risky' => true,
'@Symfony' => true,
'no_superfluous_phpdoc_tags' => false, // evita que tags @param e @return sejam removidas de blocos PHPDoc,
'single_line_comment_style' => false, // permite comentários # (region)
'php_unit_method_casing' => false,
'ordered_class_elements' => true,
])
->setLineEnding("\n")
->setRiskyAllowed(true);