RLOpenCatalyst/core

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

Summary

Maintainability
F
10 mos
Test Coverage

File ui-bootstrap-custom-tpls-0.13.4.js has 5031 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-tpls-0.13.4.js - About 2 wks 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-tpls-0.13.4.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-tpls-0.13.4.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-tpls-0.13.4.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-tpls-0.13.4.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-tpls-0.13.4.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-tpls-0.13.4.js - About 1 day to fix

                Function init has 217 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                      this.init = function() {
                        localeId = $locale.id;
                
                        this.parsers = {};
                        this.formatters = {};
                Severity: Major
                Found in client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.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-tpls-0.13.4.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-tpls-0.13.4.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-tpls-0.13.4.js - About 2 hrs to fix

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

                                  compile: function (tElement, tAttrs) {
                                    var linkedScopes = [];
                                    var instances = [];
                                    var expToData = {};
                                    var lastActivated = null;
                        Severity: Major
                        Found in client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.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-tpls-0.13.4.js - About 2 hrs to fix

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

                                  this.parse = function(input, format, baseDate) {
                                    if (!angular.isString(input) || !format) {
                                      return input;
                                    }
                            
                            
                            Severity: Major
                            Found in client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.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-tpls-0.13.4.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-tpls-0.13.4.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-tpls-0.13.4.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-tpls-0.13.4.js - About 2 hrs to fix

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

                                          function createParser(format, func) {
                                            var map = [], regex = format.split('');
                                    
                                            // check for literal values
                                            var quoteIndex = format.indexOf('\'');
                                    Severity: Minor
                                    Found in client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.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-tpls-0.13.4.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-tpls-0.13.4.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-tpls-0.13.4.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-tpls-0.13.4.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-tpls-0.13.4.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-tpls-0.13.4.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-tpls-0.13.4.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-tpls-0.13.4.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-tpls-0.13.4.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-tpls-0.13.4.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-tpls-0.13.4.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-tpls-0.13.4.js - About 1 hr to fix

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

                                                                          function addForExp(exp, scope) {
                                                                            var matches = exp.match(IS_REGEXP);
                                                                            var clazz = scope.$eval(matches[1]);
                                                                            var compareWithExp = matches[2];
                                                                            var data = expToData[exp];
                                                              Severity: Minor
                                                              Found in client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.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-tpls-0.13.4.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-tpls-0.13.4.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-tpls-0.13.4.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-tpls-0.13.4.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-tpls-0.13.4.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-tpls-0.13.4.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-tpls-0.13.4.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-tpls-0.13.4.js - About 1 hr to fix

                                                                                Consider simplifying this complex logical expression.
                                                                                Open

                                                                                            if (angular.isDate(baseDate) && !isNaN(baseDate.getTime()) && !tzOffset) {
                                                                                              dt = new Date(baseDate);
                                                                                              datesetter.call(dt, fields.year, fields.month, fields.date);
                                                                                              timesetter.call(dt, fields.hours, fields.minutes,
                                                                                                  fields.seconds, fields.milliseconds);
                                                                                Severity: Major
                                                                                Found in client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.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-tpls-0.13.4.js - About 1 hr to fix

                                                                                    Avoid deeply nested control flow statements.
                                                                                    Open

                                                                                                    if (i + 1 < format.length && format[i+1] === '\'') { // escaped single quote
                                                                                                      format[i+1] = '$';
                                                                                                      regex[i+1] = '';
                                                                                                    } else { // end of literal
                                                                                                      regex[i] = '';
                                                                                    Severity: Major
                                                                                    Found in client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js - About 45 mins 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-tpls-0.13.4.js - About 45 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-tpls-0.13.4.js - About 35 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-tpls-0.13.4.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-tpls-0.13.4.js - About 35 mins to fix

                                                                                              Avoid too many return statements within this function.
                                                                                              Open

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

                                                                                                Avoid too many return statements within this function.
                                                                                                Open

                                                                                                                return false;
                                                                                                Severity: Major
                                                                                                Found in client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.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-tpls-0.13.4.js and 1 other location - About 1 mo to fix
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-0.13.4.min.js on lines 1133..1952

                                                                                                  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-tpls-0.13.4.js and 1 other location - About 1 mo to fix
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-0.13.4.min.js on lines 2301..3026

                                                                                                  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-tpls-0.13.4.js and 1 other location - About 3 wks to fix
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-0.13.4.min.js on lines 4924..5449

                                                                                                  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-tpls-0.13.4.js and 1 other location - About 3 wks to fix
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-0.13.4.min.js on lines 3265..3854

                                                                                                  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-tpls-0.13.4.js and 1 other location - About 2 wks to fix
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-0.13.4.min.js on lines 4452..4832

                                                                                                  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-tpls-0.13.4.js and 1 other location - About 2 wks to fix
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-0.13.4.min.js on lines 1954..2299

                                                                                                  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-tpls-0.13.4.js and 1 other location - About 2 wks to fix
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-0.13.4.min.js on lines 370..780

                                                                                                  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-tpls-0.13.4.js and 1 other location - About 1 wk to fix
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-0.13.4.min.js on lines 3028..3258

                                                                                                  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-tpls-0.13.4.js and 1 other location - About 1 wk to fix
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-0.13.4.min.js on lines 782..980

                                                                                                  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-tpls-0.13.4.js and 1 other location - About 1 wk to fix
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-0.13.4.min.js on lines 4164..4450

                                                                                                  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-tpls-0.13.4.js and 1 other location - About 6 days to fix
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-0.13.4.min.js on lines 4054..4153

                                                                                                  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-tpls-0.13.4.js and 1 other location - About 6 days to fix
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-0.13.4.min.js on lines 982..1131

                                                                                                  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-tpls-0.13.4.js and 1 other location - About 5 days to fix
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-0.13.4.min.js on lines 3907..4052

                                                                                                  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-tpls-0.13.4.js and 1 other location - About 5 days to fix
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-0.13.4.min.js on lines 69..210

                                                                                                  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-tpls-0.13.4.js and 1 other location - About 5 days to fix
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-0.13.4.min.js on lines 261..360

                                                                                                  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-tpls-0.13.4.js and 1 other location - About 3 days to fix
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-0.13.4.min.js on lines 4834..4922

                                                                                                  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) {
                                                                                                                  function expand() {
                                                                                                                      element.removeClass('collapse')
                                                                                                  Severity: Major
                                                                                                  Found in client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js and 1 other location - About 2 days to fix
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-0.13.4.min.js on lines 9..67

                                                                                                  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-tpls-0.13.4.js and 1 other location - About 1 day to fix
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-0.13.4.min.js on lines 3861..3905

                                                                                                  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-tpls-0.13.4.js and 1 other location - About 1 day to fix
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-0.13.4.min.js on lines 212..244

                                                                                                  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-tpls-0.13.4.js and 1 other location - About 5 hrs to fix
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-0.13.4.min.js on lines 246..260

                                                                                                  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

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

                                                                                                  angular.module("template/datepicker/month.html", []).run(["$templateCache", function($templateCache) {
                                                                                                    $templateCache.put("template/datepicker/month.html",
                                                                                                        "<table role=\"grid\" aria-labelledby=\"{{::uniqueId}}-title\" aria-activedescendant=\"{{activeDateId}}\">\n" +
                                                                                                        "  <thead>\n" +
                                                                                                        "    <tr>\n" +
                                                                                                  Severity: Major
                                                                                                  Found in client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js and 1 other location - About 3 hrs to fix
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 6134..6153

                                                                                                  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 106.

                                                                                                  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("template/datepicker/year.html", []).run(["$templateCache", function($templateCache) {
                                                                                                    $templateCache.put("template/datepicker/year.html",
                                                                                                        "<table role=\"grid\" aria-labelledby=\"{{::uniqueId}}-title\" aria-activedescendant=\"{{activeDateId}}\">\n" +
                                                                                                        "  <thead>\n" +
                                                                                                        "    <tr>\n" +
                                                                                                  Severity: Major
                                                                                                  Found in client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js and 1 other location - About 3 hrs to fix
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 6098..6117

                                                                                                  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 106.

                                                                                                  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

                                                                                                        "<table>\n" +
                                                                                                        "  <tbody>\n" +
                                                                                                        "    <tr class=\"text-center\" ng-show=\"::showSpinners\">\n" +
                                                                                                        "      <td><a ng-click=\"incrementHours()\" ng-class=\"{disabled: noIncrementHours()}\" class=\"btn btn-link\"><span class=\"fa fa-chevron-up\"></span></a></td>\n" +
                                                                                                        "      <td>&nbsp;</td>\n" +
                                                                                                  Severity: Major
                                                                                                  Found in client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js and 1 other location - About 3 hrs to fix
                                                                                                  client/cat3/src/partials/globals/chefSelectorComponent/chefSelectorComponent.js on lines 14..40

                                                                                                  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 105.

                                                                                                  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

                                                                                                            {
                                                                                                              key: 'yyyy',
                                                                                                              regex: '\\d{4}',
                                                                                                              apply: function(value) { this.year = +value; },
                                                                                                              formatter: function(date) {
                                                                                                  Severity: Major
                                                                                                  Found in client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js and 1 other location - About 2 hrs to fix
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 102..111

                                                                                                  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 91.

                                                                                                  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

                                                                                                            {
                                                                                                              key: 'y',
                                                                                                              regex: '\\d{1,4}',
                                                                                                              apply: function(value) { this.year = +value; },
                                                                                                              formatter: function(date) {
                                                                                                  Severity: Major
                                                                                                  Found in client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js and 1 other location - About 2 hrs to fix
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 82..91

                                                                                                  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 91.

                                                                                                  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("template/popover/popover-html.html", []).run(["$templateCache", function($templateCache) {
                                                                                                    $templateCache.put("template/popover/popover-html.html",
                                                                                                        "<div class=\"popover\"\n" +
                                                                                                        "  tooltip-animation-class=\"fade\"\n" +
                                                                                                        "  tooltip-classes\n" +
                                                                                                  Severity: Major
                                                                                                  Found in client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js and 1 other location - About 2 hrs to fix
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 6281..6295

                                                                                                  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 86.

                                                                                                  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("template/popover/popover.html", []).run(["$templateCache", function($templateCache) {
                                                                                                    $templateCache.put("template/popover/popover.html",
                                                                                                        "<div class=\"popover\"\n" +
                                                                                                        "  tooltip-animation-class=\"fade\"\n" +
                                                                                                        "  tooltip-classes\n" +
                                                                                                  Severity: Major
                                                                                                  Found in client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js and 1 other location - About 2 hrs to fix
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 6247..6261

                                                                                                  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 86.

                                                                                                  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

                                                                                                            {
                                                                                                              key: 'MMM',
                                                                                                              regex: $locale.DATETIME_FORMATS.SHORTMONTH.join('|'),
                                                                                                              apply: function(value) { this.month = $locale.DATETIME_FORMATS.SHORTMONTH.indexOf(value); },
                                                                                                              formatter: function(date) { return dateFilter(date, 'MMM'); }
                                                                                                  Severity: Major
                                                                                                  Found in client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js and 1 other location - About 2 hrs to fix
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 125..130

                                                                                                  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 85.

                                                                                                  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

                                                                                                            {
                                                                                                              key: 'MMMM',
                                                                                                              regex: $locale.DATETIME_FORMATS.MONTH.join('|'),
                                                                                                              apply: function(value) { this.month = $locale.DATETIME_FORMATS.MONTH.indexOf(value); },
                                                                                                              formatter: function(date) { return dateFilter(date, 'MMMM'); }
                                                                                                  Severity: Major
                                                                                                  Found in client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js and 1 other location - About 2 hrs to fix
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 131..136

                                                                                                  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 85.

                                                                                                  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 3 locations. Consider refactoring.
                                                                                                  Open

                                                                                                  angular.module("template/accordion/accordion-group.html", []).run(["$templateCache", function($templateCache) {
                                                                                                    $templateCache.put("template/accordion/accordion-group.html",
                                                                                                        "<div class=\"panel {{panelClass || 'panel-default'}}\">\n" +
                                                                                                        "  <div class=\"panel-heading\" ng-keypress=\"toggleOpen($event)\">\n" +
                                                                                                        "    <h4 class=\"panel-title\">\n" +
                                                                                                  Severity: Major
                                                                                                  Found in client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js and 2 other locations - About 2 hrs to fix
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 6119..6132
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 6333..6346

                                                                                                  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 82.

                                                                                                  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 3 locations. Consider refactoring.
                                                                                                  Open

                                                                                                  angular.module("template/tabs/tabset.html", []).run(["$templateCache", function($templateCache) {
                                                                                                    $templateCache.put("template/tabs/tabset.html",
                                                                                                        "<div>\n" +
                                                                                                        "  <ul class=\"nav nav-{{type || 'tabs'}}\" ng-class=\"{'nav-stacked': vertical, 'nav-justified': justified}\" ng-transclude></ul>\n" +
                                                                                                        "  <div class=\"tab-content\">\n" +
                                                                                                  Severity: Major
                                                                                                  Found in client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js and 2 other locations - About 2 hrs to fix
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 6010..6023
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 6119..6132

                                                                                                  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 82.

                                                                                                  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 3 locations. Consider refactoring.
                                                                                                  Open

                                                                                                  angular.module("template/datepicker/popup.html", []).run(["$templateCache", function($templateCache) {
                                                                                                    $templateCache.put("template/datepicker/popup.html",
                                                                                                        "<ul class=\"dropdown-menu\" ng-if=\"isOpen\" style=\"display: block\" ng-style=\"{top: position.top+'px', left: position.left+'px'}\" ng-keydown=\"keydown($event)\" ng-click=\"$event.stopPropagation()\">\n" +
                                                                                                        "    <li ng-transclude></li>\n" +
                                                                                                        "    <li ng-if=\"showButtonBar\" style=\"padding:10px 9px 2px\">\n" +
                                                                                                  Severity: Major
                                                                                                  Found in client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js and 2 other locations - About 2 hrs to fix
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 6010..6023
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 6333..6346

                                                                                                  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 82.

                                                                                                  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 5 locations. Consider refactoring.
                                                                                                  Open

                                                                                                  angular.module("template/pagination/pagination.html", []).run(["$templateCache", function($templateCache) {
                                                                                                    $templateCache.put("template/pagination/pagination.html",
                                                                                                        "<ul class=\"pagination\">\n" +
                                                                                                        "  <li ng-if=\"::boundaryLinks\" ng-class=\"{disabled: noPrevious()||ngDisabled}\" class=\"pagination-first\"><a href ng-click=\"selectPage(1, $event)\">{{::getText('first')}}</a></li>\n" +
                                                                                                        "  <li ng-if=\"::directionLinks\" ng-class=\"{disabled: noPrevious()||ngDisabled}\" class=\"pagination-prev\"><a href ng-click=\"selectPage(page - 1, $event)\">{{::getText('previous')}}</a></li>\n" +
                                                                                                  Severity: Major
                                                                                                  Found in client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js and 4 other locations - About 1 hr to fix
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 6030..6040
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 6197..6207
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 6209..6219
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 6221..6231

                                                                                                  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 70.

                                                                                                  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 5 locations. Consider refactoring.
                                                                                                  Open

                                                                                                  angular.module("template/tooltip/tooltip-html-popup.html", []).run(["$templateCache", function($templateCache) {
                                                                                                    $templateCache.put("template/tooltip/tooltip-html-popup.html",
                                                                                                        "<div class=\"tooltip\"\n" +
                                                                                                        "  tooltip-animation-class=\"fade\"\n" +
                                                                                                        "  tooltip-classes\n" +
                                                                                                  Severity: Major
                                                                                                  Found in client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js and 4 other locations - About 1 hr to fix
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 6030..6040
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 6185..6195
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 6209..6219
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 6221..6231

                                                                                                  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 70.

                                                                                                  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 5 locations. Consider refactoring.
                                                                                                  Open

                                                                                                  angular.module("template/tooltip/tooltip-html-unsafe-popup.html", []).run(["$templateCache", function($templateCache) {
                                                                                                    $templateCache.put("template/tooltip/tooltip-html-unsafe-popup.html",
                                                                                                        "<div class=\"tooltip\"\n" +
                                                                                                        "  tooltip-animation-class=\"fade\"\n" +
                                                                                                        "  tooltip-classes\n" +
                                                                                                  Severity: Major
                                                                                                  Found in client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js and 4 other locations - About 1 hr to fix
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 6030..6040
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 6185..6195
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 6197..6207
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 6221..6231

                                                                                                  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 70.

                                                                                                  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 5 locations. Consider refactoring.
                                                                                                  Open

                                                                                                  angular.module("template/alert/alert.html", []).run(["$templateCache", function($templateCache) {
                                                                                                    $templateCache.put("template/alert/alert.html",
                                                                                                        "<div class=\"alert\" ng-class=\"['alert-' + (type || 'warning'), closeable ? 'alert-dismissible' : null]\" role=\"alert\">\n" +
                                                                                                        "    <button ng-show=\"closeable\" type=\"button\" class=\"close\" ng-click=\"close($event)\">\n" +
                                                                                                        "        <span aria-hidden=\"true\">&times;</span>\n" +
                                                                                                  Severity: Major
                                                                                                  Found in client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js and 4 other locations - About 1 hr to fix
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 6185..6195
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 6197..6207
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 6209..6219
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 6221..6231

                                                                                                  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 70.

                                                                                                  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 5 locations. Consider refactoring.
                                                                                                  Open

                                                                                                  angular.module("template/tooltip/tooltip-popup.html", []).run(["$templateCache", function($templateCache) {
                                                                                                    $templateCache.put("template/tooltip/tooltip-popup.html",
                                                                                                        "<div class=\"tooltip\"\n" +
                                                                                                        "  tooltip-animation-class=\"fade\"\n" +
                                                                                                        "  tooltip-classes\n" +
                                                                                                  Severity: Major
                                                                                                  Found in client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js and 4 other locations - About 1 hr to fix
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 6030..6040
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 6185..6195
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 6197..6207
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 6209..6219

                                                                                                  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 70.

                                                                                                  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("template/typeahead/typeahead-popup.html", []).run(["$templateCache", function($templateCache) {
                                                                                                    $templateCache.put("template/typeahead/typeahead-popup.html",
                                                                                                        "<ul class=\"dropdown-menu\" ng-show=\"isOpen() && !moveInProgress\" ng-style=\"{top: position().top+'px', left: position().left+'px'}\" style=\"display: block;\" role=\"listbox\" aria-hidden=\"{{!isOpen()}}\">\n" +
                                                                                                        "    <li ng-repeat=\"match in matches track by $index\" ng-class=\"{active: isActive($index) }\" ng-mouseenter=\"selectActive($index)\" ng-click=\"selectMatch($index)\" role=\"option\" id=\"{{::match.id}}\">\n" +
                                                                                                        "        <div typeahead-match index=\"$index\" match=\"match\" query=\"query\" template-url=\"templateUrl\"></div>\n" +
                                                                                                  Severity: Major
                                                                                                  Found in client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js and 1 other location - About 1 hr to fix
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 6155..6163

                                                                                                  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 62.

                                                                                                  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("template/modal/backdrop.html", []).run(["$templateCache", function($templateCache) {
                                                                                                    $templateCache.put("template/modal/backdrop.html",
                                                                                                        "<div class=\"modal-backdrop\"\n" +
                                                                                                        "     modal-animation-class=\"fade\"\n" +
                                                                                                        "     modal-in-class=\"in\"\n" +
                                                                                                  Severity: Major
                                                                                                  Found in client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js and 1 other location - About 1 hr to fix
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 6385..6393

                                                                                                  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 62.

                                                                                                  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 3 locations. Consider refactoring.
                                                                                                  Open

                                                                                                  angular.module("template/rating/rating.html", []).run(["$templateCache", function($templateCache) {
                                                                                                    $templateCache.put("template/rating/rating.html",
                                                                                                        "<span ng-mouseleave=\"reset()\" ng-keydown=\"onKeydown($event)\" tabindex=\"0\" role=\"slider\" aria-valuemin=\"0\" aria-valuemax=\"{{range.length}}\" aria-valuenow=\"{{value}}\">\n" +
                                                                                                        "    <span ng-repeat-start=\"r in range track by $index\" class=\"sr-only\">({{ $index < value ? '*' : ' ' }})</span>\n" +
                                                                                                        "    <i ng-repeat-end ng-mouseenter=\"enter($index + 1)\" ng-click=\"rate($index + 1)\" class=\"glyphicon\" ng-class=\"$index < value && (r.stateOn || 'glyphicon-star') || (r.stateOff || 'glyphicon-star-empty')\" ng-attr-title=\"{{r.title}}\" ></i>\n" +
                                                                                                  Severity: Major
                                                                                                  Found in client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js and 2 other locations - About 1 hr to fix
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 6063..6070
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 6176..6183

                                                                                                  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 58.

                                                                                                  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 3 locations. Consider refactoring.
                                                                                                  Open

                                                                                                  angular.module("template/pagination/pager.html", []).run(["$templateCache", function($templateCache) {
                                                                                                    $templateCache.put("template/pagination/pager.html",
                                                                                                        "<ul class=\"pager\">\n" +
                                                                                                        "  <li ng-class=\"{disabled: noPrevious()||ngDisabled, previous: align}\"><a href ng-click=\"selectPage(page - 1, $event)\">{{::getText('previous')}}</a></li>\n" +
                                                                                                        "  <li ng-class=\"{disabled: noNext()||ngDisabled, next: align}\"><a href ng-click=\"selectPage(page + 1, $event)\">{{::getText('next')}}</a></li>\n" +
                                                                                                  Severity: Major
                                                                                                  Found in client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js and 2 other locations - About 1 hr to fix
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 6063..6070
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 6316..6323

                                                                                                  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 58.

                                                                                                  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 3 locations. Consider refactoring.
                                                                                                  Open

                                                                                                  angular.module("template/datepicker/datepicker.html", []).run(["$templateCache", function($templateCache) {
                                                                                                    $templateCache.put("template/datepicker/datepicker.html",
                                                                                                        "<div ng-switch=\"datepickerMode\" role=\"application\" ng-keydown=\"keydown($event)\">\n" +
                                                                                                        "  <daypicker ng-switch-when=\"day\" tabindex=\"0\"></daypicker>\n" +
                                                                                                        "  <monthpicker ng-switch-when=\"month\" tabindex=\"0\"></monthpicker>\n" +
                                                                                                  Severity: Major
                                                                                                  Found in client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js and 2 other locations - About 1 hr to fix
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 6176..6183
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 6316..6323

                                                                                                  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 58.

                                                                                                  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

                                                                                                            {
                                                                                                              key: 'MM',
                                                                                                              regex: '0[1-9]|1[0-2]',
                                                                                                              apply: function(value) { this.month = value - 1; },
                                                                                                              formatter: function(date) { return dateFilter(date, 'MM'); }
                                                                                                  Severity: Major
                                                                                                  Found in client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js and 1 other location - About 1 hr to fix
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 143..148

                                                                                                  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 57.

                                                                                                  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

                                                                                                            {
                                                                                                              key: 'M',
                                                                                                              regex: '[1-9]|1[0-2]',
                                                                                                              apply: function(value) { this.month = value - 1; },
                                                                                                              formatter: function(date) { return dateFilter(date, 'M'); }
                                                                                                  Severity: Major
                                                                                                  Found in client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js and 1 other location - About 1 hr to fix
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 137..142

                                                                                                  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 57.

                                                                                                  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

                                                                                                              formatter: function(date) {
                                                                                                                var value = date.getDate();
                                                                                                                if (/^[1-9]$/.test(value)) {
                                                                                                                  return dateFilter(date, 'dd');
                                                                                                                }
                                                                                                  Severity: Major
                                                                                                  Found in client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js and 1 other location - About 1 hr to fix
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 116..123

                                                                                                  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 56.

                                                                                                  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

                                                                                                              formatter: function(date) {
                                                                                                                var value = date.getMonth();
                                                                                                                if (/^[0-9]$/.test(value)) {
                                                                                                                  return dateFilter(date, 'MM');
                                                                                                                }
                                                                                                  Severity: Major
                                                                                                  Found in client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js and 1 other location - About 1 hr to fix
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 153..160

                                                                                                  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 56.

                                                                                                  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 11 locations. Consider refactoring.
                                                                                                  Open

                                                                                                            {
                                                                                                              key: 'HH',
                                                                                                              regex: '(?:0|1)[0-9]|2[0-3]',
                                                                                                              apply: function(value) { this.hours = +value; },
                                                                                                              formatter: function(date) { return dateFilter(date, 'HH'); }
                                                                                                  Severity: Major
                                                                                                  Found in client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js and 10 other locations - About 1 hr to fix
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 162..167
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 168..173
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 190..195
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 196..201
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 202..207
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 208..213
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 214..219
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 220..225
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 226..231
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 232..237

                                                                                                  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 55.

                                                                                                  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 11 locations. Consider refactoring.
                                                                                                  Open

                                                                                                            {
                                                                                                              key: 'd',
                                                                                                              regex: '[1-2]?[0-9]{1}|3[0-1]{1}',
                                                                                                              apply: function(value) { this.date = +value; },
                                                                                                              formatter: function(date) { return dateFilter(date, 'd'); }
                                                                                                  Severity: Major
                                                                                                  Found in client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js and 10 other locations - About 1 hr to fix
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 162..167
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 184..189
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 190..195
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 196..201
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 202..207
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 208..213
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 214..219
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 220..225
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 226..231
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 232..237

                                                                                                  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 55.

                                                                                                  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 11 locations. Consider refactoring.
                                                                                                  Open

                                                                                                            {
                                                                                                              key: 'hh',
                                                                                                              regex: '0[0-9]|1[0-2]',
                                                                                                              apply: function(value) { this.hours = +value; },
                                                                                                              formatter: function(date) { return dateFilter(date, 'hh'); }
                                                                                                  Severity: Major
                                                                                                  Found in client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js and 10 other locations - About 1 hr to fix
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 162..167
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 168..173
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 184..189
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 196..201
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 202..207
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 208..213
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 214..219
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 220..225
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 226..231
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 232..237

                                                                                                  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 55.

                                                                                                  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 11 locations. Consider refactoring.
                                                                                                  Open

                                                                                                            {
                                                                                                              key: 'H',
                                                                                                              regex: '1?[0-9]|2[0-3]',
                                                                                                              apply: function(value) { this.hours = +value; },
                                                                                                              formatter: function(date) { return dateFilter(date, 'H'); }
                                                                                                  Severity: Major
                                                                                                  Found in client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js and 10 other locations - About 1 hr to fix
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 162..167
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 168..173
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 184..189
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 190..195
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 202..207
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 208..213
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 214..219
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 220..225
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 226..231
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 232..237

                                                                                                  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 55.

                                                                                                  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 11 locations. Consider refactoring.
                                                                                                  Open

                                                                                                            {
                                                                                                              key: 'sss',
                                                                                                              regex: '[0-9][0-9][0-9]',
                                                                                                              apply: function(value) { this.milliseconds = +value; },
                                                                                                              formatter: function(date) { return dateFilter(date, 'sss'); }
                                                                                                  Severity: Major
                                                                                                  Found in client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js and 10 other locations - About 1 hr to fix
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 162..167
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 168..173
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 184..189
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 190..195
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 196..201
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 202..207
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 208..213
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 214..219
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 226..231
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 232..237

                                                                                                  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 55.

                                                                                                  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 11 locations. Consider refactoring.
                                                                                                  Open

                                                                                                            {
                                                                                                              key: 'h',
                                                                                                              regex: '[0-9]|1[0-2]',
                                                                                                              apply: function(value) { this.hours = +value; },
                                                                                                              formatter: function(date) { return dateFilter(date, 'h'); }
                                                                                                  Severity: Major
                                                                                                  Found in client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js and 10 other locations - About 1 hr to fix
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 162..167
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 168..173
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 184..189
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 190..195
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 196..201
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 208..213
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 214..219
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 220..225
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 226..231
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 232..237

                                                                                                  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 55.

                                                                                                  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 11 locations. Consider refactoring.
                                                                                                  Open

                                                                                                            {
                                                                                                              key: 'dd',
                                                                                                              regex: '[0-2][0-9]{1}|3[0-1]{1}',
                                                                                                              apply: function(value) { this.date = +value; },
                                                                                                              formatter: function(date) { return dateFilter(date, 'dd'); }
                                                                                                  Severity: Major
                                                                                                  Found in client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js and 10 other locations - About 1 hr to fix
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 168..173
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 184..189
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 190..195
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 196..201
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 202..207
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 208..213
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 214..219
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 220..225
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 226..231
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 232..237

                                                                                                  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 55.

                                                                                                  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 11 locations. Consider refactoring.
                                                                                                  Open

                                                                                                            {
                                                                                                              key: 'mm',
                                                                                                              regex: '[0-5][0-9]',
                                                                                                              apply: function(value) { this.minutes = +value; },
                                                                                                              formatter: function(date) { return dateFilter(date, 'mm'); }
                                                                                                  Severity: Major
                                                                                                  Found in client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js and 10 other locations - About 1 hr to fix
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 162..167
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 168..173
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 184..189
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 190..195
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 196..201
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 202..207
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 214..219
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 220..225
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 226..231
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 232..237

                                                                                                  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 55.

                                                                                                  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 11 locations. Consider refactoring.
                                                                                                  Open

                                                                                                            {
                                                                                                              key: 'm',
                                                                                                              regex: '[0-9]|[1-5][0-9]',
                                                                                                              apply: function(value) { this.minutes = +value; },
                                                                                                              formatter: function(date) { return dateFilter(date, 'm'); }
                                                                                                  Severity: Major
                                                                                                  Found in client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js and 10 other locations - About 1 hr to fix
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 162..167
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 168..173
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 184..189
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 190..195
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 196..201
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 202..207
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 208..213
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 220..225
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 226..231
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 232..237

                                                                                                  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 55.

                                                                                                  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 11 locations. Consider refactoring.
                                                                                                  Open

                                                                                                            {
                                                                                                              key: 's',
                                                                                                              regex: '[0-9]|[1-5][0-9]',
                                                                                                              apply: function(value) { this.seconds = +value; },
                                                                                                              formatter: function(date) { return dateFilter(date, 's'); }
                                                                                                  Severity: Major
                                                                                                  Found in client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js and 10 other locations - About 1 hr to fix
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 162..167
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 168..173
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 184..189
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 190..195
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 196..201
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 202..207
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 208..213
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 214..219
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 220..225
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 226..231

                                                                                                  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 55.

                                                                                                  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 11 locations. Consider refactoring.
                                                                                                  Open

                                                                                                            {
                                                                                                              key: 'ss',
                                                                                                              regex: '[0-5][0-9]',
                                                                                                              apply: function(value) { this.seconds = +value; },
                                                                                                              formatter: function(date) { return dateFilter(date, 'ss'); }
                                                                                                  Severity: Major
                                                                                                  Found in client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js and 10 other locations - About 1 hr to fix
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 162..167
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 168..173
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 184..189
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 190..195
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 196..201
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 202..207
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 208..213
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 214..219
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 220..225
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 232..237

                                                                                                  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 55.

                                                                                                  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 3 locations. Consider refactoring.
                                                                                                  Open

                                                                                                  angular.module("template/carousel/slide.html", []).run(["$templateCache", function($templateCache) {
                                                                                                    $templateCache.put("template/carousel/slide.html",
                                                                                                        "<div ng-class=\"{\n" +
                                                                                                        "    'active': active\n" +
                                                                                                        "  }\" class=\"item text-center\" ng-transclude></div>\n" +
                                                                                                  Severity: Major
                                                                                                  Found in client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js and 2 other locations - About 55 mins to fix
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 6308..6314
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 6325..6331

                                                                                                  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 54.

                                                                                                  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 3 locations. Consider refactoring.
                                                                                                  Open

                                                                                                  angular.module("template/progressbar/progressbar.html", []).run(["$templateCache", function($templateCache) {
                                                                                                    $templateCache.put("template/progressbar/progressbar.html",
                                                                                                        "<div class=\"progress\">\n" +
                                                                                                        "  <div class=\"progress-bar\" ng-class=\"type && 'progress-bar-' + type\" role=\"progressbar\" aria-valuenow=\"{{value}}\" aria-valuemin=\"0\" aria-valuemax=\"{{max}}\" ng-style=\"{width: (percent < 100 ? percent : 100) + '%'}\" aria-valuetext=\"{{percent | number:0}}%\" style=\"min-width: 0;\" ng-transclude></div>\n" +
                                                                                                        "</div>\n" +
                                                                                                  Severity: Major
                                                                                                  Found in client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js and 2 other locations - About 55 mins to fix
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 6055..6061
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 6325..6331

                                                                                                  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 54.

                                                                                                  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 3 locations. Consider refactoring.
                                                                                                  Open

                                                                                                  angular.module("template/tabs/tab.html", []).run(["$templateCache", function($templateCache) {
                                                                                                    $templateCache.put("template/tabs/tab.html",
                                                                                                        "<li ng-class=\"{active: active, disabled: disabled}\">\n" +
                                                                                                        "  <a href ng-click=\"select()\" tab-heading-transclude>{{heading}}</a>\n" +
                                                                                                        "</li>\n" +
                                                                                                  Severity: Major
                                                                                                  Found in client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js and 2 other locations - About 55 mins to fix
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 6055..6061
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 6308..6314

                                                                                                  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 54.

                                                                                                  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 5 locations. Consider refactoring.
                                                                                                  Open

                                                                                                            {
                                                                                                              key: 'GG',
                                                                                                              regex: $locale.DATETIME_FORMATS.ERAS.join('|'),
                                                                                                              formatter: function(date) { return dateFilter(date, 'GG'); }
                                                                                                            },
                                                                                                  Severity: Major
                                                                                                  Found in client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js and 4 other locations - About 35 mins to fix
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 174..178
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 179..183
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 282..286
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 292..296

                                                                                                  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 47.

                                                                                                  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 5 locations. Consider refactoring.
                                                                                                  Open

                                                                                                            {
                                                                                                              key: 'G',
                                                                                                              regex: $locale.DATETIME_FORMATS.ERAS.join('|'),
                                                                                                              formatter: function(date) { return dateFilter(date, 'G'); }
                                                                                                            }
                                                                                                  Severity: Major
                                                                                                  Found in client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js and 4 other locations - About 35 mins to fix
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 174..178
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 179..183
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 282..286
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 287..291

                                                                                                  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 47.

                                                                                                  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 5 locations. Consider refactoring.
                                                                                                  Open

                                                                                                            {
                                                                                                              key: 'EEEE',
                                                                                                              regex: $locale.DATETIME_FORMATS.DAY.join('|'),
                                                                                                              formatter: function(date) { return dateFilter(date, 'EEEE'); }
                                                                                                            },
                                                                                                  Severity: Major
                                                                                                  Found in client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js and 4 other locations - About 35 mins to fix
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 179..183
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 282..286
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 287..291
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 292..296

                                                                                                  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 47.

                                                                                                  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 5 locations. Consider refactoring.
                                                                                                  Open

                                                                                                            {
                                                                                                              key: 'GGG',
                                                                                                              regex: $locale.DATETIME_FORMATS.ERAS.join('|'),
                                                                                                              formatter: function(date) { return dateFilter(date, 'GGG'); }
                                                                                                            },
                                                                                                  Severity: Major
                                                                                                  Found in client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js and 4 other locations - About 35 mins to fix
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 174..178
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 179..183
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 287..291
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 292..296

                                                                                                  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 47.

                                                                                                  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 5 locations. Consider refactoring.
                                                                                                  Open

                                                                                                            {
                                                                                                              key: 'EEE',
                                                                                                              regex: $locale.DATETIME_FORMATS.SHORTDAY.join('|'),
                                                                                                              formatter: function(date) { return dateFilter(date, 'EEE'); }
                                                                                                            },
                                                                                                  Severity: Major
                                                                                                  Found in client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js and 4 other locations - About 35 mins to fix
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 174..178
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 282..286
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 287..291
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 292..296

                                                                                                  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 47.

                                                                                                  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("template/progressbar/bar.html", []).run(["$templateCache", function($templateCache) {
                                                                                                    $templateCache.put("template/progressbar/bar.html",
                                                                                                        "<div class=\"progress-bar\" ng-class=\"type && 'progress-bar-' + type\" role=\"progressbar\" aria-valuenow=\"{{value}}\" aria-valuemin=\"0\" aria-valuemax=\"{{max}}\" ng-style=\"{width: (percent < 100 ? percent : 100) + '%'}\" aria-valuetext=\"{{percent | number:0}}%\" style=\"min-width: 0;\" ng-transclude></div>\n" +
                                                                                                        "");
                                                                                                  }]);
                                                                                                  Severity: Minor
                                                                                                  Found in client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js and 1 other location - About 35 mins to fix
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 6379..6383

                                                                                                  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 46.

                                                                                                  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("template/typeahead/typeahead-match.html", []).run(["$templateCache", function($templateCache) {
                                                                                                    $templateCache.put("template/typeahead/typeahead-match.html",
                                                                                                        "<a href tabindex=\"-1\" ng-bind-html=\"match.label | typeaheadHighlight:query\"></a>\n" +
                                                                                                        "");
                                                                                                  }]);
                                                                                                  Severity: Minor
                                                                                                  Found in client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js and 1 other location - About 35 mins to fix
                                                                                                  client/cat3/customlib/ui-bootstrap-custom-tpls-0.13.4.js on lines 6297..6301

                                                                                                  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 46.

                                                                                                  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