fga-gpp-mds/2017.1-OndeE-UnB

View on GitHub
darcyWeb/app/assets/javascripts/map/data/rooms.js

Summary

Maintainability
A
3 hrs
Test Coverage

Function loadRooms has 64 lines of code (exceeds 25 allowed). Consider refactoring.
Open

var loadRooms = function loadRooms(buildingKey) {
  $.get("/map/data/rooms/" + buildingKey, function(data) { //getting the json data

    var rooms = {
      "type": "FeatureCollection",
Severity: Major
Found in darcyWeb/app/assets/javascripts/map/data/rooms.js - About 2 hrs to fix

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

    const roomColor = function color(type) {
      var color = "#3F51B5";
      switch (type) {
        case "classroom":
          color = "#2196F3";
    Severity: Minor
    Found in darcyWeb/app/assets/javascripts/map/data/rooms.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status