Skip to content

Commit 3a26dc7

Browse files
author
nathaneastwood
committed
fix: Remove ^ from infix spaces to conform with tidyverse. Fixes #302
1 parent 715f005 commit 3a26dc7

File tree

3 files changed

+1
-2
lines changed

3 files changed

+1
-2
lines changed

NEWS.md

+1
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@
8686
* # nolint comments are respected with caching (#68, @krlmlr)
8787
* Properly handle all knitr document formats
8888
* Allow for (( when linting (#259, @nathaneastwood)
89+
* Remove ^ from infix spaces to conform with tidyverse. (#302, @nathaneastwood)
8990

9091
# lintr 0.2.0 #
9192

R/infix_spaces_linter.R

-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ infix_tokens <- c(
1818
"EQ_SUB",
1919
"SPECIAL",
2020
"'/'",
21-
"'^'",
2221
"'*'",
2322

2423
NULL

tests/testthat/test-infix_spaces_linter.R

-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ test_that("returns the correct linting", {
1414
"->",
1515
"%%",
1616
"/",
17-
"^",
1817
"*",
1918
"**",
2019
"|",

0 commit comments

Comments
 (0)