snowplow/snowplow-javascript-tracker

View on GitHub
plugins/browser-plugin-media-tracking/src/entities.ts

Summary

Maintainability
A
1 hr
Test Coverage

Function buildHTMLMediaElementEntity has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export function buildHTMLMediaElementEntity(el: HTMLAudioElement | HTMLVideoElement): SelfDescribingJson {
  const data: MediaElement = {
    // htmlId is a required property in the schema, but may not be present if
    // the user provided the element themselves
    htmlId: el.id || '',
Severity: Minor
Found in plugins/browser-plugin-media-tracking/src/entities.ts - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status