forked from shopsys/shopsys
-
Notifications
You must be signed in to change notification settings - Fork 0
/
easy-coding-standard.yml
51 lines (46 loc) · 1.96 KB
/
easy-coding-standard.yml
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
imports:
- { resource: 'packages/*/easy-coding-standard.yml' }
- { resource: 'project-base/easy-coding-standard.yml' }
services:
PHP_CodeSniffer\Standards\Squiz\Sniffs\Classes\ValidClassNameSniff: ~
PhpCsFixer\Fixer\ControlStructure\NoUselessElseFixer: ~
PHP_CodeSniffer\Standards\Generic\Sniffs\CodeAnalysis\AssignmentInConditionSniff: ~
SlevomatCodingStandard\Sniffs\ControlStructures\DisallowEmptySniff: ~
SlevomatCodingStandard\Sniffs\ControlStructures\EarlyExitSniff:
ignoreStandaloneIfInScope: true
ignoreOneLineTrailingIf: true
ignoreTrailingIfWithOneInstruction: true
SlevomatCodingStandard\Sniffs\Classes\ParentCallSpacingSniff:
linesCountBeforeParentCall: 1
linesCountAfterParentCall: 1
SlevomatCodingStandard\Sniffs\Namespaces\ReferenceUsedNamesOnlySniff:
allowPartialUses: true
SlevomatCodingStandard\Sniffs\Commenting\DeprecatedAnnotationDeclarationSniff: ~
SlevomatCodingStandard\Sniffs\Commenting\DocCommentSpacingSniff:
linesCountBetweenDifferentAnnotationsTypes: 0
SlevomatCodingStandard\Sniffs\ControlStructures\UselessIfConditionWithReturnSniff: ~
parameters:
sets:
- 'php70'
- 'php71'
- 'psr12'
- 'dead-code'
- 'clean-code'
- 'array'
- 'comments'
- 'control-structures'
- 'docblock'
- 'namespaces'
- 'strict'
skip:
PhpCsFixer\Fixer\Strict\DeclareStrictTypesFixer:
- 'packages/*'
- 'utils/*'
Shopsys\CodingStandards\Sniffs\ConstantVisibilityRequiredSniff:
- 'project-base/src/*'
- '*/tests/App/*'
Shopsys\CodingStandards\Sniffs\ForceLateStaticBindingForProtectedConstantsSniff:
- 'project-base/src/*'
- '*/tests/App/*'
ObjectCalisthenics\Sniffs\Files\FunctionLengthSniff:
- 'utils/releaser/src/ReleaseWorker/Release/CreateAndPushGitTagsExceptProjectBaseReleaseWorker.php'