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

"COPY SUPPRESS" should not be used

    XMLWordPrintable

    Details

    • Type: Code Smell Detection
    • Status: Active
    • Resolution: Unresolved
    • Labels:
    • Message:
      Don't "SUPPRESS" inclusion of this library in the code listing.
    • Highlighting:
      Hide

      SUPPRESS

      Show
      SUPPRESS
    • Default Severity:
      Critical
    • Impact:
      High
    • Likelihood:
      Low
    • Default Quality Profiles:
      Sonar way
    • Covered Languages:
      Cobol
    • Irrelevant for Languages:
      ABAP, C#, C, C++, CSS, Flex, HTML, Java, JavaScript, Objective-C, PHP, PL/I, PL/SQL, Python, RPG, Swift, VB.Net, VB6, XML
    • Remediation Function:
      Constant/Issue
    • Constant Cost:
      5min
    • Analysis Scope:
      Main Sources, Test Sources

      Description

      COPY ... SUPPRESS suppresses the inclusion of the copybook contents from the source listing, making it very difficult to gain a complete understanding of what's happening in the code. This could hinder both maintenance and debugging.

      Noncompliant Code Example

      COPY XX001234 SUPPRESS.  <* Noncompliant
      

      Compliant Solution

      COPY XX001234.
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              ann.campbell.2 Ann Campbell
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated: