SonarQube JavaScript
  1. SonarQube JavaScript
  2. SONARJS-79

Rule: Avoid function with too many parameters

    Details

    • Type: New Feature New Feature
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.2
    • Component/s: None
    • Labels:
      None
    • Number of attachments :
      0

      Description

      • Title
        Avoid function with too many parameters
      • Description
        Long parameter lists can indicate that a new structure should be created to wrap the numerous parameters or that the function is doing to many things.
      • Parameter
        maximumFunctionParameters : The maximum authorized number of parameters.
        Default value : 7
      • Violation message
        Function has a xx parameters which is greater than yy authorized.
      • Default priority
        Major

      Part of Sonar Way quality profile

        Issue Links

          Activity

          Hide
          Fabrice Bellingard added a comment -

          Manually tested.

          Show
          Fabrice Bellingard added a comment - Manually tested.
          Hide
          Evgeny Mandrikov added a comment -

          Integration tests were updated.

          Show
          Evgeny Mandrikov added a comment - Integration tests were updated.

            People

            • Assignee:
              Evgeny Mandrikov
              Reporter:
              Freddy Mallet
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: