r-lib / lintr

Static Code Analysis for R
https://lintr.r-lib.org
Other
1.19k stars 184 forks source link

Add globbing support to exclusions #2172

Open AshesITR opened 1 year ago

AshesITR commented 1 year ago

Maybe we should look into allowing wildcard exclusions based on file names?

exclusions: list("*.Rmd" = "library_call_linter"))

seems readable and concise for your usecase @IndrajeetPatil. WDYT?

Originally posted by @AshesITR in https://github.com/r-lib/lintr/issues/2161#issuecomment-1719762111

MichaelChirico commented 1 year ago

Note #1554 -- I think they're related but not the same, so it would help to disambiguate

AshesITR commented 1 year ago

The Sys.glob() approach will not work with this issue; otherwise they seem fairly similar. Thanks for referencing.