Skip to content

Commit

Permalink
Merge branch 'main' into test-linters-tags
Browse files Browse the repository at this point in the history
  • Loading branch information
IndrajeetPatil authored Sep 7, 2024
2 parents 9ff8e37 + 927157a commit 03c61a4
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
11 changes: 11 additions & 0 deletions R/redundant_equals_linter.R
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@
#' linters = redundant_equals_linter()
#' )
#'
#' lint(
#' text = "dt[is_tall == FALSE, y]",
#' linters = redundant_equals_linter()
#' )
#'
#' # okay
#' lint(
#' text = "if (any(x)) 1",
Expand All @@ -30,6 +35,12 @@
#' linters = redundant_equals_linter()
#' )
#'
#' # in `{data.table}` semantics, `dt[x]` is a join, `dt[(x)]` is a subset
#' lint(
#' text = "dt[(!is_tall), y]",
#' linters = redundant_equals_linter()
#' )
#'
#' @evalRd rd_tags("redundant_equals_linter")
#' @seealso
#' - [linters] for a complete list of linters available in lintr.
Expand Down
11 changes: 11 additions & 0 deletions man/redundant_equals_linter.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 03c61a4

Please sign in to comment.