This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
symfony/.php_cs.dist

39 lines
1.8 KiB
Plaintext
Raw Normal View History

<?php
2016-12-03 09:46:32 +00:00
return PhpCsFixer\Config::create()
->setRules(array(
'@Symfony' => true,
'@Symfony:risky' => true,
'array_syntax' => array('syntax' => 'long'),
2016-12-23 07:00:05 +00:00
'no_unreachable_default_argument_value' => false,
2017-01-04 22:00:53 +00:00
'braces' => array('allow_single_line_closure' => true),
2016-12-23 07:00:05 +00:00
'heredoc_to_nowdoc' => false,
2016-06-20 17:23:25 +01:00
))
2016-12-03 09:46:32 +00:00
->setRiskyAllowed(true)
->setFinder(
PhpCsFixer\Finder::create()
2015-03-24 21:20:39 +00:00
->in(__DIR__)
->exclude(array(
// directories containing files with content that is autogenerated by `var_export`, which breaks CS in output code
'src/Symfony/Component/DependencyInjection/Tests/Fixtures',
'src/Symfony/Component/Routing/Tests/Fixtures/dumper',
// fixture templates
'src/Symfony/Component/Templating/Tests/Fixtures/templates',
2016-06-20 17:23:25 +01:00
'src/Symfony/Bundle/FrameworkBundle/Tests/Templating/Helper/Resources/Custom',
2015-03-24 21:20:39 +00:00
// resource templates
'src/Symfony/Bundle/FrameworkBundle/Resources/views/Form',
))
// file content autogenerated by `var_export`
->notPath('src/Symfony/Component/Translation/Tests/fixtures/resources.php')
// autogenerated xmls
->notPath('src/Symfony/Component/Console/Tests/Fixtures/application_1.xml')
->notPath('src/Symfony/Component/Console/Tests/Fixtures/application_2.xml')
// yml
->notPath('src/Symfony/Component/Yaml/Tests/Fixtures/sfTests.yml')
// test template
->notPath('src/Symfony/Bundle/FrameworkBundle/Tests/Templating/Helper/Resources/Custom/_name_entry_label.html.php')
2015-12-21 11:01:57 +00:00
// explicit heredoc test
->notPath('src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Resources/views/translation.html.php')
2015-03-24 21:20:39 +00:00
)
;