# will produce lints
lint(
text = "x <- {}",
linters = empty_assignment_linter()
)
writeLines("x = {\n}")
lint(
text = "x = {\n}",
linters = empty_assignment_linter()
)
# okay
lint(
text = "x <- { 3 + 4 }",
linters = empty_assignment_linter()
)
lint(
text = "x <- NULL",
linters = empty_assignment_linter()
)
Run the code above in your browser using DataLab