Skip to content

phpmetrics specific config file #74

@cbastienbaron

Description

@cbastienbaron

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 ;)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions