Skip to content

Commit

Permalink
clean up lints (#71)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmbarbone committed Dec 5, 2024
1 parent 767e629 commit 8e9581b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion R/condition.R
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@
#' # message contains package information at the end
#' try(stop(x))
#' @export
new_condition <- function( # nolint cyclocomp_linter,
# nolint next: cyclocomp_linter,
new_condition <- function(
msg = "",
class = NULL,
call = NULL,
Expand Down
3 changes: 2 additions & 1 deletion R/data-frame.R
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ quick_df <- function(x = NULL) {
struct(
x = x,
class = "data.frame",
names = names(x) %||% make.names(1:length(x)), # nolint seq_linter
# # nolint next: seq_linter
names = names(x) %||% make.names(1:length(x)),
row.names = c(NA_integer_, -n)
)
}
Expand Down
3 changes: 2 additions & 1 deletion R/flip.R
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,8 @@ flip.data.frame <- function(
}

if (!keep_rownames) {
attr(out, "row.names") <- rn # nolint object_name_linter
# nolint next: object_name_linter
attr(out, "row.names") <- rn
}
},
columns = {
Expand Down

0 comments on commit 8e9581b

Please sign in to comment.