bugsnag/bugsnag-js

View on GitHub
packages/plugin-aws-lambda/src/index.js

Summary

Maintainability
A
2 hrs
Test Coverage

Function wrapHandler has 57 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function wrapHandler (client, flushTimeoutMs, lambdaTimeoutNotifyMs, handler) {
  let _handler = handler

  if (handler.length > 2) {
    // This is a handler expecting a 'callback' argument, so we convert
Severity: Major
Found in packages/plugin-aws-lambda/src/index.js - About 2 hrs to fix

    There are no issues that match your filters.

    Category
    Status