bronycub/sugarcub

View on GitHub
core/static/vendor/cookieconsent2/cookieconsent.js

Summary

Maintainability
B
5 hrs
Test Coverage

Function DomBuilder has 64 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  var DomBuilder = (function () {
    /*
     The attribute we store events in.
     */
    var eventAttribute = 'data-cc-event';
Severity: Major
Found in core/static/vendor/cookieconsent2/cookieconsent.js - About 2 hrs to fix

    File cookieconsent.js has 251 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    (function () {
      // Stop from running again, if accidently included more than once.
      if (window.hasCookieConsent) return;
      window.hasCookieConsent = true;
    
    
    Severity: Minor
    Found in core/static/vendor/cookieconsent2/cookieconsent.js - About 2 hrs to fix

      Function setCookie has 5 arguments (exceeds 4 allowed). Consider refactoring.
      Open

          setCookie: function (name, value, expiryDays, domain, path) {
      Severity: Minor
      Found in core/static/vendor/cookieconsent2/cookieconsent.js - About 35 mins to fix

        There are no issues that match your filters.

        Category
        Status