lint enhancements

prevent false positives for user-defined functions defined in the global
namespace but called from a non-global namespace.