ericduran/chromeHAR

View on GitHub
bower_components/json3/benchmark/assets/ui.js

Summary

Maintainability
C
7 hrs
Test Coverage

File ui.js has 352 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/*!
 * ui.js
 * Copyright Mathias Bynens <http://mths.be/>
 * Modified by John-David Dalton <http://allyoucanleet.com/>
 * Available under MIT license <http://mths.be/mit>
Severity: Minor
Found in bower_components/json3/benchmark/assets/ui.js - About 4 hrs to fix

    Function render has 36 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      var render = ui.render = function render(index) {
        var iterable;
        if (index == null) {
          index = 0;
          iterable = ui.benchmarks;
    Severity: Minor
    Found in bower_components/json3/benchmark/assets/ui.js - About 1 hr to fix

      Function parseHash has 30 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

        var parseHash = ui.parseHash = function parseHash() {
          var hashes = location.hash.slice(1).split('&'),
              parameters = this.parameters || (this.parameters = {});
      
          // Clear original parameters.
      Severity: Minor
      Found in bower_components/json3/benchmark/assets/ui.js - About 1 hr to fix

        There are no issues that match your filters.

        Category
        Status