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

Lines should not end with trailing whitespaces

    Details

    • Type: Code Smell Detection
    • Status: Active
    • Resolution: Unresolved
    • Labels:
    • Message:
      Remove the [useless] trailing whitespaces at the end of this line.
    • Default Severity:
      Minor
    • Impact:
      Low
    • Likelihood:
      Low
    • Legacy Key:
      TrailingWhitespace
    • Targeted languages:
      C#, Flex, Java, VB.Net
    • Covered Languages:
      C, C++, JavaScript, Objective-C, PHP, PL/SQL, Python, Swift, VB6
    • Remediation Function:
      Constant/Issue
    • Constant Cost:
      1min
    • PC-Lint:
      434, 1434, 447, 1447, 544, 1544
    • Pylint:
      C0303
    • SwiftLint:
      trailing_whitespace

      Description

      Trailing whitespaces are simply useless and should not stay in code. They may generate noise when comparing different versions of the same file.

      If you encounter issues from this rule, this probably means that you are not using an automated code formatter - which you should if you have the opportunity to do so.

        Attachments

          Issue Links

          1.
          JavaScript RSPEC-2503 Language-Specification Active Unassigned
          2.
          PHP RSPEC-2504 Language-Specification Active Unassigned
          3.
          PL/SQL RSPEC-2505 Language-Specification Active Unassigned
          4.
          Swift RSPEC-2506 Language-Specification Active Unassigned

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                fabrice.bellingard Fabrice Bellingard
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: