phpmetrics specific config file
cbastienbaron opened this issue · 2 comments
cbastienbaron commented
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 commented
cbastienbaron commented
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 ?