Uploaded image for project: 'Rules Repository'
  1. Rules Repository
  2. RSPEC-1477

Source files should not have any duplicated blocks

    Details

    • Type: Code Smell Detection
    • Status: Active
    • Resolution: Unresolved
    • Labels:
    • Message:
      {} duplicated blocks of code must be removed.
    • Default Severity:
      Critical
    • Impact:
      High
    • Likelihood:
      Low
    • Default Quality Profiles:
      Sonar way
    • Legacy Key:
      DuplicatedBlocks
    • Targeted languages:
      VB6
    • Covered Languages:
      ABAP, C#, C, C++, Cobol, Flex, Java, JavaScript, Objective-C, PHP, PL/I, PL/SQL, Python, RPG, Swift, VB.Net
    • Remediation Function:
      Linear with offset
    • Linear Argument Description:
      per duplicate block
    • Linear Factor:
      10min
    • Linear Offset:
      10min
    • Analysis Scope:
      Main Sources
    • Checkstyle:
      StrictDuplicateCode
    • Pylint:
      R0801

      Description

      An issue is created on a file as soon as there is at least one block of duplicated code on this file.

        Attachments

          Issue Links

          1.
          JavaScript RSPEC-3911 Language-Specification Active Unassigned

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                freddy.mallet Freddy Mallet (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: