pacificclimate/climate-explorer-frontend

View on GitHub
src/core/geo.js

Summary

Maintainability
A
2 hrs
Test Coverage

Function save has 31 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  save: function (format) {
    switch (format) {
      case "wkt":
        saveAs(
          new Blob([this.toWKT()], { type: "text/plain;charset=utf-8" }),
Severity: Minor
Found in src/core/geo.js - About 1 hr to fix

    Function createZippedShapefile has 29 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    function createZippedShapefile(gj, options) {
      // Alternate to function `zip` in `shp-write/src/zip`, but with option to
      // store files in root of zipped shapefile.
      //
      // All behaviour is the same as the original function, with the exception
    Severity: Minor
    Found in src/core/geo.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status