Skip to content

Commit

Permalink
Adapt ecs config
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiasGraml11 committed Apr 4, 2024
1 parent b6412e7 commit c4a1e98
Show file tree
Hide file tree
Showing 3 changed files with 287 additions and 4 deletions.
6 changes: 4 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,16 @@
},
"require-dev": {
"shopware/administration": "^6.6",
"symplify/easy-coding-standard": "^12.0"
"symplify/easy-coding-standard": "^12.0",
"slevomat/coding-standard": "^8.15"
},
"config": {
"platform": {
"php": "8.2"
},
"allow-plugins": {
"symfony/runtime": true
"symfony/runtime": true,
"dealerdirect/phpcodesniffer-composer-installer": false
}
},
"scripts": {
Expand Down
272 changes: 271 additions & 1 deletion composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 12 additions & 1 deletion ecs.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@

use PhpCsFixer\Fixer\Import\NoUnusedImportsFixer;
use PhpCsFixer\Fixer\Operator\NotOperatorWithSuccessorSpaceFixer;
use SlevomatCodingStandard\Sniffs\TypeHints\DeclareStrictTypesSniff;
use SlevomatCodingStandard\Sniffs\TypeHints\ParameterTypeHintSniff;
use SlevomatCodingStandard\Sniffs\TypeHints\ReturnTypeHintSniff;
use Symplify\EasyCodingStandard\Config\ECSConfig;
use Symplify\EasyCodingStandard\ValueObject\Set\SetList;

Expand All @@ -13,7 +16,15 @@
]);

$ecsConfig->skip([
NotOperatorWithSuccessorSpaceFixer::class
NotOperatorWithSuccessorSpaceFixer::class,
]);

$ecsConfig->rulesWithConfiguration([
DeclareStrictTypesSniff::class => ['spacesCountAroundEqualsSign' => false],
]);

$ecsConfig->rules([
ReturnTypeHintSniff::class,
]);

$ecsConfig->sets([
Expand Down

0 comments on commit c4a1e98

Please sign in to comment.