nemesiscodex/openfonacide

View on GitHub
static/js/dncp/util/mapData/params.js

Summary

Maintainability
C
1 day
Test Coverage

File params.js has 387 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/**
 * 地图参数
 * key为地图类型: {
 *     getGeoJson: 地图数据加载
 * } 
Severity: Minor
Found in static/js/dncp/util/mapData/params.js - About 5 hrs to fix

    Function getPath has 58 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

                getPath: function (leftTop, scale) {
                    // scale.x: width  = 10.51 : 64
                    var pList = [
                        [
                            [0,3.5],[7,11.2],[15,11.9],[30,7],[42,0.7],[52,0.7],
    Severity: Major
    Found in static/js/dncp/util/mapData/params.js - About 2 hrs to fix

      Function decode has 28 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          function decode(json) {
              if (!json.UTF8Encoding) {
                  return json;
              }
              var features = json.features;
      Severity: Minor
      Found in static/js/dncp/util/mapData/params.js - About 1 hr to fix

        There are no issues that match your filters.

        Category
        Status