🏡 index : ~doyle/koselig.git

author Jordan Doyle <jordan@doyle.wf> 2016-10-03 19:05:41.0 +00:00:00
committer Jordan Doyle <jordan@doyle.wf> 2016-10-03 19:05:41.0 +00:00:00
commit
a7505d6a8ae4782f4383ba27a97ee90113a553b8 [patch]
tree
08c1553c773c28c8e62f857bd39b1ace5a1bf3ef
parent
1772ef22979eccf6aaf2d12a90e0e517c5339d2a
download
a7505d6a8ae4782f4383ba27a97ee90113a553b8.tar.gz

PHPMD tweaks



Diff

 .codeclimate.yml |  2 +-
 phpmd.xml        | 12 ++++++++++++
 2 files changed, 13 insertions(+), 1 deletion(-)

diff --git a/.codeclimate.yml b/.codeclimate.yml
index 8af83c3..ffb316a 100644
--- a/.codeclimate.yml
+++ b/.codeclimate.yml
@@ -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"
diff --git a/phpmd.xml b/phpmd.xml
new file mode 100644
index 0000000..2d0e482
--- /dev/null
+++ b/phpmd.xml
@@ -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>