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

Add line numbers to Halstead results #248

Open
devdanzin opened this issue Aug 20, 2023 · 0 comments
Open

Add line numbers to Halstead results #248

devdanzin opened this issue Aug 20, 2023 · 0 comments

Comments

@devdanzin
Copy link
Contributor

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.

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

No branches or pull requests

1 participant