terranodo/angular-search

View on GitHub
app/controller/Main.js

Summary

Maintainability
A
2 hrs
Test Coverage

Function setupEvents has 38 lines of code (exceeds 25 allowed). Consider refactoring.
Open

            vm.setupEvents = function() {
                MapService.getMap().getView().on('change:center', function(evt){
                    mapIsMoved = !mapIsMoved ? true : false;
                });
                MapService.getMap().getView()
Severity: Minor
Found in app/controller/Main.js - About 1 hr to fix

    Function response has 26 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

                vm.response = function(response) {
                    var data = response ? response.data : undefined;
                    if (data && data.mapConfig) {
                        var mapConf = data.mapConfig,
                            appConf = data.appConfig,
    Severity: Minor
    Found in app/controller/Main.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status