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

phpmetrics specific config file #74

Closed
cbastienbaron opened this issue Jun 19, 2017 · 2 comments
Closed

phpmetrics specific config file #74

cbastienbaron opened this issue Jun 19, 2017 · 2 comments

Comments

@cbastienbaron
Copy link
Contributor

Hi guys,

This is possible to provide a specific .phpmetrics.yml config via .phpqa.yml or other way ?

i need to integrate some rules for phpmetrics like bellow :

default:
    rules:
        cyclomaticComplexity: [ 10, 6, 2 ]
        maintainabilityIndex: [ 0, 75, 95 ]

    failure: average.maintainabilityIndex < 80 or average.bugs >= 1 or average.cyclomaticComplexity >= 4 or average.lcom >= 3

and so it will be awesome to have an aware .phpqa.yml like this :

phpcpd:
    minLines: 5
    minTokens: 70

phpmetrics:
    config: .phpmetrics.yml

thks in advance ;)

@zdenekdrahos
Copy link
Member

I'm sure, it's possible. I'll look into it.

Note: config is supported only in v1. v2 does not support configuration files yet

@cbastienbaron
Copy link
Contributor Author

Thanks for pointing this ;) +1 for you request at Halleck. I close this issue ? or let open until we have a config file for v2 ?

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

No branches or pull requests

2 participants