Skip to content

Commit

Permalink
keep vector names
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelChirico authored Dec 5, 2023
1 parent 8ee76fe commit d54b5f7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .dev/lint_metadata_test.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,12 @@
# runs the test suite, and finds linters that nevertheless pass all their tests.
library(testthat)

line_replacements <- paste("line_number =", c(
line_replacements <- c(
`R/xml_nodes_to_lints.R` = "as.integer(line1)",
`R/path_utils.R` = 'token[["line1"]]'
))
)
# paste() strips names so be sure to keep them
line_replacements[] <- paste("line_number =", line_replacements)

originals <- lapply(names(line_replacements), readLines)

Expand Down

0 comments on commit d54b5f7

Please sign in to comment.