object_name_linter
and object_length_linter
are both applying to any string literal and not just object names. I didn't expect it to apply to all strings (including file names, labels, or messages printed out). Am I missing something, or should I just not use those rules if I don't want excessive warnings?
For example, this triggers object_name_linter, but I don't understand how it should be considered an object name. Can lintr not distinguish between object names and string literals?
print("Here's a message.")
I've looked through lintr docs (at the specific rules and searched for "string") and SO/web, but cannot find an answer.