bugsnag/bugsnag-js

View on GitHub
packages/plugin-electron-app-breadcrumbs/app-breadcrumbs.js

Summary

Maintainability
A
3 hrs
Test Coverage

Function load has 50 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  load (client) {
    if (!client._isBreadcrumbTypeEnabled(BREADCRUMB_STATE)) {
      return
    }

Severity: Minor
Found in packages/plugin-electron-app-breadcrumbs/app-breadcrumbs.js - About 2 hrs to fix

    Function attachBrowserWindowListeners has 45 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    function attachBrowserWindowListeners (leaveBreadcrumb, browserWindow) {
      // the moved event fires too frequently to add a breadcrumb each time
      const onMoved = debounce(() => {
        // it's possible for the window to be destroyed at this point because we
        // debounce this callback. If we try to use 'getPosition' when the window is
    Severity: Minor
    Found in packages/plugin-electron-app-breadcrumbs/app-breadcrumbs.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status