-
Notifications
You must be signed in to change notification settings - Fork 195
Implement all_linters() wrapper to access all available linters
#1854
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 6 commits
bbdaa67
dd37a75
123c2a5
bffab55
f514cf7
e8d1031
e6047e3
7bf4b20
a180456
88d53e7
79e2319
a0605ad
8da7c64
2a55b7c
c9e38e4
930552a
41ae46a
70166c6
79a8402
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -199,14 +199,14 @@ knitr::kable(defaults_table) | |
| The default lintr configuration includes only linters relevant to the tidyverse style guide, but there are many other linters available in `{lintr}`. You can see a list of all available linters using | ||
|
|
||
| ```{r} | ||
| names(lintr::linters_with_tags(tags = NULL)) | ||
| names(lintr::all_linters()) | ||
| ``` | ||
|
|
||
| If you want to use all available linters, you can include this in your `.lintr` file: | ||
|
|
||
| ```r | ||
| linters: linters_with_defaults( | ||
IndrajeetPatil marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| defaults = linters_with_tags(tags = NULL) | ||
| defaults = all_linters() | ||
| ) | ||
| ``` | ||
|
||
|
|
||
|
|
@@ -216,7 +216,7 @@ If you want to use all available linters *except* a few, you can exclude them us | |
| linters: linters_with_defaults( | ||
| commented_code_linter = NULL, | ||
| implicit_integer_linter = NULL, | ||
| defaults = linters_with_tags(tags = NULL) | ||
| defaults = all_linters() | ||
AshesITR marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| ) | ||
| ``` | ||
|
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.