-
Notifications
You must be signed in to change notification settings - Fork 195
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
Allow to ignore certain directories #117
Comments
You can put Out of curiosity, which hints does BNFC violate? |
Adding the Most of the hints showed are about redundant brackets and
|
OK, glad you've fixed it for your case. I'll leave this ticket open to have a command line flag for directories/files to exclude. |
Great, thanks! |
An issue that we've run into is that for certain newer language features that haven't made it into I've been working around it by keeping a list of files that are currently un-parseable in a file I call If it would be pretty straightforward to add this command line option I'd be happy to submit a PR myself. |
Is it possible to exclude a given file from being linted, when I give a directory to hlint? |
@nh2 No, not currently. If it has a good module name you can use the standard ignore stuff to ignore the module. |
As an alternative to @benperez's suggestion, I'm sticking unparseable files in a |
In order to avoid having HLint parse the file at all. HLint currently does not support Template Haskell typed quotes: ndmitchell/hlint#332 Using this as a workaround: ndmitchell/hlint#117 (comment)
That doesn't work in my case, we're using an
If I comment it out:
(tons of output, stuff that needs cleaned up) The ability to ignore files ( |
@ndmitchell I was doing some cleanup at work and remembered that we still can't use |
Just noting this is still a thing -- I've actually vendored some as-of-yet unreleased libraries in my source code, so I can't just edit them and put annotations in. Also, I got past this limitation by editing the |
No solutions yet. I think it's waiting on a release of a file-pattern library that is being split out of Shake. Progress slow bug ongoing! |
Not that using the command line you can restrict hlint to specific directories - e.g. |
Is there any update to the above @ndmitchell ? |
|
Great news is that HLint HEAD as of yesterday allows @dspies-leapyear I recommend using |
Hello,
I am trying to set a goal in my project's cabal file that would run hlint and fail if it get any hint (see http://taylor.fausak.me/2014/03/04/haskeleton-a-haskell-project-skeleton - Static Analysis section). The problem is I am using BNFC too, which generates some files (in my case in
src/Language
) that I have no control over. I would like to check all thesrc
tree except for thatsrc/Language
folder.Is it possible now/will be in the future? Thanks
The text was updated successfully, but these errors were encountered: