terranodo/angular-search

View on GitHub
app/components/histogram/HistogramDirective.js

Summary

Maintainability
D
2 days
Test Coverage

Function timeHistogram has 228 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        function timeHistogram($rootScope, HeatMapSourceGenerator,
            searchFilter, DateTimeService, NumberService) {
            var directive = {
                templateUrl: 'components/histogram/histogram.tpl.html',
                restrict: 'EA',
Severity: Major
Found in app/components/histogram/HistogramDirective.js - About 1 day to fix

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

                function link(scope, element, attr) {
                    var HistogramBars;
                    var vm = scope;
    
                    vm.barId = attr.barid;
    Severity: Major
    Found in app/components/histogram/HistogramDirective.js - About 1 day to fix

      Function makeHistogram has 50 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

                      function makeHistogram(histogram) {
      
                          var barsheight = 54;
                          var histogrambarsWidth = 350;
                          var paddingBar = 8;
      Severity: Minor
      Found in app/components/histogram/HistogramDirective.js - About 2 hrs to fix

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

                        function setHistogram(event, dataHistogram) {
                            if (!dataHistogram.counts.length) {
                                disableSlider(true);
                                return;
                            }
        Severity: Minor
        Found in app/components/histogram/HistogramDirective.js - About 1 hr to fix

          There are no issues that match your filters.

          Category
          Status