ocadotechnology/rapid-router

View on GitHub
game/static/game/js/foundation/foundation/foundation.js

Summary

Maintainability
C
1 day
Test Coverage

File foundation.js has 460 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/*
 * Foundation Responsive Library
 * http://foundation.zurb.com
 * Copyright 2014, ZURB
 * Free to use under the MIT license.
Severity: Minor
Found in game/static/game/js/foundation/foundation/foundation.js - About 7 hrs to fix

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

          data_options : function (el, data_attr_name) {
            data_attr_name = data_attr_name || 'options';
            var opts = {}, ii, p, opts_arr,
                data_options = function (el) {
                  var namespace = Foundation.global.namespace;
    Severity: Minor
    Found in game/static/game/js/foundation/foundation/foundation.js - About 1 hr to fix

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

        window.matchMedia || (window.matchMedia = function() {
            "use strict";
      
            // For browsers that support matchMedium api such as IE 9 and webkit
            var styleMedia = (window.styleMedia || window.media);
      Severity: Minor
      Found in game/static/game/js/foundation/foundation/foundation.js - About 1 hr to fix

        Function init has 26 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            init : function (scope, libraries, method, options, response) {
              var args = [scope, method, options, response],
                  responses = [];
        
              // check RTL
        Severity: Minor
        Found in game/static/game/js/foundation/foundation/foundation.js - About 1 hr to fix

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

              init : function (scope, libraries, method, options, response) {
          Severity: Minor
          Found in game/static/game/js/foundation/foundation/foundation.js - About 35 mins to fix

            There are no issues that match your filters.

            Category
            Status