atsid/schematic-js

View on GitHub
js/ModelFactory.js

Summary

Maintainability
C
1 day
Test Coverage

Function ModelWrapper has 194 lines of code (exceeds 25 allowed). Consider refactoring.
Open

            ModelWrapper = function (schema, obj, validators, options) {

                var basedOn = obj, data = obj || {}, that = this,
                    lastErrors,
                    createSubModels = options && options.createSubModels,
Severity: Major
Found in js/ModelFactory.js - About 7 hrs to fix

    File ModelFactory.js has 292 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    /**
     * @class ModelFactory
     * Factory for creating schema-based models. If Backbone exists, the factory
     * will create a schema-based Backbone model.
     */
    Severity: Minor
    Found in js/ModelFactory.js - About 3 hrs to fix

      There are no issues that match your filters.

      Category
      Status