Skip to content

HLINT ignore directive ignored #1444

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
newhoggy opened this issue Feb 26, 2021 · 2 comments
Closed

HLINT ignore directive ignored #1444

newhoggy opened this issue Feb 26, 2021 · 2 comments
Labels
component: hls-hlint-plugin type: bug Something isn't right: doesn't work as intended, documentation is missing/outdated, etc..

Comments

@newhoggy
Copy link

Your environment

Which lsp-client do you use: VSCode

Link to the project: https://github.com/input-output-hk/cardano-node

Contents of `hie.yaml`: None

### Steps to reproduce
Open `cardano-cli/test/Test/Golden/Version.hs`

### Expected behaviour
The directive `{- HLINT ignore "Use camelCase" -}` should suppress `Use camelCase` warnings.

### Actual behaviour
![image](https://user-images.githubusercontent.com/63014/109259067-9acfef00-784f-11eb-8d73-921b28545790.png)

### Include debug information
Execute in the root of your project the command `haskell-language-server --debug .` and paste the logs here:

See attachment.

Paste the logs from the lsp-client, e.g. for [VS Code](https://github.com/haskell/vscode-haskell#troubleshooting)

N/A
@newhoggy
Copy link
Author

debug.txt.gz

@jneira jneira added component: hls-hlint-plugin type: bug Something isn't right: doesn't work as intended, documentation is missing/outdated, etc.. labels Feb 26, 2021
@jneira
Copy link
Member

jneira commented Feb 26, 2021

Hi, thanks for the bug report, the wrong behaviour was reported in #638, there you can check other ways to set rule ignores could work (using a .hlint.yaml per module, o the ANN annotation)

@jneira jneira closed this as completed Feb 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: hls-hlint-plugin type: bug Something isn't right: doesn't work as intended, documentation is missing/outdated, etc..
Projects
None yet
Development

No branches or pull requests

2 participants