Closed giancorderoortiz closed 3 years ago
Fix ...projectscoresrcoccservicesocc-fields.service.ts (change from map to for-each) Set other files to be ignored in sonarscans (talk to Gil how to do this).
Talked to @hackergil about setting files to ignore in sonarscans, he suggested that changes should be made as suggested by sonar.
Eager to see this fixed.
Issue fixed. Thanks.
@giancorderoortiz can u please paste the screenshot for this issue again .. I cannot see the last line in this screen shot
Can you please any one help here consider using foreach instead of map as it's return value is not being used here.
This issue affects our overall Reliability Rating in Sonar Cloud. Visible to CX.
Reliability Rating: C
Link https://sonarcloud.io/component_measures?id=sap_cloud-commerce-spartacus-storefront&metric=reliability_rating&view=list
Files:
Issue: Consider using "forEach" instead of "map" as its return value is not being used here.
Explanation: When the call to a function doesn't have any side effects, what is the point of making the call if the results are ignored? In such case, either the function call is useless and should be dropped or the source code doesn't behave as expected.