platanus/angular-restmod

View on GitHub

Showing 8 of 33 total issues

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

module.exports = function(grunt) {

  // Project configuration.
  grunt.initConfig({
    pkg: grunt.file.readJSON('bower.json'),
Severity: Major
Found in Gruntfile.js - About 7 hrs to fix

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

    module.exports = function(config) {
      config.set({
    
        // Base path, that will be used to resolve files and exclude
        basePath: '',
    Severity: Major
    Found in karma-sauce.conf.js - About 3 hrs to fix

      Function Builder has 69 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

        function Builder(_baseDsl) {
      
          var mappings = [
            { fun: 'attrDefault', sign: ['init'] },
            { fun: 'attrMask', sign: ['ignore'] },
      Severity: Major
      Found in src/module/builder.js - About 2 hrs to fix

        Function $save has 56 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            $save: function(_patch) {
              return this.$action(function() {
                var url = this.$url('update'), request;
        
                if(url) {
        Severity: Major
        Found in src/module/api/record-api.js - About 2 hrs to fix

          Function attrAsCollection has 7 arguments (exceeds 4 allowed). Consider refactoring.
          Open

              attrAsCollection: function(_attr, _model, _url, _source, _inverseOf, _params, _hooks) {
          Severity: Major
          Found in src/module/extended/builder-relations.js - About 50 mins to fix

            Avoid deeply nested control flow statements.
            Open

                        } else if(VAR_RGX.test(_attr)) {
                          $log.warn('Usage of ~ in description objects will be removed in 1.2, use a $config block instead');
                          _attr = inflector.camelize(_attr.toLowerCase());
                          this.setProperty(_attr, _desc);
                        }
            Severity: Major
            Found in src/module/builder.js - About 45 mins to fix

              Avoid deeply nested control flow statements.
              Open

                            for(var key in _desc) {
                              if(_desc.hasOwnProperty(key)) this.on(key, _desc[key]);
                            }
              Severity: Major
              Found in src/module/builder.js - About 45 mins to fix

                Avoid deeply nested control flow statements.
                Open

                                if(_desc.hasOwnProperty(key)) this.define(key, _desc[key]);
                Severity: Major
                Found in src/module/builder.js - About 45 mins to fix
                  Severity
                  Category
                  Status
                  Source
                  Language