RLOpenCatalyst/core

View on GitHub
client/cat3/customlib/ui-bootstrap-custom-0.13.4.min.js

Summary

Maintainability
F
10 mos
Test Coverage

File ui-bootstrap-custom-0.13.4.min.js has 4181 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/*
 * angular-ui-bootstrap
 * http://angular-ui.github.io/bootstrap/

 * Version: 0.13.4 - 2015-09-03
Severity: Major
Found in client/cat3/customlib/ui-bootstrap-custom-0.13.4.min.js - About 1 wk to fix

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

                    link: function(originalScope, element, attrs, ctrls) {
                        var modelCtrl = ctrls[0];
                        var ngModelOptions = ctrls[1];
                        //SUPPORTED ATTRIBUTES (OPTIONS)
    
    
    Severity: Major
    Found in client/cat3/customlib/ui-bootstrap-custom-0.13.4.min.js - About 1 day to fix

      Function $get has 270 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

              this.$get = ['$window', '$compile', '$timeout', '$document', '$position', '$interpolate', '$rootScope', '$parse', function($window, $compile, $timeout, $document, $position, $interpolate, $rootScope, $parse) {
                  return function $tooltip(type, prefix, defaultTriggerShow, options) {
                      options = angular.extend({}, defaultOptions, globalOptions, options);
      
                      /**
      Severity: Major
      Found in client/cat3/customlib/ui-bootstrap-custom-0.13.4.min.js - About 1 day to fix

        Function $tooltip has 268 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                    return function $tooltip(type, prefix, defaultTriggerShow, options) {
                        options = angular.extend({}, defaultOptions, globalOptions, options);
        
                        /**
                         * Returns an object of show and hide triggers.
        Severity: Major
        Found in client/cat3/customlib/ui-bootstrap-custom-0.13.4.min.js - About 1 day to fix

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

                          link: function(scope, element, attrs, ngModel) {
                              var dateFormat,
                                  closeOnDateSelection = angular.isDefined(attrs.closeOnDateSelection) ? scope.$parent.$eval(attrs.closeOnDateSelection) : datepickerPopupConfig.closeOnDateSelection,
                                  appendToBody = angular.isDefined(attrs.datepickerAppendToBody) ? scope.$parent.$eval(attrs.datepickerAppendToBody) : datepickerPopupConfig.appendToBody,
                                  onOpenFocus = angular.isDefined(attrs.onOpenFocus) ? scope.$parent.$eval(attrs.onOpenFocus) : datepickerPopupConfig.onOpenFocus,
          Severity: Major
          Found in client/cat3/customlib/ui-bootstrap-custom-0.13.4.min.js - About 1 day to fix

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

                                compile: function(tElem, tAttrs) {
                                    var tooltipLinker = $compile( template );
            
                                    return function link(scope, element, attrs, tooltipCtrl) {
                                        var tooltip;
            Severity: Major
            Found in client/cat3/customlib/ui-bootstrap-custom-0.13.4.min.js - About 1 day to fix

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

                                      return function link(scope, element, attrs, tooltipCtrl) {
                                          var tooltip;
                                          var tooltipLinkedScope;
                                          var transitionTimeout;
                                          var popupTimeout;
              Severity: Major
              Found in client/cat3/customlib/ui-bootstrap-custom-0.13.4.min.js - About 1 day to fix

                Function $get has 99 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                                function ($injector, $rootScope, $q, $templateRequest, $controller, $modalStack) {
                                    var $modal = {};
                
                                    function getTemplatePromise(options) {
                                        return options.template ? $q.when(options.template) :
                Severity: Major
                Found in client/cat3/customlib/ui-bootstrap-custom-0.13.4.min.js - About 3 hrs to fix

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

                              link: function(scope, element, attrs, ctrl) {
                                  scope.showWeeks = ctrl.showWeeks;
                  
                                  ctrl.step = { months: 1 };
                                  ctrl.element = element;
                  Severity: Major
                  Found in client/cat3/customlib/ui-bootstrap-custom-0.13.4.min.js - About 3 hrs to fix

                    Function open has 74 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                                        $modal.open = function (modalOptions) {
                    
                                            var modalResultDeferred = $q.defer();
                                            var modalOpenedDeferred = $q.defer();
                                            var modalRenderDeferred = $q.defer();
                    Severity: Major
                    Found in client/cat3/customlib/ui-bootstrap-custom-0.13.4.min.js - About 2 hrs to fix

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

                                  link: function(scope, element, attrs, ctrls) {
                                      var paginationCtrl = ctrls[0], ngModelCtrl = ctrls[1];
                      
                                      if (!ngModelCtrl) {
                                          return; // do nothing if no ng-model
                      Severity: Major
                      Found in client/cat3/customlib/ui-bootstrap-custom-0.13.4.min.js - About 2 hrs to fix

                        Function positionElements has 58 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                                    positionElements: function(hostEl, targetEl, positionStr, appendToBody) {
                                        var positionStrParts = positionStr.split('-');
                                        var pos0 = positionStrParts[0], pos1 = positionStrParts[1] || 'center';
                        
                                        var hostElPos,
                        Severity: Major
                        Found in client/cat3/customlib/ui-bootstrap-custom-0.13.4.min.js - About 2 hrs to fix

                          Function setupInputEvents has 57 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                                  this.setupInputEvents = function(hoursInputEl, minutesInputEl) {
                                      if ($scope.readonlyInput) {
                                          $scope.updateHours = angular.noop;
                                          $scope.updateMinutes = angular.noop;
                                          return;
                          Severity: Major
                          Found in client/cat3/customlib/ui-bootstrap-custom-0.13.4.min.js - About 2 hrs to fix

                            Function TabsetCtrl has a Cognitive Complexity of 16 (exceeds 5 allowed). Consider refactoring.
                            Open

                                .controller('TabsetController', ['$scope', function TabsetCtrl($scope) {
                                    var ctrl = this,
                                        tabs = ctrl.tabs = $scope.tabs = [];
                            
                                    ctrl.select = function(selectedTab) {
                            Severity: Minor
                            Found in client/cat3/customlib/ui-bootstrap-custom-0.13.4.min.js - About 2 hrs to fix

                            Cognitive Complexity

                            Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                            A method's cognitive complexity is based on a few simple rules:

                            • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                            • Code is considered more complex for each "break in the linear flow of the code"
                            • Code is considered more complex when "flow breaking structures are nested"

                            Further reading

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

                                            link: function(scope, element, attrs) {
                                                element.addClass(attrs.windowClass || '');
                                                scope.size = attrs.size;
                            
                                                scope.close = function(evt) {
                            Severity: Major
                            Found in client/cat3/customlib/ui-bootstrap-custom-0.13.4.min.js - About 2 hrs to fix

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

                                              link: function(scope, elem, attrs) {
                                                  var origScope = scope.$eval(attrs.tooltipTemplateTranscludeScope);
                              
                                                  var changeCounter = 0,
                                                      currentScope,
                              Severity: Minor
                              Found in client/cat3/customlib/ui-bootstrap-custom-0.13.4.min.js - About 1 hr to fix

                                Function parse has 43 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                        this.parse = function(input, format, baseDate) {
                                            if (!angular.isString(input) || !format) {
                                                return input;
                                            }
                                
                                
                                Severity: Minor
                                Found in client/cat3/customlib/ui-bootstrap-custom-0.13.4.min.js - About 1 hr to fix

                                  Function createNew has 42 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                              createNew: function() {
                                                  var stack = [];
                                  
                                                  return {
                                                      add: function(key, value) {
                                  Severity: Minor
                                  Found in client/cat3/customlib/ui-bootstrap-custom-0.13.4.min.js - About 1 hr to fix

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

                                                $modalStack.open = function(modalInstance, modal) {
                                                    var modalOpener = $document[0].activeElement,
                                                        modalBodyClass = modal.openedClass || OPENED_MODAL_CLASS;
                                    
                                                    openedWindows.add(modalInstance, {
                                    Severity: Minor
                                    Found in client/cat3/customlib/ui-bootstrap-custom-0.13.4.min.js - About 1 hr to fix

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

                                                  link: function(scope, element, attrs, ctrl) {
                                                      var range = ctrl.yearRange;
                                      
                                                      ctrl.step = { years: range };
                                                      ctrl.element = element;
                                      Severity: Minor
                                      Found in client/cat3/customlib/ui-bootstrap-custom-0.13.4.min.js - About 1 hr to fix

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

                                                    link: function(scope, element, attrs, ctrl) {
                                                        ctrl.step = { years: 1 };
                                                        ctrl.element = element;
                                        
                                                        ctrl._refreshView = function() {
                                        Severity: Minor
                                        Found in client/cat3/customlib/ui-bootstrap-custom-0.13.4.min.js - About 1 hr to fix

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

                                                      link: function(scope, element, attrs) {
                                                          function expand() {
                                                              element.removeClass('collapse')
                                                                  .addClass('collapsing')
                                                                  .attr('aria-expanded', true)
                                          Severity: Minor
                                          Found in client/cat3/customlib/ui-bootstrap-custom-0.13.4.min.js - About 1 hr to fix

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

                                                        createNew: function() {
                                                            var map = {};
                                            
                                                            return {
                                                                entries: function() {
                                            Severity: Minor
                                            Found in client/cat3/customlib/ui-bootstrap-custom-0.13.4.min.js - About 1 hr to fix

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

                                                                          .then(function resolveSuccess(tplAndVars) {
                                              
                                                                              var modalScope = (modalOptions.scope || $rootScope).$new();
                                                                              modalScope.$close = modalInstance.close;
                                                                              modalScope.$dismiss = modalInstance.dismiss;
                                              Severity: Minor
                                              Found in client/cat3/customlib/ui-bootstrap-custom-0.13.4.min.js - About 1 hr to fix

                                                Function TabsetCtrl has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                                                Open

                                                    .controller('TabsetController', ['$scope', function TabsetCtrl($scope) {
                                                        var ctrl = this,
                                                            tabs = ctrl.tabs = $scope.tabs = [];
                                                
                                                        ctrl.select = function(selectedTab) {
                                                Severity: Minor
                                                Found in client/cat3/customlib/ui-bootstrap-custom-0.13.4.min.js - About 1 hr to fix

                                                  Function getMatchesAsync has 37 lines of code (exceeds 25 allowed). Consider refactoring.
                                                  Open

                                                                      var getMatchesAsync = function(inputValue) {
                                                                          var locals = {$viewValue: inputValue};
                                                                          isLoadingSetter(originalScope, true);
                                                                          isNoResultsSetter(originalScope, false);
                                                                          $q.when(parserResult.source(originalScope, locals)).then(function(matches) {
                                                  Severity: Minor
                                                  Found in client/cat3/customlib/ui-bootstrap-custom-0.13.4.min.js - About 1 hr to fix

                                                    Function _refreshView has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                                                    Open

                                                                    ctrl._refreshView = function() {
                                                                        var year = ctrl.activeDate.getFullYear(),
                                                                            month = ctrl.activeDate.getMonth(),
                                                                            firstDayOfMonth = new Date(year, month, 1),
                                                                            difference = ctrl.startingDay - firstDayOfMonth.getDay(),
                                                    Severity: Minor
                                                    Found in client/cat3/customlib/ui-bootstrap-custom-0.13.4.min.js - About 1 hr to fix

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

                                                                  link: function(scope, element, attrs, ctrls) {
                                                                      var buttonsCtrl = ctrls[0], ngModelCtrl = ctrls[1];
                                                      
                                                                      element.find('input').css({display: 'none'});
                                                      
                                                      
                                                      Severity: Minor
                                                      Found in client/cat3/customlib/ui-bootstrap-custom-0.13.4.min.js - About 1 hr to fix

                                                        Function removeAfterAnimate has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                                                        Open

                                                                    function removeAfterAnimate(domEl, scope, done) {
                                                                        var asyncDeferred;
                                                                        var asyncPromise = null;
                                                                        var setIsAsync = function() {
                                                                            if (!asyncDeferred) {
                                                        Severity: Minor
                                                        Found in client/cat3/customlib/ui-bootstrap-custom-0.13.4.min.js - About 1 hr to fix

                                                          Function $transition has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                                                          Open

                                                                      var $transition = function(element, trigger, options) {
                                                                          options = options || {};
                                                                          var deferred = $q.defer();
                                                                          var endEventName = $transition[options.animation ? 'animationEndEventName' : 'transitionEndEventName'];
                                                          
                                                          
                                                          Severity: Minor
                                                          Found in client/cat3/customlib/ui-bootstrap-custom-0.13.4.min.js - About 1 hr to fix

                                                            Function getPages has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                                                            Open

                                                                            function getPages(currentPage, totalPages) {
                                                                                var pages = [];
                                                            
                                                                                // Default page limits
                                                                                var startPage = 1, endPage = totalPages;
                                                            Severity: Minor
                                                            Found in client/cat3/customlib/ui-bootstrap-custom-0.13.4.min.js - About 1 hr to fix

                                                              Function createTooltip has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                                                              Open

                                                                                          function createTooltip() {
                                                                                              // There can only be one tooltip element per directive shown at once.
                                                                                              if (tooltip) {
                                                                                                  removeTooltip();
                                                                                              }
                                                              Severity: Minor
                                                              Found in client/cat3/customlib/ui-bootstrap-custom-0.13.4.min.js - About 1 hr to fix

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

                                                                            link: function (scope, element, attrs, dropdownCtrl) {
                                                                
                                                                                element.bind('keydown', function(e) {
                                                                                    if ([38, 40].indexOf(e.which) !== -1) {
                                                                                        e.preventDefault();
                                                                Severity: Minor
                                                                Found in client/cat3/customlib/ui-bootstrap-custom-0.13.4.min.js - About 1 hr to fix

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

                                                                              link: function(scope, elm, attrs, tabsetCtrl, transclude) {
                                                                                  scope.$watch('active', function(active) {
                                                                                      if (active) {
                                                                                          tabsetCtrl.select(scope);
                                                                                      }
                                                                  Severity: Minor
                                                                  Found in client/cat3/customlib/ui-bootstrap-custom-0.13.4.min.js - About 1 hr to fix

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

                                                                            function goNext(slide, index, direction) {
                                                                                // Scope has been destroyed, stop here.
                                                                                if (destroyed) { return; }
                                                                    
                                                                                angular.extend(slide, {direction: direction, active: true});
                                                                    Severity: Minor
                                                                    Found in client/cat3/customlib/ui-bootstrap-custom-0.13.4.min.js - About 1 hr to fix

                                                                      Function $get has 8 arguments (exceeds 4 allowed). Consider refactoring.
                                                                      Open

                                                                              this.$get = ['$window', '$compile', '$timeout', '$document', '$position', '$interpolate', '$rootScope', '$parse', function($window, $compile, $timeout, $document, $position, $interpolate, $rootScope, $parse) {
                                                                      Severity: Major
                                                                      Found in client/cat3/customlib/ui-bootstrap-custom-0.13.4.min.js - About 1 hr to fix

                                                                        Function $get has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                                                        Open

                                                                                        function ($injector, $rootScope, $q, $templateRequest, $controller, $modalStack) {
                                                                        Severity: Minor
                                                                        Found in client/cat3/customlib/ui-bootstrap-custom-0.13.4.min.js - About 45 mins to fix

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

                                                                                      link: function($scope, $element, $attrs, controller, $transclude) {
                                                                          Severity: Minor
                                                                          Found in client/cat3/customlib/ui-bootstrap-custom-0.13.4.min.js - About 35 mins to fix

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

                                                                                        link: function(scope, elm, attrs, tabsetCtrl, transclude) {
                                                                            Severity: Minor
                                                                            Found in client/cat3/customlib/ui-bootstrap-custom-0.13.4.min.js - About 35 mins to fix

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

                                                                                          link: function(scope, element, attr, accordionGroupCtrl, transclude) {
                                                                              Severity: Minor
                                                                              Found in client/cat3/customlib/ui-bootstrap-custom-0.13.4.min.js - About 35 mins to fix

                                                                                Avoid too many return statements within this function.
                                                                                Open

                                                                                                            return false;
                                                                                Severity: Major
                                                                                Found in client/cat3/customlib/ui-bootstrap-custom-0.13.4.min.js - About 30 mins to fix

                                                                                  Avoid too many return statements within this function.
                                                                                  Open

                                                                                                              return undefined;
                                                                                  Severity: Major
                                                                                  Found in client/cat3/customlib/ui-bootstrap-custom-0.13.4.min.js - About 30 mins to fix

                                                                                    Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                    Open

                                                                                    angular.module('ui.bootstrap.datepicker', ['ui.bootstrap.dateparser', 'ui.bootstrap.position'])
                                                                                    
                                                                                        .value('$datepickerSuppressError', false)
                                                                                    
                                                                                        .constant('datepickerConfig', {
                                                                                    Severity: Major
                                                                                    Found in client/cat3/customlib/ui-bootstrap-custom-0.13.4.min.js and 1 other location - About 1 mo to fix
                                                                                    client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 1692..2511

                                                                                    Duplicated Code

                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                    Tuning

                                                                                    This issue has a mass of 8151.

                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                    Refactorings

                                                                                    Further Reading

                                                                                    Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                    Open

                                                                                    angular.module('ui.bootstrap.modal', [])
                                                                                    
                                                                                    /**
                                                                                     * A helper, internal data structure that acts as a map but also allows getting / removing
                                                                                     * elements in the LIFO order
                                                                                    Severity: Major
                                                                                    Found in client/cat3/customlib/ui-bootstrap-custom-0.13.4.min.js and 1 other location - About 1 mo to fix
                                                                                    client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 2860..3585

                                                                                    Duplicated Code

                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                    Tuning

                                                                                    This issue has a mass of 5220.

                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                    Refactorings

                                                                                    Further Reading

                                                                                    Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                    Open

                                                                                    angular.module('ui.bootstrap.typeahead', ['ui.bootstrap.position'])
                                                                                    
                                                                                    /**
                                                                                     * A helper service that can parse typeahead's syntax (string provided by users)
                                                                                     * Extracted to a separate service for ease of unit testing
                                                                                    Severity: Major
                                                                                    Found in client/cat3/customlib/ui-bootstrap-custom-0.13.4.min.js and 1 other location - About 3 wks to fix
                                                                                    client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 5483..6008

                                                                                    Duplicated Code

                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                    Tuning

                                                                                    This issue has a mass of 3879.

                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                    Refactorings

                                                                                    Further Reading

                                                                                    Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                    Open

                                                                                    angular.module('ui.bootstrap.tooltip', ['ui.bootstrap.position', 'ui.bootstrap.bindHtml'])
                                                                                    
                                                                                    /**
                                                                                     * The $tooltip service creates tooltip- and popover-like directives as well as
                                                                                     * houses global options for them.
                                                                                    Severity: Major
                                                                                    Found in client/cat3/customlib/ui-bootstrap-custom-0.13.4.min.js and 1 other location - About 3 wks to fix
                                                                                    client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 3824..4413

                                                                                    Duplicated Code

                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                    Tuning

                                                                                    This issue has a mass of 3699.

                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                    Refactorings

                                                                                    Further Reading

                                                                                    Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                    Open

                                                                                    angular.module('ui.bootstrap.timepicker', [])
                                                                                    
                                                                                        .constant('timepickerConfig', {
                                                                                            hourStep: 1,
                                                                                            minuteStep: 1,
                                                                                    Severity: Major
                                                                                    Found in client/cat3/customlib/ui-bootstrap-custom-0.13.4.min.js and 1 other location - About 2 wks to fix
                                                                                    client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 5011..5391

                                                                                    Duplicated Code

                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                    Tuning

                                                                                    This issue has a mass of 3355.

                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                    Refactorings

                                                                                    Further Reading

                                                                                    Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                    Open

                                                                                    angular.module('ui.bootstrap.dropdown', ['ui.bootstrap.position'])
                                                                                    
                                                                                        .constant('dropdownConfig', {
                                                                                            openClass: 'open'
                                                                                        })
                                                                                    Severity: Major
                                                                                    Found in client/cat3/customlib/ui-bootstrap-custom-0.13.4.min.js and 1 other location - About 2 wks to fix
                                                                                    client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 2513..2858

                                                                                    Duplicated Code

                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                    Tuning

                                                                                    This issue has a mass of 2777.

                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                    Refactorings

                                                                                    Further Reading

                                                                                    Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                    Open

                                                                                    angular.module('ui.bootstrap.carousel', [])
                                                                                        .controller('CarouselController', ['$scope', '$element', '$interval', '$animate', function ($scope, $element, $interval, $animate) {
                                                                                            var self = this,
                                                                                                slides = self.slides = $scope.slides = [],
                                                                                                NEW_ANIMATE = angular.version.minor >= 4,
                                                                                    Severity: Major
                                                                                    Found in client/cat3/customlib/ui-bootstrap-custom-0.13.4.min.js and 1 other location - About 2 wks to fix
                                                                                    client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 929..1339

                                                                                    Duplicated Code

                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                    Tuning

                                                                                    This issue has a mass of 2595.

                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                    Refactorings

                                                                                    Further Reading

                                                                                    Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                    Open

                                                                                    angular.module('ui.bootstrap.pagination', [])
                                                                                        .controller('PaginationController', ['$scope', '$attrs', '$parse', function($scope, $attrs, $parse) {
                                                                                            var self = this,
                                                                                                ngModelCtrl = { $setViewValue: angular.noop }, // nullModelCtrl
                                                                                                setNumPages = $attrs.numPages ? $parse($attrs.numPages).assign : angular.noop;
                                                                                    Severity: Major
                                                                                    Found in client/cat3/customlib/ui-bootstrap-custom-0.13.4.min.js and 1 other location - About 1 wk to fix
                                                                                    client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 3587..3817

                                                                                    Duplicated Code

                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                    Tuning

                                                                                    This issue has a mass of 1924.

                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                    Refactorings

                                                                                    Further Reading

                                                                                    Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                    Open

                                                                                    angular.module('ui.bootstrap.dateparser', [])
                                                                                    
                                                                                        .service('dateParser', ['$log', '$locale', 'orderByFilter', function($log, $locale, orderByFilter) {
                                                                                            // Pulled from https://github.com/mbostock/d3/blob/master/src/format/requote.js
                                                                                            var SPECIAL_CHARACTERS_REGEXP = /[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g;
                                                                                    Severity: Major
                                                                                    Found in client/cat3/customlib/ui-bootstrap-custom-0.13.4.min.js and 1 other location - About 1 wk to fix
                                                                                    client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 1341..1539

                                                                                    Duplicated Code

                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                    Tuning

                                                                                    This issue has a mass of 1842.

                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                    Refactorings

                                                                                    Further Reading

                                                                                    Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                    Open

                                                                                    angular.module('ui.bootstrap.tabs', [])
                                                                                    
                                                                                        .controller('TabsetController', ['$scope', function TabsetCtrl($scope) {
                                                                                            var ctrl = this,
                                                                                                tabs = ctrl.tabs = $scope.tabs = [];
                                                                                    Severity: Major
                                                                                    Found in client/cat3/customlib/ui-bootstrap-custom-0.13.4.min.js and 1 other location - About 1 wk to fix
                                                                                    client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 4723..5009

                                                                                    Duplicated Code

                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                    Tuning

                                                                                    This issue has a mass of 1362.

                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                    Refactorings

                                                                                    Further Reading

                                                                                    Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                    Open

                                                                                    angular.module('ui.bootstrap.rating', [])
                                                                                    
                                                                                        .constant('ratingConfig', {
                                                                                            max: 5,
                                                                                            stateOn: null,
                                                                                    Severity: Major
                                                                                    Found in client/cat3/customlib/ui-bootstrap-custom-0.13.4.min.js and 1 other location - About 6 days to fix
                                                                                    client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 4613..4712

                                                                                    Duplicated Code

                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                    Tuning

                                                                                    This issue has a mass of 1088.

                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                    Refactorings

                                                                                    Further Reading

                                                                                    Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                    Open

                                                                                    angular.module('ui.bootstrap.position', [])
                                                                                    
                                                                                    /**
                                                                                     * A set of utility methods that can be use to retrieve position of DOM elements.
                                                                                     * It is meant to be used where we need to absolute-position DOM elements in
                                                                                    Severity: Major
                                                                                    Found in client/cat3/customlib/ui-bootstrap-custom-0.13.4.min.js and 1 other location - About 6 days to fix
                                                                                    client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 1541..1690

                                                                                    Duplicated Code

                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                    Tuning

                                                                                    This issue has a mass of 1073.

                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                    Refactorings

                                                                                    Further Reading

                                                                                    Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                    Open

                                                                                    angular.module('ui.bootstrap.progressbar', [])
                                                                                    
                                                                                        .constant('progressConfig', {
                                                                                            animate: true,
                                                                                            max: 100
                                                                                    Severity: Major
                                                                                    Found in client/cat3/customlib/ui-bootstrap-custom-0.13.4.min.js and 1 other location - About 5 days to fix
                                                                                    client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 4466..4611

                                                                                    Duplicated Code

                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                    Tuning

                                                                                    This issue has a mass of 981.

                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                    Refactorings

                                                                                    Further Reading

                                                                                    Identical blocks of code found in 2 locations. Consider refactoring.
                                                                                    Open

                                                                                    angular.module('ui.bootstrap.accordion', ['ui.bootstrap.collapse'])
                                                                                    
                                                                                        .constant('accordionConfig', {
                                                                                            closeOthers: true
                                                                                        })
                                                                                    Severity: Major
                                                                                    Found in client/cat3/customlib/ui-bootstrap-custom-0.13.4.min.js and 1 other location - About 5 days to fix
                                                                                    client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 628..769

                                                                                    Duplicated Code

                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                    Tuning

                                                                                    This issue has a mass of 928.

                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                    Refactorings

                                                                                    Further Reading

                                                                                    Identical blocks of code found in 2 locations. Consider refactoring.
                                                                                    Open

                                                                                    angular.module('ui.bootstrap.buttons', [])
                                                                                    
                                                                                        .constant('buttonConfig', {
                                                                                            activeClass: 'active',
                                                                                            toggleEvent: 'click'
                                                                                    Severity: Major
                                                                                    Found in client/cat3/customlib/ui-bootstrap-custom-0.13.4.min.js and 1 other location - About 5 days to fix
                                                                                    client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 820..919

                                                                                    Duplicated Code

                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                    Tuning

                                                                                    This issue has a mass of 841.

                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                    Refactorings

                                                                                    Further Reading

                                                                                    Identical blocks of code found in 2 locations. Consider refactoring.
                                                                                    Open

                                                                                    angular.module('ui.bootstrap.transition', [])
                                                                                    
                                                                                        .value('$transitionSuppressDeprecated', false)
                                                                                    /**
                                                                                     * $transition service provides a consistent interface to trigger CSS 3 transitions and to be informed when they complete.
                                                                                    Severity: Major
                                                                                    Found in client/cat3/customlib/ui-bootstrap-custom-0.13.4.min.js and 1 other location - About 3 days to fix
                                                                                    client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 5393..5481

                                                                                    Duplicated Code

                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                    Tuning

                                                                                    This issue has a mass of 542.

                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                    Refactorings

                                                                                    Further Reading

                                                                                    Identical blocks of code found in 2 locations. Consider refactoring.
                                                                                    Open

                                                                                    angular.module('ui.bootstrap.collapse', [])
                                                                                    
                                                                                        .directive('collapse', ['$animate', function($animate) {
                                                                                            return {
                                                                                                link: function(scope, element, attrs) {
                                                                                    Severity: Major
                                                                                    Found in client/cat3/customlib/ui-bootstrap-custom-0.13.4.min.js and 1 other location - About 2 days to fix
                                                                                    client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 10..66

                                                                                    Duplicated Code

                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                    Tuning

                                                                                    This issue has a mass of 423.

                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                    Refactorings

                                                                                    Further Reading

                                                                                    Identical blocks of code found in 2 locations. Consider refactoring.
                                                                                    Open

                                                                                    angular.module( 'ui.bootstrap.popover', ['ui.bootstrap.tooltip'])
                                                                                    
                                                                                        .directive('popoverTemplatePopup', function() {
                                                                                            return {
                                                                                                restrict: 'EA',
                                                                                    Severity: Major
                                                                                    Found in client/cat3/customlib/ui-bootstrap-custom-0.13.4.min.js and 1 other location - About 1 day to fix
                                                                                    client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 4420..4464

                                                                                    Duplicated Code

                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                    Tuning

                                                                                    This issue has a mass of 323.

                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                    Refactorings

                                                                                    Further Reading

                                                                                    Identical blocks of code found in 2 locations. Consider refactoring.
                                                                                    Open

                                                                                    angular.module('ui.bootstrap.alert', [])
                                                                                    
                                                                                        .controller('AlertController', ['$scope', '$attrs', function($scope, $attrs) {
                                                                                            $scope.closeable = !!$attrs.close;
                                                                                            this.close = $scope.close;
                                                                                    Severity: Major
                                                                                    Found in client/cat3/customlib/ui-bootstrap-custom-0.13.4.min.js and 1 other location - About 1 day to fix
                                                                                    client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 771..803

                                                                                    Duplicated Code

                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                    Tuning

                                                                                    This issue has a mass of 217.

                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                    Refactorings

                                                                                    Further Reading

                                                                                    Identical blocks of code found in 2 locations. Consider refactoring.
                                                                                    Open

                                                                                    angular.module('ui.bootstrap.bindHtml', [])
                                                                                    
                                                                                        .value('$bindHtmlUnsafeSuppressDeprecated', false)
                                                                                    
                                                                                        .directive('bindHtmlUnsafe', ['$log', '$bindHtmlUnsafeSuppressDeprecated', function ($log, $bindHtmlUnsafeSuppressDeprecated) {
                                                                                    Severity: Major
                                                                                    Found in client/cat3/customlib/ui-bootstrap-custom-0.13.4.min.js and 1 other location - About 5 hrs to fix
                                                                                    client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 805..819

                                                                                    Duplicated Code

                                                                                    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                    Tuning

                                                                                    This issue has a mass of 136.

                                                                                    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                    Refactorings

                                                                                    Further Reading

                                                                                    There are no issues that match your filters.

                                                                                    Category
                                                                                    Status