Search code examples
phpstormjetbrains-ide

PhpStorm showing red line on code where cognitive complexity is high. How to remove it?


In the PhpStorm IDE I am getting a red line on all functions where Cognitive Complexity is high. It is good to be known that there is high cognitive complexity, but in my case it is annoying to see this red line.

I want to remove it. How to do it?

I have latest version of PhpStorm. And using SonarLint plugin, Better Comments plugin and Code Comments plugin with Material UI theme.

I want to remove those red/ping lines which is visible in every line.

enter image description here


Solution

  • Found the solution under following structure. Disabled it.

    File
        Settings
            Editor
                Ispections
                    Congnitive Complexity
                        High Congnitive Comlexity