RLOpenCatalyst/core

View on GitHub
client/cat3/customlib/angular-messages.js

Summary

Maintainability
C
1 day
Test Coverage

Function controller has 111 lines of code (exceeds 25 allowed). Consider refactoring.
Open

       controller: ['$element', '$scope', '$attrs', function($element, $scope, $attrs) {
         var ctrl = this;
         var latestKey = 0;

         var messages = this.messages = {};
Severity: Major
Found in client/cat3/customlib/angular-messages.js - About 4 hrs to fix

    Function ngMessageDirectiveFactory has 62 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    function ngMessageDirectiveFactory(restrict) {
      return ['$animate', function($animate) {
        return {
          restrict: 'AE',
          transclude: 'element',
    Severity: Major
    Found in client/cat3/customlib/angular-messages.js - About 2 hrs to fix

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

            link: function(scope, element, attrs, ngMessagesCtrl, $transclude) {
              var commentNode = element[0];
      
              var records;
              var staticExp = attrs.ngMessage || attrs.when;
      Severity: Minor
      Found in client/cat3/customlib/angular-messages.js - About 1 hr to fix

        Function render has 37 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                 this.render = function(collection) {
                   collection = collection || {};
        
                   renderLater = false;
                   cachedCollection = collection;
        Severity: Minor
        Found in client/cat3/customlib/angular-messages.js - About 1 hr to fix

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

                link: function(scope, element, attrs, ngMessagesCtrl, $transclude) {
          Severity: Minor
          Found in client/cat3/customlib/angular-messages.js - About 35 mins to fix

            There are no issues that match your filters.

            Category
            Status