2020-05-12 17:20:40 +02:00
|
|
|
services:
|
|
|
|
SlevomatCodingStandard\Sniffs\Commenting\DisallowCommentAfterCodeSniff: null
|
|
|
|
SlevomatCodingStandard\Sniffs\Whitespaces\DuplicateSpacesSniff: null
|
|
|
|
|
2017-08-09 17:37:49 +02:00
|
|
|
parameters:
|
2020-02-11 13:39:30 +01:00
|
|
|
paths:
|
|
|
|
- "bin"
|
|
|
|
- "src"
|
|
|
|
- "packages"
|
|
|
|
- "rules"
|
|
|
|
- "tests"
|
|
|
|
- "utils"
|
2020-02-13 11:43:20 +01:00
|
|
|
- "compiler"
|
2020-02-11 13:39:30 +01:00
|
|
|
|
2019-12-18 10:02:20 +01:00
|
|
|
sets:
|
2020-02-11 13:39:30 +01:00
|
|
|
- "psr12"
|
|
|
|
- "php70"
|
|
|
|
- "php71"
|
|
|
|
- "symplify"
|
|
|
|
- "common"
|
|
|
|
- "clean-code"
|
2019-12-18 10:02:20 +01:00
|
|
|
|
2018-04-08 20:45:10 +02:00
|
|
|
exclude_files:
|
2018-08-14 13:24:34 +02:00
|
|
|
# tests files
|
2020-05-03 21:23:58 +02:00
|
|
|
- '*/Source/*'
|
|
|
|
- '*/Fixture/*'
|
|
|
|
- '*/Expected/*'
|
2020-04-03 15:28:29 +02:00
|
|
|
# generated
|
|
|
|
- 'packages/doctrine-annotation-generated/src/ConstantPreservingDocParser.php'
|
|
|
|
- 'packages/doctrine-annotation-generated/src/ConstantPreservingAnnotationReader.php'
|
2018-04-08 20:45:10 +02:00
|
|
|
|
2017-08-09 17:37:49 +02:00
|
|
|
skip:
|
2019-10-30 10:55:04 +01:00
|
|
|
# rather useless
|
2020-01-05 20:00:32 +01:00
|
|
|
PhpCsFixer\Fixer\Import\GlobalNamespaceImportFixer: null
|
|
|
|
Symplify\CodingStandard\Fixer\Php\ClassStringToClassConstantFixer: null
|
2019-10-30 10:55:04 +01:00
|
|
|
|
2020-01-05 20:00:32 +01:00
|
|
|
PHP_CodeSniffer\Standards\PSR2\Sniffs\Methods\MethodDeclarationSniff.Underscore: null
|
|
|
|
Symplify\CodingStandard\Sniffs\Architecture\DuplicatedClassShortNameSniff: null
|
2019-03-07 23:15:24 +00:00
|
|
|
|
2019-03-04 00:43:34 +01:00
|
|
|
# run manually from time to time - performance demanding + not to bother user with it
|
2020-01-05 20:00:32 +01:00
|
|
|
Symplify\CodingStandard\Fixer\Order\PropertyOrderByComplexityFixer: null
|
|
|
|
Symplify\CodingStandard\Fixer\Order\PrivateMethodOrderByUseFixer: null
|
2019-01-22 20:40:27 +01:00
|
|
|
|
2019-01-08 11:37:34 +01:00
|
|
|
PhpCsFixer\Fixer\Phpdoc\PhpdocTypesFixer:
|
2020-03-24 23:35:10 +01:00
|
|
|
- 'rules/php74/src/Rector/Double/RealToFloatTypeCastRector.php'
|
2019-01-08 11:37:34 +01:00
|
|
|
|
2020-01-05 20:00:32 +01:00
|
|
|
PHP_CodeSniffer\Standards\Generic\Sniffs\CodeAnalysis\AssignmentInConditionSniff.FoundInWhileCondition: null
|
2018-10-06 01:13:09 +08:00
|
|
|
|
|
|
|
SlevomatCodingStandard\Sniffs\TypeHints\TypeHintDeclarationSniff.MissingParameterTypeHint:
|
|
|
|
# 3rd party parent code
|
|
|
|
- 'src/DependencyInjection/Loader/TolerantRectorYamlFileLoader.php'
|
2018-11-29 00:56:59 +01:00
|
|
|
- 'src/PhpParser/Printer/BetterStandardPrinter.php'
|
2019-02-06 12:23:31 +01:00
|
|
|
- 'tests/AbstractContainerAwareTestCase.php'
|
2018-10-07 17:53:59 +08:00
|
|
|
|
2019-04-29 06:18:05 +02:00
|
|
|
SlevomatCodingStandard\Sniffs\TypeHints\TypeHintDeclarationSniff.MissingTraversableReturnTypeHintSpecification:
|
|
|
|
# false positive
|
|
|
|
- 'src/Testing/PHPUnit/AbstractRectorTestCase.php'
|
|
|
|
|
2018-10-07 17:53:59 +08:00
|
|
|
Symplify\CodingStandard\Sniffs\Debug\CommentedOutCodeSniff.Found:
|
|
|
|
# notes
|
2020-03-24 23:35:10 +01:00
|
|
|
- 'rules/php72/src/Rector/Each/ListEachRector.php'
|
2020-02-11 13:39:30 +01:00
|
|
|
- 'rules/dead-code/src/Rector/ClassMethod/RemoveOverriddenValuesRector.php'
|
|
|
|
- 'rules/php-spec-to-phpunit/src/Rector/MethodCall/PhpSpecPromisesToPHPUnitAssertRector.php'
|
2019-01-31 22:31:42 +01:00
|
|
|
|
2019-07-16 11:07:26 +02:00
|
|
|
PhpCsFixer\Fixer\PhpUnit\PhpUnitStrictFixer:
|
2020-02-11 14:40:59 +01:00
|
|
|
- 'packages/better-php-doc-parser/tests/PhpDocInfo/PhpDocInfo/PhpDocInfoTest.php'
|
2019-09-04 14:10:29 +02:00
|
|
|
# intentional "assertEquals()"
|
2019-07-16 11:07:26 +02:00
|
|
|
- 'tests/PhpParser/Node/NodeFactoryTest.php'
|
2019-09-04 14:10:29 +02:00
|
|
|
- '*TypeResolverTest.php'
|
2019-09-18 08:14:35 +02:00
|
|
|
|
2019-10-13 07:59:52 +02:00
|
|
|
# conflicts with "PhpCsFixer\Fixer\Operator\NotOperatorWithSuccessorSpaceFixer"
|
2020-01-05 20:00:32 +01:00
|
|
|
PhpCsFixer\Fixer\Operator\UnaryOperatorSpacesFixer: null
|
2019-11-07 18:34:44 +01:00
|
|
|
|
2020-01-13 00:06:46 +01:00
|
|
|
PhpCsFixer\Fixer\Strict\StrictComparisonFixer:
|
|
|
|
# part of the comparison logic
|
2020-02-07 08:46:29 +01:00
|
|
|
- 'packages/polyfill/src/ConditionEvaluator.php'
|
2020-01-13 00:06:46 +01:00
|
|
|
|
2019-11-07 18:34:44 +01:00
|
|
|
line_ending: "\n"
|