Skip to content

Commit 97c76ea

Browse files
Fix typos (#2256)
* Fix typos * Update test-object_name_linter.R * Update test-object_name_linter.R * Update test-paren_brace_linter.R
1 parent 1493c5e commit 97c76ea

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

tests/testthat/test-exclusions.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ test_that("next-line exclusion works", {
157157
withr::local_options(
158158
lintr.exclude = "# NL",
159159
lintr.exclude_next = "# NLN",
160-
lintr.exlcude_linter = default_settings$exclude_linter
160+
lintr.exclude_linter = default_settings$exclude_linter
161161
)
162162

163163
linter <- assignment_linter()

tests/testthat/test-object_name_linter.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
test_that("styles are correctly identified", {
33
do_style_check <- function(nms) lapply(unname(style_regexes), lintr:::check_style, nms = nms)
44

5-
# symbl UpC lowC snake SNAKE dot allow ALLUP
5+
# symbl UpC lowC snake SNAKE dot alllow ALLUP
66
expect_identical(do_style_check("x"), list(FALSE, FALSE, TRUE, TRUE, FALSE, TRUE, TRUE, FALSE))
77
expect_identical(do_style_check(".x"), list(FALSE, FALSE, TRUE, TRUE, FALSE, TRUE, TRUE, FALSE))
88
expect_identical(do_style_check("X"), list(FALSE, TRUE, FALSE, FALSE, TRUE, FALSE, FALSE, TRUE))

tests/testthat/test-paren_brace_linter.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ test_that("returns the correct linting", {
3333
# paren_brace_linter should ignore strings and comments, as in regexes:
3434
expect_lint("grepl('(iss){2}', 'Mississippi')", NULL, linter)
3535
expect_lint(
36-
"x <- 123 # dont flag (paren){brace} if inside a comment",
36+
"x <- 123 # don't flag (paren){brace} if inside a comment",
3737
NULL,
3838
linter
3939
)

0 commit comments

Comments
 (0)