Closed Hypenate closed 6 years ago
If you would like to remove the complexity associated with an arrow function, then set the value of the Arrow Function to 0 (the field in the middle the scrrenshot above). The boolean option is meant for showing / hiding complexity code lenses at arrow functions.
Still not fixed though. I have the same issue, setting the value to 0 doesn't fix the issue.
@seiftie I've just tested this and it does work... There was also nothing to be fixed in the first place, perhaps I'm missing something?
In order to hide code lens for arrow functions turn the flag off
"codemetrics.basics.MetricsForArrowFunctionsToggled": false
To reduce the added complexity of arrow functions to zero, set the following too
"codemetrics.nodeconfiguration.ArrowFunction": 0
or in the UI:
In the settings, I have disabled the code metrics for the arrow functions. But when I check in my CodeLens it still counts.