Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add PHPMD XML #1

Open
neild3r opened this issue Oct 2, 2015 · 1 comment
Open

Add PHPMD XML #1

neild3r opened this issue Oct 2, 2015 · 1 comment

Comments

@neild3r
Copy link
Contributor

neild3r commented Oct 2, 2015

I think we should add in an extra XML for the PHP Mess Detector.

Something like the below

<?xml version="1.0"?>
<ruleset name="D3R Mess Detector Config"
         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 setup for D3R
    </description>

    <rule ref="rulesets/cleancode.xml/BooleanArgumentFlag" />

    <rule ref="rulesets/codesize.xml" />

    <rule ref="rulesets/codesize.xml">
        <exclude name="CamelCaseClassName" />
        <exclude name="CamelCasePropertyName" />
    </rule>

    <rule ref="rulesets/design.xml" />

    <rule ref="rulesets/naming.xml">
        <exclude name="ShortVariable" />
    </rule>

    <rule ref="rulesets/unusedcode.xml" />
</ruleset>
@dmnc
Copy link
Member

dmnc commented Oct 2, 2015

Sure. I have a sass lint one somewhere too

On 2 October 2015 at 16:09, Neil Brayfield [email protected] wrote:

I think we should add in an extra XML for the PHP Mess Detector.

Something like the below



Custom setup for D3R

<rule ref="rulesets/cleancode.xml/BooleanArgumentFlag" />

<rule ref="rulesets/codesize.xml" />

<rule ref="rulesets/codesize.xml">
    <exclude name="CamelCaseClassName" />
    <exclude name="CamelCasePropertyName" />
</rule>

<rule ref="rulesets/design.xml" />

<rule ref="rulesets/naming.xml">
    <exclude name="ShortVariable" />
</rule>

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


Reply to this email directly or view it on GitHub
#1.

Dominic Morgan
D3R Ltd
0333 800 2288
[email protected]
http://d3r.com

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants