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

allow ignore missing references from source #378

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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