-
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
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.
- is implemented by
-
CPP-603 Rule: Lines should not end with trailing whitespaces
-
- Closed
-
-
SONARSWIFT-55 Rule: Lines should not end with trailing whitespaces
-
- Closed
-
-
SONARVBSIX-152 Rule: Lines should not end with trailing whitespaces
-
- Closed
-
-
CPP-707 Create Objective-C rules repository containing targeted rules
-
- Closed
-
-
SONARPLSQL-502 Rule: Lines should not end with trailing whitespaces
-
- Closed
-
- is related to
-
SONARPHP-755 FP on S1131 (TrailingWhitespaceCheck): Lines should not end with trailing whitespaces
-
- Closed
-
1.
|
JavaScript | RSPEC-2503 |
|
Active | Unassigned | |
2.
|
PHP | RSPEC-2504 |
|
Active | Unassigned | |
3.
|
PL/SQL | RSPEC-2505 |
|
Active | Unassigned | |
4.
|
Swift | RSPEC-2506 |
|
Active | Unassigned |