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

Unused header files should be removed

    XMLWordPrintable

    Details

    • Type: Code Smell Detection
    • Status: Active
    • Resolution: Unresolved
    • Labels:
    • Message:
      Remove this file; it's not referenced in the project.
    • Highlighting:
      Hide

      N/A; file-level issue

      Show
      N/A; file-level issue
    • Default Severity:
      Minor
    • Impact:
      Low
    • Likelihood:
      Low
    • Default Quality Profiles:
      Sonar way, MISRA C++ 2008 recommended
    • Targeted languages:
      C, C++, Objective-C
    • Remediation Function:
      Constant/Issue
    • Constant Cost:
      5min
    • CERT:
      MSC12-C.

      Description

      Header files that aren't referenced anywhere in a project are just dead code, cluttering the project and confusing developers. Such files should be removed.

      See

      • CERT, MSC12-C. - Detect and remove code that has no effect or is never executed

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated: