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

Files should not be empty

    XMLWordPrintable

    Details

    • Type: Code Smell Detection
    • Status: Active
    • Resolution: Unresolved
    • Labels:
    • Message:
      This file has 0 lines of code.
    • Default Severity:
      Minor
    • Impact:
      Low
    • Likelihood:
      Low
    • Legacy Key:
      EmptyFile
    • Covered Languages:
      Java, Swift
    • Remediation Function:
      Constant/Issue
    • Constant Cost:
      5min
    • Analysis Scope:
      Main Sources, Test Sources

      Description

      Files with no lines of code clutter a project and should be removed.

      Noncompliant Code Example

      //package org.foo;
      //
      //public class Bar {}
      

        Attachments

          Issue Links

          1.
          Swift RSPEC-2922 Language-Specification Active Unassigned
          2.
          Java RSPEC-4775 Language-Specification Active Unassigned

            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: