lint_all: Lint all files

View source: R/ci.R

lint_allR Documentation

Lint all files

Description

Lint all files in a project. Implemented as a wrapper for lintr::lint_dir().

Usage

lint_all(
  pattern = "(?i)[.](r|rmd|qmd|rnw|rhtml|rpres|rrst|rtex|rtxt)$",
  exclusions = list("renv", "packrat", "R/RcppExports.R"),
  ...
)

Arguments

pattern

regex pattern for files, by default it will take files with any of the extensions .R, .Rmd, .qmd, .Rnw, .Rhtml, .Rpres, .Rrst, .Rtex, .Rtxt, ignoring case.

exclusions

exclusions for exclude(), relative to the package path.

...

Arguments passed on to lintr::lint_dir

parse_settings

Logical, default TRUE. Whether to try and parse the settings; otherwise, the default_settings() are used.

path

For the base directory of the project (for lint_dir()) or package (for lint_package()).

relative_path

if TRUE, file paths are printed using their path relative to the base directory. If FALSE, use the full absolute path.

show_progress

Logical controlling whether to show linting progress with a simple text progress bar via utils::txtProgressBar(). The default behavior is to show progress in interactive() sessions not running a testthat suite.

Value

A list of lint objects.

Examples

## Not run: 
lint_all()
lint_all("analysis")

## End(Not run)

jabenninghoff/rdev documentation built on Sept. 26, 2024, 10:37 p.m.