Skip to content

Code actions for ignoring hlint hints #3007

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

Closed
michaelpj opened this issue Jul 1, 2022 · 2 comments
Closed

Code actions for ignoring hlint hints #3007

michaelpj opened this issue Jul 1, 2022 · 2 comments
Labels

Comments

@michaelpj
Copy link
Collaborator

It would be nice to have a code action to ignore a particular hlint hint from the editor.

The main complexity is that hlint's support for ignoring things is quite complex and there are multiple things that could be done:

  • Changes can be made either to:
    • The source file (add ANN/HLINT pragmas)
    • The .hlint.yaml (ignore files or hints)
  • The scope of the ignore could be different
    • When adding an annotation, you can target a specific definition or the entire module
    • When editing .hlint.yaml, you can also disable the hint entirely

Maybe we just need to provide a few code actions with a selection of these options, or make it configurable somehow. Anything that involves editing the .hlint.yaml file probably also requires #594.

@jneira
Copy link
Member

jneira commented Jul 1, 2022

#600

@michaelpj
Copy link
Collaborator Author

Yep, that's better, and has more discussion.

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

No branches or pull requests

2 participants