Skip to content

Commit 895133f

Browse files
committed
NEXT-23389 - Mapping software area
1 parent 9735e18 commit 895133f

File tree

2 files changed

+36
-4
lines changed

2 files changed

+36
-4
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# 2022-09-28 - Mapping of Product Area
2+
3+
## Context
4+
5+
We have a lot of teams working on different parts of the Shopware 6 platform.
6+
We want to have a clear mapping of the teams to the source code, so that we can easily assign the right area to a ticket.
7+
This allows us also to map automatically errors reported in our SaaS application to the right area.
8+
9+
## Decision
10+
11+
We decided to add a `@package <area>` annotation to all files in the `src` and `tests` directory of the `platform`, `rufus` and `commercial` repository.
12+
This annotation will be used to map the files to the product areas.
13+
14+
The areas are:
15+
16+
- admin
17+
- storefront
18+
- core
19+
- inventory
20+
- checkout
21+
- sales-channel
22+
- content
23+
- business-ops
24+
- merchant-service
25+
- customer-order
26+
- system-settings
27+
28+
## Consequences
29+
30+
We will add a PHP-doc/JavaScript comment to any file with `@package <area>`

ecs.php

+6-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<?php declare(strict_types=1);
22

3+
use PHP_CodeSniffer\Standards\Generic\Sniffs\CodeAnalysis\AssignmentInConditionSniff;
34
use PhpCsFixer\Fixer\Basic\NonPrintableCharacterFixer;
45
use PhpCsFixer\Fixer\CastNotation\ModernizeTypesCastingFixer;
56
use PhpCsFixer\Fixer\ClassNotation\ClassAttributesSeparationFixer;
@@ -20,8 +21,10 @@
2021
use PhpCsFixer\Fixer\Phpdoc\PhpdocAnnotationWithoutDotFixer;
2122
use PhpCsFixer\Fixer\Phpdoc\PhpdocIndentFixer;
2223
use PhpCsFixer\Fixer\Phpdoc\PhpdocLineSpanFixer;
24+
use PhpCsFixer\Fixer\Phpdoc\PhpdocNoPackageFixer;
2325
use PhpCsFixer\Fixer\Phpdoc\PhpdocOrderFixer;
2426
use PhpCsFixer\Fixer\Phpdoc\PhpdocSummaryFixer;
27+
use PhpCsFixer\Fixer\Phpdoc\PhpdocToCommentFixer;
2528
use PhpCsFixer\Fixer\Phpdoc\PhpdocTrimConsecutiveBlankLineSeparationFixer;
2629
use PhpCsFixer\Fixer\PhpTag\BlankLineAfterOpeningTagFixer;
2730
use PhpCsFixer\Fixer\PhpUnit\PhpUnitConstructFixer;
@@ -36,7 +39,6 @@
3639
use PhpCsFixer\Fixer\StringNotation\SingleQuoteFixer;
3740
use PhpCsFixer\Fixer\Whitespace\BlankLineBeforeStatementFixer;
3841
use PhpCsFixer\Fixer\Whitespace\CompactNullableTypehintFixer;
39-
use PhpCsFixer\Fixer\Phpdoc\PhpdocToCommentFixer;
4042
use PhpCsFixerCustomFixers\Fixer\NoImportFromGlobalNamespaceFixer;
4143
use PhpCsFixerCustomFixers\Fixer\NoSuperfluousConcatenationFixer;
4244
use PhpCsFixerCustomFixers\Fixer\NoUselessCommentFixer;
@@ -49,7 +51,6 @@
4951
use Symplify\EasyCodingStandard\Config\ECSConfig;
5052
use Symplify\EasyCodingStandard\ValueObject\Option;
5153
use Symplify\EasyCodingStandard\ValueObject\Set\SetList;
52-
use PHP_CodeSniffer\Standards\Generic\Sniffs\CodeAnalysis\AssignmentInConditionSniff;
5354

5455
return static function (ECSConfig $ecsConfig): void {
5556
$ecsConfig->sets([
@@ -133,12 +134,13 @@
133134
// would otherwise destroy markdown in the description of a route annotation, since markdown interpreted spaces/indents
134135
PhpdocIndentFixer::class => [
135136
'src/**/*Controller.php',
136-
'src/**/*Route.php'
137+
'src/**/*Route.php',
137138
],
138139
// would otherwise remove lines in the description of route annotations
139140
PhpdocTrimConsecutiveBlankLineSeparationFixer::class => [
140141
'src/**/*Controller.php',
141-
'src/**/*Route.php'
142+
'src/**/*Route.php',
142143
],
144+
PhpdocNoPackageFixer::class => null,
143145
]);
144146
};

0 commit comments

Comments
 (0)