jakubrohleder/angular-jsonapi

View on GitHub

Showing 61 of 126 total issues

Function AngularJsonAPIAbstractModelWrapper has 488 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  function AngularJsonAPIAbstractModelWrapper(
    AngularJsonAPIModelSourceError,
    AngularJsonAPIModelValidationError,
    AngularJsonAPIModelErrorsManager,
    AngularJsonAPIModelLinkerService,
Severity: Major
Found in src/model/abstract-model/abstract-model.js - About 2 days to fix

    Function AngularJsonAPIModelLinkerService has 271 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      function AngularJsonAPIModelLinkerService($log) {
        var _this = this;
    
        _this.toLinkData = toLinkData;
    
    
    Severity: Major
    Found in src/model/model-linker/model-linker.js - About 1 day to fix

      File abstract-model.js has 525 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      (function() {
        'use strict';
      
        angular.module('angular-jsonapi')
        .factory('AngularJsonAPIAbstractModel', AngularJsonAPIAbstractModelWrapper);
      Severity: Major
      Found in src/model/abstract-model/abstract-model.js - About 1 day to fix

        Function AngularJsonAPISourceRestWrapper has 182 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

          function AngularJsonAPISourceRestWrapper(
            AngularJsonAPIModelSourceError,
            AngularJsonAPISourcePrototype,
            AngularJsonAPIModelLinkerService,
            toKebabCase,
        Severity: Major
        Found in src/sources/rest/source-rest.factory.js - About 7 hrs to fix

          Function AngularJsonAPIResourceCacheWrapper has 144 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

            function AngularJsonAPIResourceCacheWrapper(
              uuid4,
              $log
            ) {
          
          
          Severity: Major
          Found in src/resource/resource-cache/resource-cache.factory.js - About 5 hrs to fix

            Function AngularJsonAPISourceRest has 129 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                function AngularJsonAPISourceRest(name, url) {
                  var _this = this;
                  var headers = { // jscs:disable disallowQuotedKeysInObjects
                    'Accept': 'application/vnd.api+json',
                    'Content-Type': 'application/vnd.api+json'
            Severity: Major
            Found in src/sources/rest/source-rest.factory.js - About 5 hrs to fix

              Function AngularJsonAPICollectionWrapper has 126 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                function AngularJsonAPICollectionWrapper(
                  AngularJsonAPIModelSourceError,
                  AngularJsonAPIModelErrorsManager,
                  $rootScope,
                  $injector,
              Severity: Major
              Found in src/collection/collection.factory.js - About 5 hrs to fix

                Function AngularJsonAPIResourceWrapper has 122 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                  function AngularJsonAPIResourceWrapper(
                    AngularJsonAPIModel,
                    AngularJsonAPISchema,
                    AngularJsonAPIResourceCache,
                    AngularJsonAPICollection,
                Severity: Major
                Found in src/resource/resource.factory.js - About 4 hrs to fix

                  Function AngularJsonAPIModelFormWrapper has 113 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                    function AngularJsonAPIModelFormWrapper(
                      AngularJsonAPIModelValidationError,
                      AngularJsonAPIModelLinkerService,
                      validateJS,
                      $q
                  Severity: Major
                  Found in src/model/model-form/model-form.factory.js - About 4 hrs to fix

                    Function AngularJsonAPISourceParseWrapper has 97 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                      function AngularJsonAPISourceParseWrapper(
                        AngularJsonAPIModelSourceError,
                        AngularJsonAPISourcePrototype,
                        AngularJsonAPIModelLinkerService,
                        pluralize,
                    Severity: Major
                    Found in src/sources/parse/source-parse.factory.js - About 3 hrs to fix

                      Function AngularJsonAPISynchronizerSimpleWrapper has 89 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                        function AngularJsonAPISynchronizerSimpleWrapper(AngularJsonAPISynchronizerPrototype, $q, $log) {
                      
                          AngularJsonAPISynchronizerSimple.prototype = Object.create(AngularJsonAPISynchronizerPrototype.prototype);
                          AngularJsonAPISynchronizerSimple.prototype.constructor = AngularJsonAPISynchronizerSimple;
                      
                      
                      Severity: Major
                      Found in src/synchronizers/synchronizer-simple.factory.js - About 3 hrs to fix

                        Function AngularJsonAPISourceParse has 83 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            function AngularJsonAPISourceParse(name, table) {
                              var _this = this;
                        
                              _this.ParseObject = Parse.Object.extend(table);
                              _this.type = pluralize(table).charAt(0).toLowerCase() + pluralize(table).slice(1);
                        Severity: Major
                        Found in src/sources/parse/source-parse.factory.js - About 3 hrs to fix

                          Function jsonapiProvider has 75 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                            function jsonapiProvider(validateJS) {
                              var memory = {};
                              var names = [];
                              this.$get = jsonapiFactory;
                          
                          
                          Severity: Major
                          Found in src/jsonapi.provider.js - About 3 hrs to fix

                            Function __setData has 74 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                function __setData(object, validatedData) {
                            
                                  var $jsonapi = $injector.get('$jsonapi');
                                  var schema = object.schema;
                            
                            
                            Severity: Major
                            Found in src/model/abstract-model/abstract-model.js - About 2 hrs to fix

                              Function synchronize has 70 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  function synchronize(config) {
                                    var _this = this;
                                    var promises = [];
                                    var deferred = $q.defer();
                                    var action = config.action;
                              Severity: Major
                              Found in src/synchronizers/synchronizer-simple.factory.js - About 2 hrs to fix

                                File model-linker.js has 278 lines of code (exceeds 250 allowed). Consider refactoring.
                                Open

                                (function() {
                                  'use strict';
                                
                                  angular.module('angular-jsonapi')
                                  .service('AngularJsonAPIModelLinkerService', AngularJsonAPIModelLinkerService);
                                Severity: Minor
                                Found in src/model/model-linker/model-linker.js - About 2 hrs to fix

                                  Function jsonapiFactory has 66 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      function jsonapiFactory(
                                        $log,
                                        AngularJsonAPIResource,
                                        AngularJsonAPISynchronizerSimple
                                      ) {
                                  Severity: Major
                                  Found in src/jsonapi.provider.js - About 2 hrs to fix

                                    Function AngularJsonAPISourceLocalWrapper has 66 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                      function AngularJsonAPISourceLocalWrapper(
                                        AngularJsonAPISourcePrototype,
                                        $window,
                                        $q
                                      ) {
                                    Severity: Major
                                    Found in src/sources/local/source-local.factory.js - About 2 hrs to fix

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

                                        function AngularJsonAPISourcePrototypeWrapper() {
                                          AngularJsonAPISourcePrototype.prototype.before = beforeSynchro;
                                          AngularJsonAPISourcePrototype.prototype.after = afterSynchro;
                                          AngularJsonAPISourcePrototype.prototype.begin = begin;
                                          AngularJsonAPISourcePrototype.prototype.finish = finish;
                                      Severity: Major
                                      Found in src/sources/source-prototype.js - About 2 hrs to fix

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

                                            function link(key, target) {
                                              var deferred = $q.defer();
                                              var _this = this;
                                              var error;
                                              var config = {
                                        Severity: Major
                                        Found in src/model/abstract-model/abstract-model.js - About 2 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language