Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: JAVASCRIPT-1.2
-
Component/s: JavaScript
-
Labels:None
-
Number of attachments :
Description
According to our guidelines:
- +1 for SWTCH CASES (+0 for the DEFAULT CASE and the SWITCH itself)
- +1 for RETURN, except when it is the very last statement of a function or of an anonymous function or of an accessor's getter
which is not the case now.
Issue Links
- is duplicated by
-
SONARPLUGINS-2432
Complexity should not be incremented by switch, switch/default keyword and by the last return statement in a method
-
Manually tested.