Skip to content

Conversation

takbal
Copy link

@takbal takbal commented Nov 1, 2023

StaticLint tends to give too many false missing references, and that makes this - otherwise very useful - feature barely usable, as one tends to ignore them, or turn this feature off.

On the other hand, I still have incorrectly tagged missing references reported 2.5 years ago, and new ones keep popping up. So the obvious solution of waiting for all of them getting fixed seems not to be viable.

The changes in this pull request allow ignoring specific missing reference warnings, via special comment lines added to any source. These lines should start with the text "#@linter_refs", and then provide comma-separated list(s) of the missing references to ignore.

Controlling the linter through #pragma statements is common practice. This functionality was also present in Lint.jl through a @lintpragma macro.

@pfitzseb pfitzseb self-requested a review November 6, 2023 11:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant