src/app/lib/analyticsUtils/index.js

Summary

Maintainability
C
1 day
Test Coverage
A
97%

File index.js has 534 lines of code (exceeds 250 allowed). Consider refactoring.
Open

import Cookie from 'js-cookie';
import { v4 as uuid } from 'uuid';
import pathOr from 'ramda/src/pathOr';
import path from 'ramda/src/path';
import Url from 'url-parse';
Severity: Major
Found in src/app/lib/analyticsUtils/index.js - About 1 day to fix

    Function getDestination has 54 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    export const getDestination = (platform, statsDestination) => {
      const destinationIDs = {
        DEFAULT: 596068,
        DEFAULT_TEST: 596068,
        NEWS_PS: 598285,
    Severity: Major
    Found in src/app/lib/analyticsUtils/index.js - About 2 hrs to fix

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

      const buildRSSMarketingString = href => {
        const { query, hash } = new Url(href, true);
      
        const queryWithParams = hash ? parameteriseHash(hash) : query;
      
      
      Severity: Minor
      Found in src/app/lib/analyticsUtils/index.js - About 1 hr to fix

        There are no issues that match your filters.

        Category
        Status