unageanu/container-js

View on GitHub

Showing 6 of 63 total issues

File deferred.js has 253 lines of code (exceeds 250 allowed). Consider refactoring.
Open

define( function(){

    "use strict";

    /**
Severity: Minor
Found in src/containerjs/utils/deferred.js - About 2 hrs to fix

    Function MODULE_PER_PACKAGE has 33 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        policies.MODULE_PER_PACKAGE = Object.freeze( Object.create( PackagingPolicy, function(){
            
            /** @private */
            var getComponentName = function( componentName ) {
                assertValidComponentName( componentName );
    Severity: Minor
    Found in src/containerjs/packaging-policy.js - About 1 hr to fix

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

          Deferred.lazy = function( procedure, self, args ) {
              var d = new Deferred();
              var start = function() {
                  try {
                      var result = procedure.apply(self, args);
      Severity: Minor
      Found in src/containerjs/utils/deferred.js - About 1 hr to fix

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

            Binding.prototype.resolveProperties = function( collection, container, valueKey, requestId ) {
                var deferreds = [];
                if ( !collection ) return Deferred.valueOf(collection);
                if ( collection.forEach ) {
                    collection.forEach( function( val ){
        Severity: Minor
        Found in src/containerjs/bindings/binding.js - About 1 hr to fix

          Function _gets has 29 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              var _gets = function(name, parentId) {
                  var bindings = null;
                  try {
                      bindings = this.getBindings(name);
                  } catch ( e ) {
          Severity: Minor
          Found in src/containerjs/container.js - About 1 hr to fix

            Function create has 5 arguments (exceeds 4 allowed). Consider refactoring.
            Open

                Todo.create = function( timeSource, title, 
                        completed, createdAt, lastModified ) {
            Severity: Minor
            Found in samples/todo-list/src/js/models/todo.js - About 35 mins to fix
              Severity
              Category
              Status
              Source
              Language