You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have a function foo() that we'd like to lint. However, foo() comes from the package foo, which is still OK, so we have the following unfortunate situation:
library(foo) # triggers a lint, but shouldn't
foo::foo() # triggers a lint, as it should
The issue is that undesirable_function_linter by default also looks for SYMBOL usage of input functions, which is good for catching usage within sapply, purrr::map, etc.
So we can add a new argument to toggle whether SYMBOL is included, and run linting with
alternatively we could treat this as a bug since it basically is a false positive. solution would be to switch to XML search in the linter & exclude parent library/require calls...
We have a function
foo()
that we'd like to lint. However,foo()
comes from the packagefoo
, which is still OK, so we have the following unfortunate situation:The issue is that
undesirable_function_linter
by default also looks forSYMBOL
usage of input functions, which is good for catching usage withinsapply
,purrr::map
, etc.So we can add a new argument to toggle whether
SYMBOL
is included, and run linting withHappy to file the PR if that sounds like a good idea.
The text was updated successfully, but these errors were encountered: