# will produce lints
lint(
text = "very_very_long_variable_name <- 1L",
linters = object_length_linter(length = 10L)
)
# okay
lint(
text = "very_very_long_variable_name <- 1L",
linters = object_length_linter(length = 30L)
)
lint(
text = "var <- 1L",
linters = object_length_linter(length = 10L)
)
Run the code above in your browser using DataLab