cnescatlab / cnescatlab/i-CodeCNES

False positive on SH.FLOW.CheckCodeReturn rule

Open
#181 0 comments 0 reactions 0 assignees View on GitHub
false positive shell to analyse
Dominant language
Fortran
Stars
63
Forks
18
PR merge metrics
No merged PRs in 30d

Description

### Expected behavior
This script should not raise a SH.FLOW.CheckCodeReturn error because the result of command rm is checked on the following line.

### Actual behavior
The following lines :
![image](https://user-images.githubusercontent.com/59566012/71891046-fb7d0380-3145-11ea-9272-cb3118b6bf4a.png)

raise the following i-Code result
![image](https://user-images.githubusercontent.com/59566012/71891092-164f7800-3146-11ea-98b1-d6f8f2d2d1d1.png)
![image](https://user-images.githubusercontent.com/59566012/71891097-194a6880-3146-11ea-8545-5536815df013.png)

### Steps to reproduce behavior

### Detection version
3.0

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.