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(
  path = ".",
  pattern = "\\.[Rr](?:|html|md|nw|pres|rst|tex|txt)$",
  ...
)

Arguments

path

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

pattern

regex pattern for files, by default it will take files with any of the extensions .R, .Rmd, .Rnw, .Rpres, .Rhtml, .Rrst, .Rtex, .Rtxt allowing for lowercase r (.r, ...)

...

Arguments passed on to lintr::lint_dir

parse_settings

whether to try and parse the settings.

relative_path

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

exclusions

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

Value

A list of lint objects.

Examples

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

## End(Not run)

jabenninghoff/rdev documentation built on March 18, 2023, 9:31 p.m.