Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

False positive for variable set but is never used #100

Open
iBicha opened this issue Feb 14, 2024 · 0 comments
Open

False positive for variable set but is never used #100

iBicha opened this issue Feb 14, 2024 · 0 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@iBicha
Copy link
Contributor

iBicha commented Feb 14, 2024

    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
}]
@TwitchBronBron TwitchBronBron added bug Something isn't working help wanted Extra attention is needed labels May 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants