mirror of
https://github.com/rectorphp/rector.git
synced 2025-01-18 22:08:00 +01:00
68 lines
2.8 KiB
Plaintext
68 lines
2.8 KiB
Plaintext
includes:
|
|
- vendor/symplify/easy-coding-standard/config/psr2-checkers.neon
|
|
- vendor/symplify/easy-coding-standard/config/php70-checkers.neon
|
|
- vendor/symplify/easy-coding-standard/config/php71-checkers.neon
|
|
|
|
checkers:
|
|
# Slevomat
|
|
- SlevomatCodingStandard\Sniffs\ControlStructures\DisallowEqualOperatorsSniff
|
|
- SlevomatCodingStandard\Sniffs\ControlStructures\YodaComparisonSniff
|
|
- SlevomatCodingStandard\Sniffs\Exceptions\DeadCatchSniff
|
|
- SlevomatCodingStandard\Sniffs\Exceptions\ReferenceThrowableOnlySniff
|
|
- SlevomatCodingStandard\Sniffs\Namespaces\ReferenceUsedNamesOnlySniff
|
|
- SlevomatCodingStandard\Sniffs\Classes\UnusedPrivateElementsSniff
|
|
|
|
# Files
|
|
PHP_CodeSniffer\Standards\Generic\Sniffs\Files\LineLengthSniff:
|
|
absoluteLineLimit: 120
|
|
|
|
# PSR-4
|
|
- PhpCsFixer\Fixer\Basic\Psr4Fixer
|
|
|
|
# Code Analysis
|
|
- PHP_CodeSniffer\Standards\Generic\Sniffs\CodeAnalysis\EmptyStatementSniff
|
|
PHP_CodeSniffer\Standards\Generic\Sniffs\Metrics\CyclomaticComplexitySniff:
|
|
absoluteComplexity: 10
|
|
PHP_CodeSniffer\Standards\Generic\Sniffs\Metrics\NestingLevelSniff:
|
|
absoluteNestingLevel: 5
|
|
|
|
# Naming Conventions
|
|
- PHP_CodeSniffer\Standards\Generic\Sniffs\NamingConventions\CamelCapsFunctionNameSniff
|
|
|
|
# PHP
|
|
- PHP_CodeSniffer\Standards\Squiz\Sniffs\PHP\NonExecutableCodeSniff
|
|
|
|
# WhiteSpace
|
|
- PHP_CodeSniffer\Standards\Squiz\Sniffs\WhiteSpace\LanguageConstructSpacingSniff
|
|
PHP_CodeSniffer\Standards\Squiz\Sniffs\WhiteSpace\SuperfluousWhitespaceSniff:
|
|
ignoreBlankLines: false
|
|
|
|
# Namespaces
|
|
- PhpCsFixer\Fixer\Import\OrderedImportsFixer
|
|
|
|
PhpCsFixer\Fixer\Operator\ConcatSpaceFixer:
|
|
spacing: one
|
|
- PhpCsFixer\Fixer\ClassNotation\OrderedClassElementsFixer
|
|
- PhpCsFixer\Fixer\LanguageConstruct\DirConstantFixer
|
|
- PhpCsFixer\Fixer\CastNotation\ModernizeTypesCastingFixer
|
|
- PhpCsFixer\Fixer\Semicolon\SemicolonAfterInstructionFixer
|
|
- PhpCsFixer\Fixer\Operator\NotOperatorWithSuccessorSpaceFixer
|
|
- PhpCsFixer\Fixer\ControlStructure\NoUselessElseFixer
|
|
- PhpCsFixer\Fixer\ReturnNotation\NoUselessReturnFixer
|
|
- PhpCsFixer\Fixer\LanguageConstruct\CombineConsecutiveUnsetsFixer
|
|
- PhpCsFixer\Fixer\Strict\StrictComparisonFixer
|
|
PhpCsFixer\Fixer\Phpdoc\GeneralPhpdocAnnotationRemoveFixer:
|
|
annotations:
|
|
- author
|
|
- throws
|
|
- expectedException
|
|
|
|
# PHPUnit
|
|
- PhpCsFixer\Fixer\PhpUnit\PhpUnitStrictFixer
|
|
|
|
# new since PhpCsFixer 2.2-2.4
|
|
- PhpCsFixer\Fixer\Phpdoc\PhpdocReturnSelfReferenceFixer
|
|
- PhpCsFixer\Fixer\LanguageConstruct\IsNullFixer
|
|
- PhpCsFixer\Fixer\Basic\NonPrintableCharacterFixer
|
|
- PhpCsFixer\Fixer\Phpdoc\PhpdocTypesOrderFixer
|
|
- PhpCsFixer\Fixer\Comment\SingleLineCommentStyleFixer |