File tree 3 files changed +48
-4
lines changed
3 files changed +48
-4
lines changed Original file line number Diff line number Diff line change 20
20
},
21
21
"require-dev" : {
22
22
"phpunit/phpunit" : " ~9.5.20" ,
23
- "phpmd/phpmd" : " ^2.12.0 " ,
23
+ "phpmd/phpmd" : " ^2.13 " ,
24
24
"phpstan/phpstan" : " ^1.6.8" ,
25
25
"squizlabs/php_codesniffer" : " ~3.7.0" ,
26
26
"magento/magento-coding-standard" : " *" ,
27
27
"phpcompatibility/php-compatibility" : " ^9.3" ,
28
28
"slevomat/coding-standard" : " ^8.8" ,
29
- "sebastian/phpcpd" : " ^6.0"
29
+ "sebastian/phpcpd" : " ^6.0" ,
30
+ "pdepend/pdepend" : " ^2.13"
30
31
},
31
32
"repositories" : [
32
33
{
59
60
"phpstan" : " phpstan" ,
60
61
"sniffer" : " vendor/bin/phpcs --colors -p ./src --standard=phpcs-ruleset.xml" ,
61
62
"fix-style" : " vendor/bin/phpcbf --colors -p ./src --standard=phpcs-ruleset.xml" ,
62
- "sniffer:php8.1" : " vendor/bin/phpcs -p ./src --standard=vendor/phpcompatibility/php-compatibility/PHPCompatibility --runtime-set testVersion 8.1"
63
+ "sniffer:php8.1" : " vendor/bin/phpcs -p ./src --standard=vendor/phpcompatibility/php-compatibility/PHPCompatibility --runtime-set testVersion 8.1" ,
64
+ "mess-detector" : " vendor/bin/phpmd src html phpmd-ruleset.xml --exclude \" Test\" --strict --reportfile reports/phpmd/phpmd.html"
63
65
}
64
66
}
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" ?>
2
+ <ruleset name =" run_as_root Magento PHP Mess Detector Ruleset" xmlns =" http://pmd.sf.net/ruleset/1.0.0" xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
3
+ xsi : schemaLocation =" http://pmd.sf.net/ruleset/1.0.0 http://pmd.sf.net/ruleset_xml_schema.xsd" xsi : noNamespaceSchemaLocation =" http://pmd.sf.net/ruleset_xml_schema.xsd" >
4
+ <description >
5
+ run_as_root Magento PHP Mess Detector Ruleset
6
+ </description >
7
+ <exclude-pattern >*Test.php</exclude-pattern >
8
+ <exclude-pattern >vendor</exclude-pattern >
9
+
10
+ <rule ref =" rulesets/cleancode.xml" >
11
+ <exclude name =" BooleanArgumentFlag" />
12
+ <exclude name =" StaticAccess" />
13
+ </rule >
14
+
15
+ <rule ref =" rulesets/codesize.xml" />
16
+
17
+ <rule ref =" rulesets/controversial.xml" >
18
+ <exclude name =" CamelCaseMethodName" />
19
+ <exclude name =" CamelCasePropertyName" />
20
+ </rule >
21
+
22
+ <rule ref =" rulesets/design.xml" >
23
+ <exclude name =" CouplingBetweenObjects" />
24
+ </rule >
25
+
26
+ <rule ref =" rulesets/design.xml/CouplingBetweenObjects" >
27
+ <priority >1</priority >
28
+ <properties >
29
+ <property name =" maximum" value =" 20" />
30
+ </properties >
31
+ </rule >
32
+
33
+ <rule ref =" rulesets/naming.xml" >
34
+ <exclude name =" ShortVariable" />
35
+ <exclude name =" LongVariable" />
36
+ <exclude name =" CamelCaseClassName" />
37
+ </rule >
38
+
39
+ <rule ref =" rulesets/unusedcode.xml" >
40
+ <exclude name =" UnusedFormalParameter" />
41
+ </rule >
42
+ </ruleset >
You can’t perform that action at this time.
0 commit comments