All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.sonar.server.rule.ws.example-show.json Maven / Gradle / Ivy

There is a newer version: 7.2.1
Show newest version
{"rule": {
    "key": "squid:ClassCyclomaticComplexity",
    "repo": "squid",
    "name": "Avoid too complex class",
    "htmlDesc": "

The Cyclomatic Complexity is measured by the number of (&&, ||)\n\toperators and (if, while, do, for, ?:, catch, switch, case, return,\n\tthrow) statements in the body of a class plus one for each constructor,\n\tmethod (but not getter/setter), static initializer, or instance\n\tinitializer in the class. The last return stament in method, if exists,\n\tis not taken into account.

\n

\n\tEven when the Cyclomatic Complexity of a class is very high, this\n\tcomplexity might be well distributed among all methods. Nevertheless,\n\tmost of the time, a very complex class is a class which breaks the Single\n\t\tResponsibility Principle and which should be re-factored to be split\n\tin several classes.\n

", "severity": "MAJOR", "status": "READY", "internalKey": "ClassCyclomaticComplexity", "template": false, "tags": [], "sysTags": ["brain-overload"], "remFnType": "LINEAR_OFFSET", "remFnGapMultiplier": "5d", "remFnBaseEffort": "10h", "defaultRemFnType": "LINEAR_OFFSET", "defaultRemFnGapMultiplier": "6d", "defaultRemFnBaseEffort": "11h", "remFnOverloaded": true, "gapDescription": "java.S001.effortToFix", "lang": "java", "langName": "Java", "type": "CODE_SMELL", "params": [ { "key": "max", "desc": "Maximum complexity allowed.", "defaultValue": "200" } ] }, "actives": [ { "qProfile": "Sonar way with Findbugs:java", "inherit": "NONE", "severity": "MAJOR", "params": [ { "key": "max", "value": "200" } ] }, { "qProfile": "Sonar way:java", "inherit": "NONE", "severity": "MAJOR", "params": [ { "key": "max", "value": "200" } ] } ]}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy