Skip to content

Commit

Permalink
Simplified PHPMD config
Browse files Browse the repository at this point in the history
  • Loading branch information
jkphl committed May 17, 2016
1 parent 2216fa3 commit 8fcf5de
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 14 deletions.
15 changes: 1 addition & 14 deletions .codeclimate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,7 @@ engines:
enabled: true
config:
file_extensions: "php"
rulesets: "cleancode,controversial,design,naming,unusedcode,phpmd.xml"
checks:
Controversial/CamelCasePropertyName:
enabled: true
Controversial/CamelCaseMethodName:
enabled: true
CleanCode/StaticAccess:
enabled: false
CodeSize/TooManyMethods:
enabled: true
maxmethods: 25
CodeSize/TooManyPublicMethods:
enabled: true
maxmethods: 25
rulesets: "controversial,design,naming,unusedcode,phpmd.xml"
phpcodesniffer:
enabled: true
config:
Expand Down
5 changes: 5 additions & 0 deletions phpmd.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@
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 apparat modules</description>

<rule ref="rulesets/cleancode.xml">
<exclude name="StaticAccess"/>
</rule>

<rule ref="rulesets/codesize.xml">
<exclude name="TooManyMethods"/>
<exclude name="TooManyPublicMethods"/>
Expand Down

0 comments on commit 8fcf5de

Please sign in to comment.