lint_file {lintr}R Documentation

Lint a file

Description

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

Usage

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.


[Package lintr version 2.0.0 Index]