jfmengels / elm-review

Analyzes Elm projects, to help find mistakes before your users find them.
https://package.elm-lang.org/packages/jfmengels/elm-review/latest/
Other
252 stars 13 forks source link

Add Rule.withIsFileIgnored #145

Closed jfmengels closed 1 year ago

jfmengels commented 1 year ago

Add Rule.withIsFileIgnored, which tells you whether a file is being ignored or not. This knowledge might be useful to skip unnecessary work (collecting data or reporting errors) related to an ignored file.

I hope that we can use this information later on to entirely skip files (in project rules) or specific visitors, but I haven't been able to find a good design for this yet. This might be a good start for some rules already.