Details
-
Type:
New Feature
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: JAVASCRIPT-1.2
-
Component/s: JavaScript
-
Labels:None
-
Number of attachments :
Description
- Title
Avoid empty block
- Description
In most cases, en empty block represents a missing implementation.
examples :
if(something){ /*Non-Compliant*/ //What ? } for (var i=0;i<cars.length;i++) { /*Non-Compliant*/ //Empty on purpose or missing piece of code ? }
- Violation message
Provide the missing piece of code
- Default severity
Major
Part of Sonar way quality profile
Issue Links
- is related to
-
SONARPLUGINS-2515
Update the SQALE mapping for new rules
-
Empty function blocks should be considered as well.