Skip to content

Commit e3f3fee

Browse files
Merge remote-tracking branch 'origin/youwe-magento2' into youwe-magento2
2 parents 46d5956 + 14d5ce7 commit e3f3fee

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

composer.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "youwe/coding-standard",
33
"description": "Youwe PHP Coding Standard",
44
"license": "MIT",
5-
"type": "phpcs-sniffs",
5+
"type": "phpcodesniffer-standard",
66
"authors": [
77
{
88
"name": "Youwe B.V.",
@@ -11,6 +11,7 @@
1111
],
1212
"require": {
1313
"php": "^7.0 || ^8.0",
14+
"dealerdirect/phpcodesniffer-composer-installer": "^0.7.2",
1415
"phpmd/phpmd": "^2.0",
1516
"squizlabs/php_codesniffer": "^3.5.4"
1617
},
@@ -41,6 +42,9 @@
4142
]
4243
},
4344
"config": {
45+
"allow-plugins": {
46+
"dealerdirect/phpcodesniffer-composer-installer": true
47+
},
4448
"sort-packages": true
4549
}
4650
}

src/GlobalCommon/ruleset.xml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,11 @@
5959
<exclude name="Squiz.Commenting.FunctionComment.Missing"/>
6060
<exclude name="Squiz.Commenting.FunctionComment.MissingReturn"/>
6161
<exclude name="Squiz.Commenting.FunctionComment.MissingParamTag"/>
62+
<exclude name="Squiz.Commenting.FunctionComment.SpacingAfterParamType"/>
63+
</rule>
64+
<rule ref="Squiz.Commenting.FunctionCommentThrowTag">
65+
<exclude name="Squiz.Commenting.FunctionCommentThrowTag.WrongNumber" />
6266
</rule>
63-
<rule ref="Squiz.Commenting.FunctionCommentThrowTag"/>
6467
<rule ref="Squiz.Commenting.VariableComment">
6568
<exclude name="Squiz.Commenting.VariableComment.IncorrectVarType"/>
6669
<exclude name="Squiz.Commenting.VariableComment.Missing"/>

0 commit comments

Comments
 (0)