Skip to content
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

Remove false positive in non-portable path linter #1452

Closed
wants to merge 9 commits into from
7 changes: 7 additions & 0 deletions tests/testthat/test-nonportable_path_linter.R
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,11 @@ test_that("Non-portable path linter", {
expect_lint(single_quote(path), NULL, linter)
expect_lint(double_quote(path), NULL, linter)
}

# #1356
expect_lint(
"grepl('[a/b] c', x, fixed = TRUE)",
NULL,
linter
)
})