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

Make lint rules highlight function name only instead of the entire function body #4241

Closed
stevepryde opened this issue Jun 30, 2019 · 0 comments · Fixed by #4935
Closed

Make lint rules highlight function name only instead of the entire function body #4241

stevepryde opened this issue Jun 30, 2019 · 0 comments · Fixed by #4935

Comments

@stevepryde
Copy link

Today I discovered the 'cognitive complexity' lint, which underlined the entire function body with a yellow wavy line. The lint rule is fine - I actually appreciated this a lot. However, underlining the entire function seems like overkill and makes it very difficult to read, let alone try to refactor it.

If this could be changed to only underline the function name, or something similarly minimal, that would make the task of refactoring much easier.

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

Successfully merging a pull request may close this issue.

1 participant