Methods should not have too many lines - missing in SonarQube profile

we are using sonar qube version 7.7

following rule is missing in the default profile “Methods should not have too many lines”

How can this rule be added? Do we need to update the plugin

Hey there.

You should really upgrade to SonarQube v7.9 LTS so you can soon upgrade to v8.9 LTS (due out next week). SonarQube v7.7 is an EOL version of SonarQube.

Indeed, Methods should not have too many lines is not a rule in the built-in Sonar Way. You will need to create a new Quality Profile and activate the rule.