-
Notifications
You must be signed in to change notification settings - Fork 195
Document default settings #1648
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 3 commits
3b43ef0
a352dcc
ffaae3f
8d6d89a
5577711
97dd569
af3ae53
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -234,6 +234,38 @@ default_undesirable_operators <- all_undesirable_operators[names(all_undesirable | |
| )] | ||
|
|
||
| #' Default lintr settings | ||
| #' | ||
| #' @description | ||
| #' The default settings consist of | ||
| #' | ||
| #' - `linters`: a list of default linters (see [default_linters()]) | ||
| #' - `encoding`: the character encoding assumed for the file | ||
| #' - `exclude`: pattern used to exclude a line of code | ||
| #' - `exclude_start`, `exclude_end`: patterns used to mark start and of the code block to exclude | ||
| #' - `exclude_linter`, `exclude_linter_sep`: patterns used to exclude linters | ||
| #' - `exclusions`:a list of files to exclude | ||
| #' - `cache_directory`: location of cache directory | ||
| #' - `comment_token`: a GitHub token character | ||
| #' - `comment_bot`: decides if lintr comment bot on GitHub can comment on commits | ||
| #' - `error_on_lint`: decides if error should be produced when any lints are found | ||
| #' | ||
| #' @examples | ||
| #' # available settings | ||
| #' names(default_settings) | ||
| #' | ||
| #' # linters included by default | ||
| #' names(default_settings$linters) | ||
| #' | ||
| #' # default values for a few of the other settings | ||
| #' default_settings$encoding | ||
|
||
| #' default_settings$exclude | ||
| #' default_settings$exclude_start | ||
| #' default_settings$exclude_end | ||
| #' default_settings$exclude_linter | ||
| #' default_settings$exclude_linter_sep | ||
| #' default_settings$exclusions | ||
| #' default_settings$error_on_lint | ||
| #' | ||
| #' @seealso [read_settings()], [default_linters] | ||
| #' @export | ||
| default_settings <- NULL | ||
|
|
||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Uh oh!
There was an error while loading. Please reload this page.