Skip to content

Commit

Permalink
chore: Minor documentation fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
jakubnowicki committed Mar 8, 2024
1 parent a84f975 commit 7958999
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 13 deletions.
9 changes: 2 additions & 7 deletions R/box_linters.R
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,10 @@
#' )
#'
#' lintr::lint(
#' text = "box::use(package[one, two, three])",
#' linters = box_alphabetical_calls_linter()
#' )
#'
#' lintr::lint(
#' text = "box::use(package[functionA, functionB])",
#' linters = box_alphabetical_calls_linter()
#' )
#'
#'
#' lintr::lint(
#' text = "box::use(path/to/A, path/to/B)",
#' linters = box_alphabetical_calls_linter()
Expand All @@ -69,7 +64,7 @@
#' @export
# nolint end
box_alphabetical_calls_linter <- function() {
xpath_base <- "//SYMBOL_PACKAGE[(text() = 'box' and
xpath_base <- "//SYMBOL_PACKAGE[(text() = 'box' and
following-sibling::SYMBOL_FUNCTION_CALL[text() = 'use'])]
/parent::expr
/parent::expr"
Expand Down
5 changes: 0 additions & 5 deletions man/box_alphabetical_calls_linter.Rd

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

2 changes: 1 addition & 1 deletion vignettes/explanation/rhino-style-guide.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ box::use(
# Bad
box::use(
a_pkg = shiny,
rhino[a_fun = react_component, log]
rhino[a_fun = react_component, log],
)
```

Expand Down

0 comments on commit 7958999

Please sign in to comment.