Skip to content

Commit 90bc6b6

Browse files
authored
Merge pull request #321 from dchiu911/master
Remove spaces around infix operator ^
2 parents fe4104a + 776ae1c commit 90bc6b6

File tree

3 files changed

+1
-3
lines changed

3 files changed

+1
-3
lines changed

NEWS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@
9090
* # nolint comments are respected with caching (#68, @krlmlr)
9191
* Properly handle all knitr document formats
9292
* Allow for (( when linting (#259, @nathaneastwood)
93+
* Remove ^ from infix spaces to conform with tidyverse. (#302, @nathaneastwood)
9394

9495
# lintr 0.2.0 #
9596

R/infix_spaces_linter.R

Lines changed: 0 additions & 1 deletion
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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,7 @@ test_that("returns the correct linting", {
1414
"->",
1515
"%%",
1616
"/",
17-
"^",
1817
"*",
19-
"**",
2018
"|",
2119
"||",
2220
"&",

0 commit comments

Comments
 (0)