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

[DOC] Missing root node in configuration file example #51

Closed
bigfoot90 opened this issue Sep 19, 2014 · 0 comments
Closed

[DOC] Missing root node in configuration file example #51

bigfoot90 opened this issue Sep 19, 2014 · 0 comments

Comments

@bigfoot90
Copy link

I'm following your instructions on creating configuration file, but it seems there is missing the root node.

I've solved adding the root node in my metrics.yml
There is my working configuration

phpmetrics:
    # paths to explore
    path:
        directory: src
        extensions: php
        exclude: Features|Tests|tests

    # report and violations files
    logging:
        report:
            xml:    app/logs/metrics/phpmetrics.xml
            html:   app/logs/metrics/phpmetrics.html
            csv:    app/logs/metrics/phpmetrics.csv
        violations:
            xml:    app/logs/metrics/violations.xml
        chart:
            bubbles: app/logs/metrics/bubbles.svg

    # condition of failure
    failure: average.maintenabilityIndex < 50 or sum.loc > 10000

    # rules used for color
    rules:
        cyclomaticComplexity: [ 10, 6, 2 ]
        maintenabilityIndex: [ 0, 69, 85 ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants