Skip to content

Commit

Permalink
Allow longer class names
Browse files Browse the repository at this point in the history
Before class name length was not enforced.
  • Loading branch information
christiaan committed Aug 31, 2021
1 parent dc7ba84 commit 83dd85b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"php": "^7.2",
"dealerdirect/phpcodesniffer-composer-installer": "^0.7.0",
"escapestudios/symfony2-coding-standard": "^3.6",
"phpmd/phpmd": "^2.6",
"phpmd/phpmd": "^2.9",
"slevomat/coding-standard": "^7.0.9",
"squizlabs/php_codesniffer": "^3.4"
},
Expand Down
7 changes: 7 additions & 0 deletions phpmd.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,13 @@
<exclude name="ShortVariable"/>
<exclude name="LongVariable"/>
<exclude name="ShortMethodName"/>
<exclude name="LongClassName"/>
</rule>

<rule ref="rulesets/naming.xml/LongClassName">
<properties>
<property name="maximum" value="50"/>
</properties>
</rule>

<rule ref="rulesets/unusedcode.xml">
Expand Down

0 comments on commit 83dd85b

Please sign in to comment.