cnescatlab / cnescatlab/i-CodeCNES

The COM.DATA.LoopCondition doesn't take the until loop into account

Open
#136 0 comments 0 reactions 1 assignee Claimed by @brigittehuynh View on GitHub
bug shell
Dominant language
Fortran
Stars
63
Forks
18
PR merge metrics
No merged PRs in 30d

Description

### Expected behavior
There is a violation when the until loop is used, as there is with the while loop

### Actual behavior
No violation with an until loop

### Steps to reproduce behavior
Code with no violation (replaced "while" with "until" in test code where there is a violation on the LIMIT2=... line):

until [ $c -le "$LIMIT2" ]
do
c=$(($c+1))
LIMIT2=$(($LIMIT2-1))
echo "Value $c"
done

### Detection version
3.1.0-dev

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.