SonarJS linter helper functions
    Preparing search index...

    Function attemptFindAppInstantiation

    • Checks whether the declaration looks somewhat like <id> = express() and returns <id> if it matches.

      Parameters

      • varDecl: VariableDeclarator
      • context: RuleContext

      Returns undefined | Identifier