-
Type:
Code Smell Detection
-
Status: Active
-
Resolution: Unresolved
-
Labels:
-
Message:Replace this "for" loop with a "while" loop.
-
Default Severity:Minor
-
Impact:Low
-
Likelihood:Low
-
Default Quality Profiles:Sonar way
-
Targeted languages:Flex
-
Covered Languages:C#, C, C++, Java, JavaScript, Objective-C, PHP, TypeScript
-
Irrelevant for Languages:ABAP, Cobol, Go, HTML, PL/I, PL/SQL, Python, RPG, Swift, T-SQL, VB.Net, VB6, XML
-
Remediation Function:Constant/Issue
-
Constant Cost:5min
-
Analysis Level:Syntactic Analysis
-
Analysis Scope:Main Sources, Test Sources
-
Common Rule:Yes
-
PMD:ForLoopShouldBeWhileLoop
-
TSLint:prefer-while
- is implemented by
-
SONARFLEX-110 Rule: A "while" loop should be used instead of a "for" loop
-
- Open
-
-
CPP-694 Rule: A "while" loop should be used instead of a "for" loop
-
- Closed
-
-
SONARJAVA-715 Rule: A "while" loop should be used instead of a "for" loop
-
- Closed
-
-
CPP-707 Create Objective-C rules repository containing targeted rules
-
- Closed
-
- links to
(2 links to)
1.
|
JavaScript | RSPEC-3954 |
|
Active | Unassigned | |
2.
|
C-Family | RSPEC-5520 |
|
Active | Unassigned |