Skip to content

Allow exclusion of directories #518

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

Closed
AshesITR opened this issue Sep 7, 2020 · 1 comment · Fixed by #539
Closed

Allow exclusion of directories #518

AshesITR opened this issue Sep 7, 2020 · 1 comment · Fixed by #539

Comments

@AshesITR
Copy link
Collaborator

AshesITR commented Sep 7, 2020

When using renv in a project, lintr::lint_dir() will try to lint all packages installed in the library (renv/library/...)
Currently, one can only exclude single files, so there is no practical way to lint projects using renv.

A remedy would be support for excluding entire directories from linting.

@jucor
Copy link

jucor commented Oct 20, 2020

Most useful for renv indeed. Sadly this issue is what's preventing from using lintr as a pre-commit hook when renv is in use. Instead I manually run devtools::lint() in Rstudio. Not as nice :)

jucor added a commit to jucor/krippendorff that referenced this issue Oct 20, 2020
Sadly lintr is incompatible with renv for now. See
r-lib/lintr#518
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants