Skip to content

Commit

Permalink
Fix typos (#2256)
Browse files Browse the repository at this point in the history
* Fix typos

* Update test-object_name_linter.R

* Update test-object_name_linter.R

* Update test-paren_brace_linter.R
  • Loading branch information
MichaelChirico committed Nov 8, 2023
1 parent 1493c5e commit 97c76ea
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/testthat/test-exclusions.R
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ test_that("next-line exclusion works", {
withr::local_options(
lintr.exclude = "# NL",
lintr.exclude_next = "# NLN",
lintr.exlcude_linter = default_settings$exclude_linter
lintr.exclude_linter = default_settings$exclude_linter
)

linter <- assignment_linter()
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-object_name_linter.R
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
test_that("styles are correctly identified", {
do_style_check <- function(nms) lapply(unname(style_regexes), lintr:::check_style, nms = nms)

# symbl UpC lowC snake SNAKE dot allow ALLUP
# symbl UpC lowC snake SNAKE dot alllow ALLUP
expect_identical(do_style_check("x"), list(FALSE, FALSE, TRUE, TRUE, FALSE, TRUE, TRUE, FALSE))
expect_identical(do_style_check(".x"), list(FALSE, FALSE, TRUE, TRUE, FALSE, TRUE, TRUE, FALSE))
expect_identical(do_style_check("X"), list(FALSE, TRUE, FALSE, FALSE, TRUE, FALSE, FALSE, TRUE))
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-paren_brace_linter.R
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ test_that("returns the correct linting", {
# paren_brace_linter should ignore strings and comments, as in regexes:
expect_lint("grepl('(iss){2}', 'Mississippi')", NULL, linter)
expect_lint(
"x <- 123 # dont flag (paren){brace} if inside a comment",
"x <- 123 # don't flag (paren){brace} if inside a comment",
NULL,
linter
)
Expand Down

0 comments on commit 97c76ea

Please sign in to comment.