myems-admin/js/angular/angular-aria.js

Summary

Maintainability
C
1 day
Test Coverage

Function compile has 75 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    compile: function(elem, attr) {
      if (attr.hasOwnProperty(ARIA_DISABLE_ATTR)) return;

      var shape = getShape(attr, elem);

Severity: Major
Found in myems-admin/js/angular/angular-aria.js - About 3 hrs to fix

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

            post: function(scope, elem, attr, ngModel) {
              var needsTabIndex = shouldAttachAttr('tabindex', 'tabindex', elem, false);
    
              function ngAriaWatchModelValue() {
                return ngModel.$modelValue;
    Severity: Major
    Found in myems-admin/js/angular/angular-aria.js - About 2 hrs to fix

      Function $AriaProvider has 35 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      function $AriaProvider() {
        var config = {
          ariaHidden: true,
          ariaChecked: true,
          ariaReadonly: true,
      Severity: Minor
      Found in myems-admin/js/angular/angular-aria.js - About 1 hr to fix

        Function compile has 26 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            compile: function(elem, attr) {
              if (attr.hasOwnProperty(ARIA_DISABLE_ATTR)) return;
        
              var fn = $parse(attr.ngClick);
              return function(scope, elem, attr) {
        Severity: Minor
        Found in myems-admin/js/angular/angular-aria.js - About 1 hr to fix

          There are no issues that match your filters.

          Category
          Status