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
Line 2[box_pkg_fun_exists_linter] Function not exported by package.
Line 2[box_unused_attached_pkg_fun_linter] Imported function unused.
Line 4[box_unused_attached_pkg_fun_linter] Imported function unused.
Expected result
There should be no lint errors.
The text was updated successfully, but these errors were encountered:
@jakubnowicki I think I know what's going on here. Or rather, what's not going on.
A data object from a package is being imported. We currently use getNamespaceExports() to determine what functions a package exports. This does not return data objects.
And because the unused attached package function linter assumes all the attached objects from a package are function, it is complaining that storm() is not used.
The unused str_to_upper is the same. The linter is looking for a function token with the name str_to_upper. The str_to_upper in the map_chr() call is a plain object token.
Issue 1 will need to wait for the full support for box namespace exports from {box}.
Issue 2 and 3 can be handled within the linter functions.
box.linters version
0.10.0
Sample source code to lint
Lint command used
Lint result
Expected result
There should be no lint errors.
The text was updated successfully, but these errors were encountered: