denniss17/pimatic-angular-material-frontend

View on GitHub

Showing 8 of 43 total issues

Function setupSocket has 221 lines of code (exceeds 25 allowed). Consider refactoring.
Open

            setupSocket: function () {
                var store = this.store;
                var self = this;

                if (this.socket !== null) {
Severity: Major
Found in app/adapters/websocketAdapter.js - About 1 day to fix

    File websocketAdapter.js has 371 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    angular.module('pimaticApp.adapters').factory('websocketAdapter', [
        '$http',
        '$q',
        '$rootScope',
        '$log',
    Severity: Minor
    Found in app/adapters/websocketAdapter.js - About 4 hrs to fix

      Function exports has 63 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      module.exports = function (grunt) {
      
          // Project configuration.
          grunt.initConfig({
              pkg: grunt.file.readJSON('package.json'),
      Severity: Major
      Found in Gruntfile.js - About 2 hrs to fix

        Function start has 46 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                    start: function () {
                        var self = this;
        
                        this.store.setUser(
                            {
        Severity: Minor
        Found in app/adapters/fixtureAdapter.js - About 1 hr to fix

          Function exports has 32 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          module.exports = function (config) {
              config.set({
          
                  // base path that will be used to resolve all patterns (eg. files, exclude)
                  basePath: '',
          Severity: Minor
          Found in karma.conf.js - About 1 hr to fix

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

                    get: function (type, id, skipApi) {
                        var self = this;
                        var item;
                        var date;
            
            
            Severity: Minor
            Found in app/services/store.js - About 1 hr to fix

              Function add has 30 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                      add: function (type, object, skipApi) {
                          var adapter = this.adapter;
                          var self = this;
                          var add;
              
              
              Severity: Minor
              Found in app/services/store.js - About 1 hr to fix

                Function remove has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                        remove: function (type, object, skipApi) {
                            var self = this;
                            var remove;
                
                            this.$log.debug('store', 'remove()', 'type=', type, 'object=', object, 'skipApi=', skipApi);
                Severity: Minor
                Found in app/services/store.js - About 1 hr to fix
                  Severity
                  Category
                  Status
                  Source
                  Language