prantlf/backbone.composite-model

View on GitHub

Showing 4 of 6 total issues

Function mixinCompositeModel has 148 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  Backbone.mixinCompositeModel = function (prototype) {
    var originalSet = prototype.set,
        originalToJSON = prototype.toJSON;

    return _.extend(prototype, {
Severity: Major
Found in backbone.composite-model.js - About 5 hrs to fix

    Function _updateComposite has 53 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

          _updateComposite: function (attributes, options) {
            // Creates a new instance of the child model or collection
            function create(composite, parameters) {
              var createOptions = _.extend({}, composite.options, options);
              this[composite.property] = new composite.model(parameters,
    Severity: Major
    Found in backbone.composite-model.js - About 2 hrs to fix

      Function _createCompositeMap has 51 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

            _createCompositeMap: function (options) {
              // Allow specifying the composite property as a function returning
              // the actual configuration object
              var thisComposite = this.composite,
                  optionsComposite = options.composite;
      Severity: Major
      Found in backbone.composite-model.js - About 2 hrs to fix

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

        module.exports = function (config) {
        
          config.set({
        
            // karma web server should  serve static fioles from the project root
        Severity: Minor
        Found in karma-global.conf.js - About 1 hr to fix
          Severity
          Category
          Status
          Source
          Language