-
-
Notifications
You must be signed in to change notification settings - Fork 49
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
How to exclude generated files? #399
Comments
@Lysxia if I understand you correctly, you need to exclude the whole folder of [[check]]
type = "Exclude"
directory = "dist-newstyle/"
filter = "all" |
Thanks! It seems I have to give the whole prefix,
Also this seems overly specific to Cabal. Stack users would then want to exclude |
Sure, this sounds like a great idea, and there is a use-case for that. Stan itself is working with the relative paths, so it depends on where you call Stan from (but note, that Stan is also looking for the |
I was taking a look at this while working on chshersh/iris#64, and as @vrom911 pointed out, HIE is putting the absolute path in the case of generated files: After brainstorming a little bit, I come up with the following ideas. Let me know your thoughts so I can tackle this issue :)
|
I'm using Happy to generate
.hs
files from.y
files, and stan reports errors in the.hs
file (notably, Happy-generated files use(!!)
) that I would like to exclude from reports.How can I exclude that file?
Is that currently possible? The problem is that apparently you're supposed to report the path to the
.hs
file relative to the root of the project, but generated files don't have a stable location. The path to the file shown in the report is the absolute path on my filesystem, going into thedist-newstyle/
directory (see picture). One way would be to have a way to ignore any file whose path ends withMyLib/Parser.hs
, rather than matching a relative path exactly.The text was updated successfully, but these errors were encountered: