StaticLint.jl icon indicating copy to clipboard operation
StaticLint.jl copied to clipboard

Ignore issue

Open jtrakk opened this issue 3 years ago • 1 comments

Sometimes StaticLint incorrectly reports an issue and I want to ignore it. I want to comment e.g.

f(1,2,3) # staticlint-ignore: methodcall(f)

jtrakk avatar Dec 15 '21 22:12 jtrakk

Is there any update related to that?

The issue with macros is a know issue and it is very annoying. See: https://github.com/julia-vscode/StaticLint.jl/issues/282

For example:

@enum Foo Bar = 1 Biz = 2
bar = Bar

This code shows missing reference in line 1 for each enumeration (Bar, Biz).

We could start with an simple all and implementing step-by-step.

@enum Foo Bar = 1 Biz = 2 # staticlint-ignore: all
bar = Bar

With a start guidance, I could spend some time trying to implement it. 😁

felipemarkson avatar Mar 20 '23 14:03 felipemarkson