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

Color code output based on chosen metric #88

Open
tonybaloney opened this issue Sep 23, 2019 · 2 comments
Open

Color code output based on chosen metric #88

tonybaloney opened this issue Sep 23, 2019 · 2 comments
Labels
enhancement New feature or request up-for-grabs

Comments

@tonybaloney
Copy link
Owner

For operators that support function/class/method level metrics, enable the user to:

  • List files by metric (same as initial rank feature proposed)
  • Show file with color-coded lines for a given metric, similar to how coverage.py works, in HTML
  • Show file with color-coded lines on the console optional
@tonybaloney tonybaloney added the enhancement New feature or request label Sep 23, 2019
@devdanzin
Copy link
Collaborator

devdanzin commented Jul 18, 2023

I've got simple HTML displaying of Cyclomatic Complexity by values (left is class CC, right is method/function CC). Should be easy to display rank instead. Using pygments.

annotated_01
annotated_02

Edit: added background colors, should handle the green -> yellow -> red transition.

annotated_03

@devdanzin
Copy link
Collaborator

Terminal output is working too. This code lives at https://github.com/devdanzin/wily/tree/annotated_source.

annotated_04

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request up-for-grabs
Projects
None yet
Development

No branches or pull requests

2 participants