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 code-annotations for locally flagging false positives #2828

Closed
umlaeute opened this issue Apr 21, 2023 · 3 comments
Closed

allow code-annotations for locally flagging false positives #2828

umlaeute opened this issue Apr 21, 2023 · 3 comments

Comments

@umlaeute
Copy link

it would be great if we could add annotations into the code in order to prevent the detection of false-positives.

sometimes you just do not have any choice of wording, but still do not want to add a global ignore for a given word.

something like this:

struct v4l2_streamparm param.
// codespell-ignore parm
param.parm.capture.timeperframe.numerator = 1;

suggested keywords (just ideas; alternatively map the cmdline args, or whatever; though I quite like the possibility to end additional ignore-rules)

  • codespell-ignore start ignoring the given words within the current file
  • codespell-unignore start ignoring the given words within the current file (falling back to the original state, as defined via the cmdline)
  • codespell-ignoreonce only ignore the next occurence of the word

this would also help to run codespell without any arguments

@DimitriPapadopoulos
Copy link
Collaborator

Duplicate of #1212.

@umlaeute
Copy link
Author

ouch, thanks for spotting this.
i did search the issue tracker first, but unfortunately used the wrong search terms.

@DimitriPapadopoulos
Copy link
Collaborator

@umlaeute You're welcome. Thank you for helping out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants