SonarQube Plugins
  1. SonarQube Plugins
  2. SONARPLUGINS-2490

Rule: Avoid too complex anonymous functions

    Details

    • Number of attachments :
      0

      Description

      Create a rule to check too complex anonymous functions

        Activity

        Hide
        Tamas Kende added a comment - - edited

        We can measure the number of statements...
        ...the number of function clauses

        Show
        Tamas Kende added a comment - - edited We can measure the number of statements... ...the number of function clauses
        Hide
        Tamas Kende added a comment -

        We can measure complexity, and define lower threshold (like 2), or we can also add the number of lines to it later...

        Show
        Tamas Kende added a comment - We can measure complexity, and define lower threshold (like 2), or we can also add the number of lines to it later...
        Hide
        Tamas Kende added a comment -

        I have the same problem here as in the BranchesOfRecursion. I can save the complexity on the sub SourceFunctions but in the check#leaveNode method I cannot access to the cumulated results, only its own results (without nested SourceFunctions...)

        Show
        Tamas Kende added a comment - I have the same problem here as in the BranchesOfRecursion. I can save the complexity on the sub SourceFunctions but in the check#leaveNode method I cannot access to the cumulated results, only its own results (without nested SourceFunctions...)

          People

          • Assignee:
            Tamas Kende
            Reporter:
            Tamas Kende
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: