rokucommunity / bslint

A linter for BrightScript and BrighterScript.
MIT License
27 stars 14 forks source link

False positive for variable set but is never used #100

Open iBicha opened 5 months ago

iBicha commented 5 months ago
    j = 0
    while true
        j += 1
        if j > 10
            j = 0 ' lint error here
        end if
    end while
[{
    "resource": "file.bs",
    "owner": "_generated_diagnostic_collection_name_#0",
    "code": "LINT1005",
    "severity": 8,
    "message": "Variable 'j' is set but value is never used",
    "source": "brs",
    "startLineNumber": 85,
    "startColumn": 13,
    "endLineNumber": 85,
    "endColumn": 14
}]