SonarJS linter helper functions
    Preparing search index...

    Function attemptFindAppInjection

    • Checks whether the function injects an instantiated app and is exported like module.exports = function(app) {} or module.exports.property = function(app) {}, and returns app if it matches.

      Parameters

      • functionDef: Function
      • context: RuleContext
      • node: Node

      Returns undefined | Identifier