linagora/openpaas-esn

View on GitHub
frontend/js/modules/attachment/attachment.controller.js

Summary

Maintainability
A
2 hrs
Test Coverage

Function ESNAttachmentController has 41 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  function ESNAttachmentController($compile, $element, $scope, $log, esnAttachmentViewerService, esnAttachmentViewerGalleryService, esnAttachmentRegistryService) {
    var self = this;
    var hasPreview;
    var hasViewer;

Severity: Minor
Found in frontend/js/modules/attachment/attachment.controller.js - About 1 hr to fix

    Function ESNAttachmentController has 7 arguments (exceeds 4 allowed). Consider refactoring.
    Open

      function ESNAttachmentController($compile, $element, $scope, $log, esnAttachmentViewerService, esnAttachmentViewerGalleryService, esnAttachmentRegistryService) {
    Severity: Major
    Found in frontend/js/modules/attachment/attachment.controller.js - About 50 mins to fix

      There are no issues that match your filters.

      Category
      Status