cnescatlab / cnescatlab/i-CodeCNES

False positives on COM.DATA.Initialisation rule

Open
#179 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
we don't expect a COM.DATA.Initialisation error when :
- the variable used in a case syntax is used after the case
- an environment variable used.
- using NF in an awk command

### Actual behavior
With these lines of shell :
![image](https://user-images.githubusercontent.com/59566012/71890247-27978500-3144-11ea-805b-9dee8eed20b2.png)
![image](https://user-images.githubusercontent.com/59566012/71890249-29f9df00-3144-11ea-8d72-f812cfddd886.png)

i-Code raises the following errors :
![image](https://user-images.githubusercontent.com/59566012/71890269-33834700-3144-11ea-842f-1f8e41c791bb.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.