forked from shopware/shopware
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.danger.php
More file actions
49 lines (46 loc) · 2.56 KB
/
Copy path.danger.php
File metadata and controls
49 lines (46 loc) · 2.56 KB
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
<?php declare(strict_types=1);
use Danger\Config;
use Shopware\Core\DevOps\StaticAnalyze\Danger\Rules\AgenticCommercePluginHint;
use Shopware\Core\DevOps\StaticAnalyze\Danger\Rules\ComposerVersionConstraints;
use Shopware\Core\DevOps\StaticAnalyze\Danger\Rules\DangerConfigChanged;
use Shopware\Core\DevOps\StaticAnalyze\Danger\Rules\DeprecatedChangelogFormat;
use Shopware\Core\DevOps\StaticAnalyze\Danger\Rules\EntityRepositoryInFrontendLayer;
use Shopware\Core\DevOps\StaticAnalyze\Danger\Rules\IgnoredPhpstanErrorsInTouchedFiles;
use Shopware\Core\DevOps\StaticAnalyze\Danger\Rules\InlineRuleInDangerConfig;
use Shopware\Core\DevOps\StaticAnalyze\Danger\Rules\InvalidFileNameCharacters;
use Shopware\Core\DevOps\StaticAnalyze\Danger\Rules\LegacyTestsInSrc;
use Shopware\Core\DevOps\StaticAnalyze\Danger\Rules\MissingIntegrationTestInSplitSuite;
use Shopware\Core\DevOps\StaticAnalyze\Danger\Rules\MissingMigrationTests;
use Shopware\Core\DevOps\StaticAnalyze\Danger\Rules\MissingReleaseInfo;
use Shopware\Core\DevOps\StaticAnalyze\Danger\Rules\MissingUnitTests;
use Shopware\Core\DevOps\StaticAnalyze\Danger\Rules\PhpstanBaselineGrowth;
use Shopware\Core\DevOps\StaticAnalyze\Danger\Rules\RemovedTwigBlocks;
use Shopware\Core\DevOps\StaticAnalyze\Danger\Rules\RouteSnapshotExtension;
use Shopware\Core\DevOps\StaticAnalyze\Danger\Rules\ShopwareYamlConfigSchemaHint;
use Shopware\Core\DevOps\StaticAnalyze\Danger\Rules\SqlHeredocUsage;
// danger runs on its own vendor-bin autoloader (vendor-bin/danger-php), which does not know the
// Shopware namespaces — load the rule classes directly instead
foreach (glob(__DIR__ . '/src/Core/DevOps/StaticAnalyze/Danger/Rules/*.php') ?: [] as $ruleFile) {
require_once $ruleFile;
}
return (new Config())
->useThreadOn(Config::REPORT_LEVEL_WARNING)
->useRule(new DangerConfigChanged())
->useRule(new InlineRuleInDangerConfig())
->useRule(new DeprecatedChangelogFormat())
->useRule(new MissingReleaseInfo())
->useRule(new IgnoredPhpstanErrorsInTouchedFiles())
->useRule(new PhpstanBaselineGrowth())
->useRule(new EntityRepositoryInFrontendLayer())
->useRule(new ShopwareYamlConfigSchemaHint())
->useRule(new AgenticCommercePluginHint())
->useRule(new MissingMigrationTests())
->useRule(new SqlHeredocUsage())
->useRule(new RemovedTwigBlocks())
->useRule(new InvalidFileNameCharacters())
->useRule(new LegacyTestsInSrc())
->useRule(new MissingUnitTests())
->useRule(new ComposerVersionConstraints())
->useRule(new MissingIntegrationTestInSplitSuite())
->useRule(new RouteSnapshotExtension())
;