rector/ecs.yaml

99 lines
4.2 KiB
YAML
Raw Normal View History

services:
SlevomatCodingStandard\Sniffs\Commenting\DisallowCommentAfterCodeSniff: null
SlevomatCodingStandard\Sniffs\Whitespaces\DuplicateSpacesSniff: null
2020-07-07 23:21:37 +02:00
PhpCsFixer\Fixer\Phpdoc\GeneralPhpdocAnnotationRemoveFixer:
annotations:
- 'throws'
- 'author'
- 'package'
- 'group'
2017-08-09 17:37:49 +02:00
parameters:
paths:
- "bin"
- "src"
- "packages"
- "rules"
- "tests"
- "utils"
- "compiler"
2019-12-18 10:02:20 +01:00
sets:
- "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
# 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:
- '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'
- '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'
SlevomatCodingStandard\Sniffs\Variables\UnusedVariableSniff.UnusedVariable:
- 'rules/php-office/src/Rector/MethodCall/IncreaseColumnIndexRector.php'
2018-10-07 17:53:59 +08:00
Symplify\CodingStandard\Sniffs\Debug\CommentedOutCodeSniff.Found:
# notes
- 'rules/php72/src/Rector/Each/ListEachRector.php'
- '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
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()"
- '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
PhpCsFixer\Fixer\Strict\StrictComparisonFixer:
# part of the comparison logic
- 'packages/polyfill/src/ConditionEvaluator.php'
# often soo many cases that need manual attention → skip and resole in automated way
SlevomatCodingStandard\Sniffs\Namespaces\ReferenceUsedNamesOnlySniff.PartialUse: null
SlevomatCodingStandard\Sniffs\Namespaces\ReferenceUsedNamesOnlySniff.ReferenceViaFullyQualifiedName:
# special case for optional entity classes in refactored project
- 'packages/better-php-doc-parser/src/PhpDocNodeFactory/Doctrine/Property_/DoctrineTargetEntityPhpDocNodeFactory.php'
- 'packages/better-php-doc-parser/src/PhpDocNodeFactory/Doctrine/Property_/JoinTablePhpDocNodeFactory.php'
- 'packages/better-php-doc-parser/src/PhpDocNodeFactory/Doctrine/Class_/TablePhpDocNodeFactory.php'
- 'packages/better-php-doc-parser/src/PhpDocNodeFactory/JMS/JMSInjectPhpDocNodeFactory.php'
line_ending: "\n"