Skip to content

Commit

Permalink
add symobls style to default object_name_linter.
Browse files Browse the repository at this point in the history
fixes #670
  • Loading branch information
AshesITR committed Dec 5, 2020
1 parent 39c4946 commit c127dd1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
* `object_name_linter()` now excludes special R hook functions such as `.onLoad` (#500, #614, @AshesITR and @michaelchirico)
* `equals_na_linter()` now lints `x != NA` and `NA == x`, and skips usages in comments (#545, @michaelchirico)
* Malformed Rmd files now cause a lint instead of an error (#571, #575, @AshesITR)
* `object_name_linter()` gains a new default style, `"symbols"`, which won't lint all-symbol object names (in particular, that means operator names like `%+%` are skipped; #615, @michaelchirico)
* `object_name_linter()` gains a new default style, `"symbols"`, which won't lint all-symbol object names
(in particular, that means operator names like `%+%` are skipped; #615, #670, @michaelchirico and @AshesITR)
* `spaces_inside_linter` ignores spaces preceding trailing comments (#636, @michaelchirico)
* `T_and_F_symbol_linter` is now part of the default linters (#517, #612, @AshesITR)
* `with_defaults()` no longer duplicates the `lintr_function` class when it is already present (#511, #612, @AshesITR)
Expand Down
2 changes: 1 addition & 1 deletion R/zzz.R
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ default_linters <- with_defaults(
line_length_linter(80),
no_tab_linter,
object_length_linter(),
object_name_linter("snake_case"),
object_name_linter(c("snake_case", "symbols")),
object_usage_linter,
open_curly_linter(),
paren_brace_linter,
Expand Down

0 comments on commit c127dd1

Please sign in to comment.