lint_file: Lint a file

Description Usage Arguments Value

Description

Apply one or more linters to a file and return the lints found.

Usage

1
lint(filename, linters = NULL, cache = FALSE, ..., parse_settings = TRUE)

Arguments

filename

the given filename to lint.

linters

a named list of linter functions to apply see linters for a full list of default and available linters.

cache

given a logical, toggle caching of lint results. If passed a character string, store the cache in this directory.

...

additional arguments passed to exclude.

parse_settings

whether to try and parse the settings

Value

A list of lint objects.


lintr documentation built on Feb. 19, 2020, 9:10 a.m.