weacast/weacast-client

View on GitHub
src/grid-viewer.js

Summary

Maintainability
A
2 hrs
Test Coverage
F
0%

Function cut has 33 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  cut () {
    let views = []
    if (this.size[0] >= this.size[1]) {
      views.push(new GridView({
        grid: this.grid,
Severity: Minor
Found in src/grid-viewer.js - About 1 hr to fix

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

      getViews () {
        let views = []
        if (this.grid.bounds[2] > 180) {
          let westSize = (this.grid.bounds[2] - 180) / this.grid.resolution[0]
          let eastSize = this.grid.size[0] - westSize
    Severity: Minor
    Found in src/grid-viewer.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status