File tree Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
19
19
- Pimcore coding standards with [ PER coding standards] ( https://www.php-fig.org/per/coding-style/ ) .
20
20
- Added support for an Allow List within the Security Checker.
21
21
- Pimcore PHPStan default config.
22
+ - Pimcore PHP Mess Detector default config.
22
23
23
24
### Changed
24
25
- [ BREAKING] The composer.json configurations ` config.youwe-testing-suite.type ` and ` config.mediact-testing-suite.type `
Original file line number Diff line number Diff line change 21
21
<rule ref =" rulesets/codesize.xml" />
22
22
<rule ref =" rulesets/design.xml" />
23
23
<rule ref =" rulesets/unusedcode.xml" />
24
- <rule ref =" rulesets/naming.xml" />
24
+ <rule ref =" rulesets/naming.xml" >
25
+ <!-- For these rules we have exceptions configured below -->
26
+ <exclude name =" LongVariable" />
27
+ <exclude name =" ShortVariable" />
28
+ <exclude name =" ShortMethodName" />
29
+ </rule >
25
30
26
31
<rule ref =" rulesets/naming.xml/LongVariable" >
27
32
<properties >
28
33
<!-- 20 limit is hard to make descriptive, plus has historically been 30 so also for better backwards compatibility support -->
29
34
<property name =" maximum" value =" 30" />
30
35
</properties >
31
36
</rule >
32
- <!-- End of global ruleset -->
37
+
38
+ <!-- $id is a very common (and accepted) ShortVariable -->
39
+ <rule ref =" rulesets/naming.xml/ShortVariable" >
40
+ <properties >
41
+ <property name =" exceptions" value =" id" />
42
+ </properties >
43
+ </rule >
33
44
34
45
<!-- up() is required for doctrine migrations when implementing the interface. -->
35
46
<rule ref =" rulesets/naming.xml/ShortMethodName" >
You can’t perform that action at this time.
0 commit comments