NateFerrero/amna

View on GitHub
examples/uploader/public/js/ng-upload.js

Summary

Maintainability
B
5 hrs
Test Coverage

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

      link: function (scope, element, attrs) {
        // Give each directive instance a new id
        iframeID++;

        function setLoadingState(state) {
Severity: Major
Found in examples/uploader/public/js/ng-upload.js - About 4 hrs to fix

    Function uploadEnd has 36 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

           function uploadEnd() {
              // unbind load after uploadEnd to prevent another load triggering uploadEnd
              iframe.unbind('load');
              if (!scope.$$phase) {
                scope.$apply(function() {
    Severity: Minor
    Found in examples/uploader/public/js/ng-upload.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status