Generics defined in other files not detected by object_name_linter()
and object_length_linter()
#1808
Labels
false-positive
code that shouldn't lint, but does
R/generic.R
R/other.R
Should not be linted by
object_name_linter()
, andobject_length_linter()
should only consider"other"
for length computations.I can see multiple options here:
NAMESPACE
file forS3method(my_generic,<anything>)
to deducemy_generic
must be an S3 genericThe former also works for non packages but is more expensive.
The latter should be easier, using
unique(parseNamespaceFile("package", "..")$S3methods[, 1L])
similar tonamespace_imports()
.The text was updated successfully, but these errors were encountered: