OpenFn/OpenFn-Site

View on GitHub
app/assets/javascripts/the_bridge_ng/directives/packery.js

Summary

Maintainability
B
6 hrs
Test Coverage

Function packeryController has 61 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  var packeryController = function ($rootScope, config, service) {

    var self = this;

    self.packeryInstantiated = false;
Severity: Major
Found in app/assets/javascripts/the_bridge_ng/directives/packery.js - About 2 hrs to fix

    Function packeryDirective has 46 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      var packeryDirective = function (config, service) {
    
        return {
          restrict: 'EAC',
          controller: 'PackeryController',
    Severity: Minor
    Found in app/assets/javascripts/the_bridge_ng/directives/packery.js - About 1 hr to fix

      Function packeryService has 39 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

        var packeryService = function($rootScope, $q, $interval, $timeout, config) {
          var created = [],
              packeryObj;
      
          var uniqueId = function(obj, list) {
      Severity: Minor
      Found in app/assets/javascripts/the_bridge_ng/directives/packery.js - About 1 hr to fix

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

          var packeryService = function($rootScope, $q, $interval, $timeout, config) {
        Severity: Minor
        Found in app/assets/javascripts/the_bridge_ng/directives/packery.js - About 35 mins to fix

          There are no issues that match your filters.

          Category
          Status