PHPMD tweaks
Diff
.codeclimate.yml | 2 +-
phpmd.xml | 12 ++++++++++++
2 files changed, 13 insertions(+), 1 deletion(-)
@@ -10,7 +10,7 @@ engines:
enabled: true
config:
file_extensions: "php"
rulesets: "cleancode,codesize,controversial,design,naming"
rulesets: "codesize,controversial,design,naming,phpmd.xml"
ratings:
paths:
- "**.php"
@@ -0,0 +1,12 @@
<?xml version="1.0"?>
<ruleset name="PHPMD rule set for Koselig" xmlns="http://pmd.sf.net/ruleset/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
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">
<description>Custom rules for checking Koselig</description>
<rule ref="rulesets/naming.xml">
<exclude name="ShortVariable"/>
<exclude name="ShortMethodName"/>
</rule>
</ruleset>