snowplow/snowplow-javascript-tracker

View on GitHub
plugins/browser-plugin-performance-timing/src/index.ts

Summary

Maintainability
A
3 hrs
Test Coverage

Function PerformanceTimingPlugin has 49 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export function PerformanceTimingPlugin(): BrowserPlugin {
  /**
   * Creates a context from the window.performance.timing object
   *
   * @returns object PerformanceTiming context
Severity: Minor
Found in plugins/browser-plugin-performance-timing/src/index.ts - About 1 hr to fix

    Function getPerformanceTimingContext has 44 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      function getPerformanceTimingContext() {
        var windowAlias = window,
          performanceAlias =
            windowAlias.performance ||
            windowAlias.mozPerformance ||
    Severity: Minor
    Found in plugins/browser-plugin-performance-timing/src/index.ts - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status