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

Sections of code should not be commented out

    Details

    • Type: Code Smell Detection
    • Status: Active
    • Resolution: Unresolved
    • Labels:
    • Message:
      Remove this commented out code.
    • Default Severity:
      Major
    • Impact:
      Low
    • Likelihood:
      High
    • Default Quality Profiles:
      Sonar way
    • Legacy Key:
      commented-code, AvoidCommentedOutCodeCheck, CommentedCode, CommentedOutCodeLine, COBOL.CommentedOutCodeCheck
    • Targeted languages:
      Go, PL/I, Ruby, Rust, Solidity, VB.Net, VB6
    • Covered Languages:
      ABAP, APEX, C#, C, C++, Cobol, Flex, HTML, Java, JavaScript, Kotlin, Objective-C, PHP, PL/SQL, Python, RPG, Scala, Swift, T-SQL, TypeScript, XML
    • Remediation Function:
      Constant/Issue
    • Constant Cost:
      5min
    • Analysis Level:
      Syntactic Analysis
    • Analysis Scope:
      Main Sources, Test Sources
    • Common Rule:
      Yes
    • TSLint-SonarTS:
      no-commented-code

      Description

      Programmers should not comment out code as it bloats programs and reduces readability.
      Unused code should be deleted and can be retrieved from source control history if required.

        Attachments

          Issue Links

          1.
          JavaScript RSPEC-3948 Language-Specification Active Unassigned
          2.
          C-Family RSPEC-4356 Language-Specification Active Unassigned
          3.
          HTML RSPEC-4534 Language-Specification Active Unassigned
          4.
          COBOL RSPEC-5060 Language-Specification Active Unassigned

            Activity

              People

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

                Dates

                • Created:
                  Updated: