question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

func-names causes visual clutter inside editors

See original GitHub issue

The func-names rule flags the entire function instead of just the declaration, causing visual clutter in editors such as VSCode.

What rule do you want to change? func-names

Does this change cause the rule to produce more or fewer warnings? No

How will the change be implemented? (New option, new default behavior, etc.)? Either new option, or change current behaviour.

Please provide some example code that this change will affect:

const x = function () {
  return 100;
}

What does the rule currently do for this code? Highlights the entire function declaration as a warning.

What will the rule do after it’s changed? Highlight only function () .

Are you willing to submit a pull request to implement this change? Maybe

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:3
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
aladdin-addcommented, Jul 27, 2019

here is the 3rd 👍 , labelled accepted.

1reaction
g-planecommented, Jul 26, 2019

I think there’s no need to add a new option.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Visual Clutter Causes High-Magnitude Errors
Visual targets imbedded in distractors lead not only to judgment errors, but also to higher confidence about erroneous decisions.
Read more >
Visual Clutter: What it is and How to Get Rid of It
If you or members in your household have attention issues, such as ADHD, visual clutter can exacerbate symptoms and reduce ability to focus....
Read more >
A crowding model of visual clutter | JOV - Journal of Vision
We constructed an algorithm to predict visual clutter in arbitrary images by estimating the perceptual impairment due to crowding. After verifying that this ......
Read more >
Visual clutter caused by annotations
The use of annotations in CAD models has been an active area of research because of their ability to connect design information to...
Read more >
Intensified visual clutter induces increased sympathetic ... - NCBI
In conclusion, exposure to visual clutter was reflected in the eye ... sympathetic and postural impact caused by the visual stimuli, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found