title: How to skip the sonarqube cognitive complexity for the parent function?
body: <p>My angularjs controller file always starts with two nested function definitions. Like,</p>
  
  <pre><code>define(['dependencies'], function(appName) {
    appName.controler('controllerName', [function main($scope) {
  
      /* actual code here*/
      $scope.method1 = function() {/*code*/}
      $scope.method2 = function() {/*code*/}
      ...
  
    }]);
  })
  </code></pre>
  
  <p>I need to calculate the cognitive complexity only for the method1 &amp; method2, etc that are inside the #main function. And <b>skip for the #main function (parent function)</b> as which complexity will be the sum of all its child methods complexity. And which always more than the threshold >15.</p>