Skip to content

Commit 0c05793

Browse files
committed
[chore] Fix lint errors
Fix lint errors after formatting moved around exclusion comments.
1 parent 1452079 commit 0c05793

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

R/geom-rangeframe.R

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@ geom_rangeframe <- function(
5858
#' @export
5959
#' @importFrom ggplot2 Geom
6060
#' @importFrom scales alpha
61+
# nolint start: object_name_linter
6162
GeomRangeFrame <- ggplot2::ggproto(
62-
# nolint
63-
"GeomRangeFrame", # nolint: object_name_linter
63+
"GeomRangeFrame",
6464
ggplot2::Geom,
6565
optional_aes = c("x", "y"),
6666
draw_panel = function(data, panel_scales, coord, sides = "bl") {
@@ -136,3 +136,4 @@ GeomRangeFrame <- ggplot2::ggproto(
136136
),
137137
draw_key = ggplot2::draw_key_path
138138
)
139+
# nolint end: object_name_linter

R/scales.R

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# Much of this code is copied from the labeling package.
2+
# nolint start: object_name_linter
23
.simplicity <- function(q, Q, j, lmin, lmax, lstep) {
3-
# nolint
4-
# nolint: object_name_linter
54
eps <- .Machine$double.eps * 100
65

76
n <- length(Q)
@@ -18,8 +17,6 @@
1817
}
1918

2019
.simplicity_max <- function(q, Q, j) {
21-
# nolint
22-
# nolint: object_name_linter
2320
n <- length(Q)
2421
i <- match(q, Q)[1]
2522
v <- 1
@@ -262,3 +259,5 @@ smart_digits <- function(x, ...) {
262259
smart_digits_format <- function(x, ...) {
263260
function(x) smart_digits(x, ...)
264261
}
262+
263+
# nolint end: object_name_linter

R/stat-fivenumber.R

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ has_groups <- function(data) {
5151
data$group[1L] != NO_GROUP
5252
}
5353

54+
# nolint start: object_name_linter
5455
#' @export
5556
#' @format NULL
5657
#' @usage NULL
@@ -120,3 +121,4 @@ StatFivenumber <- ggplot2::ggproto(
120121
df
121122
}
122123
)
124+
# nolint end: object_name_linter

0 commit comments

Comments
 (0)