And a thorough description of the problem / question: when i use eslint-plugin-sonarjs and rule is “sonarjs/cognitive-complexity”, the startLine and endLine are the same
Hi,
Welcome to the community!
Cognitive Complexity issues are reported at the function/method level since they’re about the total complexity for the unit.
When they’re reported through a Sonar UI, you’ll see secondary locations to indicate each place the complexity is increased, and by how much.
HTH,
Ann
