-
-
Notifications
You must be signed in to change notification settings - Fork 367
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
Don't run hlint on testdata directories #3901
Conversation
@soulomoon Does this look good? |
weird, it is still there, take a look at https://github.com/haskell/haskell-language-server/actions/runs/7206841824/job/19632462805?pr=3901#step:4:133. |
perhaps it is some kind of HLint bug? |
Hm, maybe it only accepts the |
No, no idea, can't reproduce locally with version 3.6.1. |
May be we can try to bumbup the version to 3.6.1 ? |
Can we not put this in the .hlint.yaml file or something so it's always applied? |
No, ignore-glob is seemingly only recognised by the cli. But on CI, not even that seems to be true. |
I did it! It looks like |
LGTM, it seems checks for the testdata's files are gone. |
0638bc0
to
927f811
Compare
What's this file doing, then? Isn't it exactly what we want? https://github.com/haskell/haskell-language-server/blob/master/plugins/hls-semantic-tokens-plugin/.hlint.yaml |
Yeah that looks good, I was looking for a different option, apparently. Will update the PR and delete the respective .hlint.yaml files. |
Doesn't seem to be working yet |
Since none of us can repro locally, I tend to think there is a Github action CI up stream bug. |
Adding
does not work for me locally either. That may be a hlint bug worth discussing upstream. |
locally testing, ditto |
I realize, It might be a confliction between |
I found the source, this pull request ndmitchell/hlint#1552 should fix the ignore-glob problem. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looking good, the problem should be fixed with it once the hlint support ignore glob with arg --git
This seems semantically correct even if there's a hlint problem, so let's merge it anyway. |
* Don't run hlint on testdata directories * Bump hlint version * Remove quotes * Ignore test data directories in .hlint.yaml --------- Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> Co-authored-by: Michael Peyton Jones <[email protected]> Co-authored-by: Patrick Wales <[email protected]>
closes #3900