-
Notifications
You must be signed in to change notification settings - Fork 197
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
Support preprocessors #501
Comments
Those warnings are coming from cpphs - so if you pass |
I added to the README at https://github.com/ndmitchell/hlint/blob/master/README.md#bugs-and-limitations:
That seems to be the crux of the issue. Should I leave this ticket to add support for preprocessors? Or do you think there is something HLint could do otherwise? |
Yeah, I expected the issue to be preprocessors. If there is an expectation that |
Given I now have my own preprocessor the odds just went up significantly :) |
I think it would be super awesome to add support for record-dot-preprocessor. Ghcide and Ormolu already support it, and I think it would be a great if HLint also did. I would definitely use this feature. |
My inclination is NOT to support preprocessors by default, but require them to be passed as a flag to HLint - so we wouldn't find the GHC preprocessor flags. Does that seem sufficient? |
@ndmitchell It would be totally sufficient for me, I would simply like to be able to use HLint on a codebase that uses record-dot-preprocessor. Passing an extra flag to HLint is not a problem at all. |
For record-dot-preprocessor, is the problem you are getting parse errors (from |
I just tested. Interestingly, there are no parse errors at all. I am getting correct hints (I am not sure whether any hints are missing due to incorrect grouping). Also, you are right, when I try to run HLint on the output of record-dot-preprocessor, the output is less useful as it contains too much stuff related to record-dot-preprocessor. |
When building in CI
hlint
was unable to parse the README.lhs in this PRfreckle/faktory_worker_haskell#13 (comment)
This build utilizes the fpco docker build of lts-11.9, which contains https://www.stackage.org/lts-11.9/package/hlint-2.1.5
I did not have the same issues locally with:
However when I upgraded my local
hlint
I did see them.The text was updated successfully, but these errors were encountered: