Why does SonarLint allow a negative threshold for Cognitive complexity (Eclipse)

305 views Asked by At

In Windows -> Preferences -> SonarLint -> Rules Configuration -> Java -> (search cognitive complexity), while selecting the rule for cognitive complexity, I was able to set a negative value for the threshold.

enter image description here

I was able to successfully apply the change, and sonar warnings were also generated:

enter image description here

What is the purpose of allowing a negative threshold, or is this a bug?

0

There are 0 answers