setup_lintr_config: Setup the 'lintr' config file

View source: R/setup_lintr.r

setup_lintr_configR Documentation

Setup the lintr config file

Description

A simple function to create the config file needed for lintr. Most linters are enable by default, except for line_length_linter and trailing_whitespace_linter.

Usage

setup_lintr_config(...)

Arguments

...

Arguments passed on to lintr::use_lintr

path

Path to project root, where a .lintr file should be created. If the .lintr file already exists, an error will be thrown.

type

What kind of configuration to create?

  • tidyverse creates a minimal lintr config, based on the default linters (linters_with_defaults()). These are suitable for following the tidyverse style guide.

  • full creates a lintr config using all available linters via all_linters().

Value

Nothing, called for side effects.


baslat/sak documentation built on April 14, 2025, 4:14 p.m.