Skip to content

Add line numbers to Halstead results #248

@devdanzin

Description

@devdanzin

I'm currently adding a feature to wily that allows annotating source code with radon metrics. Cyclomatic Complexity results already have lineno and endline entries, making annotation trivial. However, Halstead metrics don't have this information.

We are able to work around this issue by subclassing HalsteadVisitor and HCHarvester to add line numbers, but thought maybe this feature would be accepted upstream.

If there's interest, I can submit a PR once #247 either lands or is rejected.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions