-
-
Notifications
You must be signed in to change notification settings - Fork 390
HLS HLint plugin doesn't preserve HLint's severities #3881
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
Comments
The No comment, so who knows why. I think it would be pretty reasonable to follow |
severity: 3
…ll#3881 preserve severity from HLint
I have created a PR for it: #3902. And I have tested it locally. Hope this solves the issue. |
…#3902) * Fix issue: HLS HLint plugin doesn't preserve HLint's severities #3881 preserve severity from HLint * Fix tests * Only preserve error serverity from hlint * Add comment explaining the propogation of error level serverity --------- Co-authored-by: Michael Peyton Jones <[email protected]>
…ll#3881 (haskell#3902) * Fix issue: HLS HLint plugin doesn't preserve HLint's severities haskell#3881 preserve severity from HLint * Fix tests * Only preserve error serverity from hlint * Add comment explaining the propogation of error level serverity --------- Co-authored-by: Michael Peyton Jones <[email protected]>
Just as a note for anyone coming here in future: we decided on the following behaviour:
This is because |
Your environment
Which OS do you use?
Ubuntu 20.04
Which version of GHC do you use and how did you install it?
9.2.8 form ghcup
Which LSP client (editor/plugin) do you use?
helix
Which version of HLS do you use and how did you install it?
2.4.0.0 from ghcup
Have you configured HLS in any way (especially: a
hie.yaml
file)?I have a
hie.yaml
file, but I don't think it's relevant to this issue.What's wrong?
I have added this line to my
.hlint.yaml
file:When running
hlint
I correctly get:HLS reports the same issue but with
severity: 3
, making it render as a suggestion instead of an error in my editor:Is this something that's not supported (yet)? Is it possible that it's
hlint
's fault instead?Thanks
The text was updated successfully, but these errors were encountered: