hugoruscitti/pilas

View on GitHub
data/asistente/js/ui-bootstrap-tpls.js

Summary

Maintainability
F
3 wks
Test Coverage

File ui-bootstrap-tpls.js has 2682 lines of code (exceeds 250 allowed). Consider refactoring.
Open

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

 * Version: 0.10.0 - 2014-01-13
Severity: Major
Found in data/asistente/js/ui-bootstrap-tpls.js - About 1 wk to fix

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

      this.$get = [ '$window', '$compile', '$timeout', '$parse', '$document', '$position', '$interpolate', function ( $window, $compile, $timeout, $parse, $document, $position, $interpolate ) {
        return function $tooltip ( type, prefix, defaultTriggerShow ) {
          var options = angular.extend( {}, defaultOptions, globalOptions );
    
          /**
    Severity: Major
    Found in data/asistente/js/ui-bootstrap-tpls.js - About 7 hrs to fix

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

          return function $tooltip ( type, prefix, defaultTriggerShow ) {
            var options = angular.extend( {}, defaultOptions, globalOptions );
      
            /**
             * Returns an object of show and hide triggers.
      Severity: Major
      Found in data/asistente/js/ui-bootstrap-tpls.js - About 7 hrs to fix

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

            link: function(scope, element, attrs, ngModel) {
              if ( !ngModel ) {
                return; // do nothing if no ng-model
              }
        
        
        Severity: Major
        Found in data/asistente/js/ui-bootstrap-tpls.js - About 6 hrs to fix

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

                  compile: function (tElem, tAttrs) {
                    var tooltipLinker = $compile( template );
          
                    return function link ( scope, element, attrs ) {
                      var tooltip;
          Severity: Major
          Found in data/asistente/js/ui-bootstrap-tpls.js - About 6 hrs to fix

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

                link: function(originalScope, element, attrs, ngModel) {
                  var scope = originalScope.$new(), // create a child scope so we are not polluting original one
                      dateFormat,
                      closeOnDateSelection = angular.isDefined(attrs.closeOnDateSelection) ? originalScope.$eval(attrs.closeOnDateSelection) : datepickerPopupConfig.closeOnDateSelection,
                      appendToBody = angular.isDefined(attrs.datepickerAppendToBody) ? originalScope.$eval(attrs.datepickerAppendToBody) : datepickerPopupConfig.appendToBody;
            Severity: Major
            Found in data/asistente/js/ui-bootstrap-tpls.js - About 6 hrs to fix

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

                        return function link ( scope, element, attrs ) {
                          var tooltip;
                          var transitionTimeout;
                          var popupTimeout;
                          var appendToBody = angular.isDefined( options.appendToBody ) ? options.appendToBody : false;
              Severity: Major
              Found in data/asistente/js/ui-bootstrap-tpls.js - About 6 hrs to fix

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

                    link:function (originalScope, element, attrs, modelCtrl) {
                
                      //SUPPORTED ATTRIBUTES (OPTIONS)
                
                      //minimal no of characters that needs to be entered before typeahead kicks-in
                Severity: Major
                Found in data/asistente/js/ui-bootstrap-tpls.js - About 6 hrs to fix

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

                      link: function(scope, element, attrs, ctrls) {
                        var datepickerCtrl = ctrls[0], ngModel = ctrls[1];
                  
                        if (!ngModel) {
                          return; // do nothing if no ng-model
                  Severity: Major
                  Found in data/asistente/js/ui-bootstrap-tpls.js - About 3 hrs to fix

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

                            function ($injector, $rootScope, $q, $http, $templateCache, $controller, $modalStack) {
                    
                              var $modal = {};
                    
                              function getTemplatePromise(options) {
                    Severity: Major
                    Found in data/asistente/js/ui-bootstrap-tpls.js - About 2 hrs to fix

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

                          link: function(scope, element, attrs, paginationCtrl) {
                      
                            // Setup configuration parameters
                            var maxSize,
                            boundaryLinks  = paginationCtrl.getAttributeValue(attrs.boundaryLinks,  config.boundaryLinks      ),
                      Severity: Major
                      Found in data/asistente/js/ui-bootstrap-tpls.js - About 2 hrs to fix

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

                              link: function (scope, element, attrs) {
                        
                                var initialAnimSkip = true;
                                var currentTransition;
                        
                        
                        Severity: Major
                        Found in data/asistente/js/ui-bootstrap-tpls.js - About 2 hrs to fix

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

                                    $modal.open = function (modalOptions) {
                          
                                      var modalResultDeferred = $q.defer();
                                      var modalOpenedDeferred = $q.defer();
                          
                          
                          Severity: Minor
                          Found in data/asistente/js/ui-bootstrap-tpls.js - About 2 hrs to fix

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

                                  paginationCtrl.getPages = function(currentPage, totalPages) {
                                    var pages = [];
                            
                                    // Default page limits
                                    var startPage = 1, endPage = totalPages;
                            Severity: Minor
                            Found in data/asistente/js/ui-bootstrap-tpls.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 data/asistente/js/ui-bootstrap-tpls.js - About 1 hr to fix

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

                                  self.select = function(nextSlide, direction) {
                                    var nextIndex = slides.indexOf(nextSlide);
                                    //Decide direction if it's not given
                                    if (direction === undefined) {
                                      direction = nextIndex > currentIndex ? "next" : "prev";
                                Severity: Minor
                                Found in data/asistente/js/ui-bootstrap-tpls.js - About 1 hr to fix

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

                                      compile: function(elm, attrs, transclude) {
                                        return function postLink(scope, elm, attrs, tabsetCtrl) {
                                          var getActive, setActive;
                                          if (attrs.active) {
                                            getActive = $parse(attrs.active);
                                  Severity: Minor
                                  Found in data/asistente/js/ui-bootstrap-tpls.js - About 1 hr to fix

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

                                          return function postLink(scope, elm, attrs, tabsetCtrl) {
                                            var getActive, setActive;
                                            if (attrs.active) {
                                              getActive = $parse(attrs.active);
                                              setActive = getActive.assign;
                                    Severity: Minor
                                    Found in data/asistente/js/ui-bootstrap-tpls.js - About 1 hr to fix

                                      Function positionTooltip has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                                  var positionTooltip = function (){
                                                    var position,
                                                      ttWidth,
                                                      ttHeight,
                                                      ttPosition;
                                      Severity: Minor
                                      Found in data/asistente/js/ui-bootstrap-tpls.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 data/asistente/js/ui-bootstrap-tpls.js - About 1 hr to fix

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

                                                var getMatchesAsync = function(inputValue) {
                                          
                                                  var locals = {$viewValue: inputValue};
                                                  isLoadingSetter(originalScope, true);
                                                  $q.when(parserResult.source(originalScope, locals)).then(function(matches) {
                                          Severity: Minor
                                          Found in data/asistente/js/ui-bootstrap-tpls.js - About 1 hr to fix

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

                                            .controller('TabsetController', ['$scope', function TabsetCtrl($scope) {
                                              var ctrl = this,
                                                  tabs = ctrl.tabs = $scope.tabs = [];
                                            
                                              ctrl.select = function(tab) {
                                            Severity: Minor
                                            Found in data/asistente/js/ui-bootstrap-tpls.js - About 55 mins 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 $get has 7 arguments (exceeds 4 allowed). Consider refactoring.
                                            Open

                                                    function ($injector, $rootScope, $q, $http, $templateCache, $controller, $modalStack) {
                                            Severity: Major
                                            Found in data/asistente/js/ui-bootstrap-tpls.js - About 50 mins to fix

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

                                                this.$get = [ '$window', '$compile', '$timeout', '$parse', '$document', '$position', '$interpolate', function ( $window, $compile, $timeout, $parse, $document, $position, $interpolate ) {
                                              Severity: Major
                                              Found in data/asistente/js/ui-bootstrap-tpls.js - About 50 mins to fix

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

                                                      function makePage(number, text, isDisabled, isPrevious, isNext) {
                                                Severity: Minor
                                                Found in data/asistente/js/ui-bootstrap-tpls.js - About 35 mins to fix

                                                  Avoid too many return statements within this function.
                                                  Open

                                                            return undefined;
                                                  Severity: Major
                                                  Found in data/asistente/js/ui-bootstrap-tpls.js - About 30 mins to fix

                                                    Similar blocks of code found in 2 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-style=\"{display: (isOpen && 'block') || 'none', top: position.top+'px', left: position.left+'px'}\">\n" +
                                                        "    <li ng-transclude></li>\n" +
                                                        "    <li ng-show=\"showButtonBar\" style=\"padding:10px 9px 2px\">\n" +
                                                    Severity: Major
                                                    Found in data/asistente/js/ui-bootstrap-tpls.js and 1 other location - About 2 hrs to fix
                                                    data/asistente/js/ui-bootstrap-tpls.js on lines 3618..3632

                                                    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/tabs/tabset.html", []).run(["$templateCache", function($templateCache) {
                                                      $templateCache.put("template/tabs/tabset.html",
                                                        "\n" +
                                                        "<div class=\"tabbable\">\n" +
                                                        "  <ul class=\"nav {{type && 'nav-' + type}}\" ng-class=\"{'nav-stacked': vertical, 'nav-justified': justified}\" ng-transclude></ul>\n" +
                                                    Severity: Major
                                                    Found in data/asistente/js/ui-bootstrap-tpls.js and 1 other location - About 2 hrs to fix
                                                    data/asistente/js/ui-bootstrap-tpls.js on lines 3508..3522

                                                    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

                                                        "<table>\n" +
                                                        "  <thead>\n" +
                                                        "    <tr>\n" +
                                                        "      <th><button type=\"button\" class=\"btn btn-default btn-sm pull-left\" ng-click=\"move(-1)\"><i class=\"glyphicon glyphicon-chevron-left\"></i></button></th>\n" +
                                                        "      <th colspan=\"{{rows[0].length - 2 + showWeekNumbers}}\"><button type=\"button\" class=\"btn btn-default btn-sm btn-block\" ng-click=\"toggleMode()\"><strong>{{title}}</strong></button></th>\n" +
                                                    Severity: Major
                                                    Found in data/asistente/js/ui-bootstrap-tpls.js and 1 other location - About 2 hrs to fix
                                                    data/asistente/js/ui-bootstrap-tpls.js on lines 3636..3657

                                                    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

                                                        "<table>\n" +
                                                        "    <tbody>\n" +
                                                        "        <tr class=\"text-center\">\n" +
                                                        "            <td><a ng-click=\"incrementHours()\" class=\"btn btn-link\"><span class=\"glyphicon glyphicon-chevron-up\"></span></a></td>\n" +
                                                        "            <td>&nbsp;</td>\n" +
                                                    Severity: Major
                                                    Found in data/asistente/js/ui-bootstrap-tpls.js and 1 other location - About 2 hrs to fix
                                                    data/asistente/js/ui-bootstrap-tpls.js on lines 3484..3505

                                                    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

                                                            hoursInputEl.bind('blur', function(e) {
                                                              if ( !scope.validHours && scope.hours < 10) {
                                                                scope.$apply( function() {
                                                                  scope.hours = pad( scope.hours );
                                                                });
                                                    Severity: Major
                                                    Found in data/asistente/js/ui-bootstrap-tpls.js and 1 other location - About 2 hrs to fix
                                                    data/asistente/js/ui-bootstrap-tpls.js on lines 3004..3010

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

                                                    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

                                                            minutesInputEl.bind('blur', function(e) {
                                                              if ( !scope.invalidMinutes && scope.minutes < 10 ) {
                                                                scope.$apply( function() {
                                                                  scope.minutes = pad( scope.minutes );
                                                                });
                                                    Severity: Major
                                                    Found in data/asistente/js/ui-bootstrap-tpls.js and 1 other location - About 2 hrs to fix
                                                    data/asistente/js/ui-bootstrap-tpls.js on lines 2985..2991

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

                                                    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 {{placement}}\" ng-class=\"{ in: isOpen(), fade: animation() }\">\n" +
                                                        "  <div class=\"arrow\"></div>\n" +
                                                        "\n" +
                                                    Severity: Major
                                                    Found in data/asistente/js/ui-bootstrap-tpls.js and 1 other location - About 1 hr to fix
                                                    data/asistente/js/ui-bootstrap-tpls.js on lines 3457..3468

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

                                                    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/carousel/carousel.html", []).run(["$templateCache", function($templateCache) {
                                                      $templateCache.put("template/carousel/carousel.html",
                                                        "<div ng-mouseenter=\"pause()\" ng-mouseleave=\"play()\" class=\"carousel\">\n" +
                                                        "    <ol class=\"carousel-indicators\" ng-show=\"slides().length > 1\">\n" +
                                                        "        <li ng-repeat=\"slide in slides()\" ng-class=\"{active: isActive(slide)}\" ng-click=\"select(slide)\"></li>\n" +
                                                    Severity: Major
                                                    Found in data/asistente/js/ui-bootstrap-tpls.js and 1 other location - About 1 hr to fix
                                                    data/asistente/js/ui-bootstrap-tpls.js on lines 3568..3579

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

                                                    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

                                                          if (attrs.max) {
                                                            scope.$parent.$watch($parse(attrs.max), function(value) {
                                                              datepickerCtrl.maxDate = value ? new Date(value) : null;
                                                              refill();
                                                            });
                                                    Severity: Major
                                                    Found in data/asistente/js/ui-bootstrap-tpls.js and 1 other location - About 1 hr to fix
                                                    data/asistente/js/ui-bootstrap-tpls.js on lines 992..997

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

                                                    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

                                                          if (attrs.min) {
                                                            scope.$parent.$watch($parse(attrs.min), function(value) {
                                                              datepickerCtrl.minDate = value ? new Date(value) : null;
                                                              refill();
                                                            });
                                                    Severity: Major
                                                    Found in data/asistente/js/ui-bootstrap-tpls.js and 1 other location - About 1 hr to fix
                                                    data/asistente/js/ui-bootstrap-tpls.js on lines 998..1003

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

                                                    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

                                                          $modalStack.dismiss = function (modalInstance, reason) {
                                                            var modalWindow = openedWindows.get(modalInstance).value;
                                                            if (modalWindow) {
                                                              modalWindow.deferred.reject(reason);
                                                              removeModalWindow(modalInstance);
                                                    Severity: Major
                                                    Found in data/asistente/js/ui-bootstrap-tpls.js and 1 other location - About 1 hr to fix
                                                    data/asistente/js/ui-bootstrap-tpls.js on lines 1603..1609

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

                                                    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

                                                          $modalStack.close = function (modalInstance, result) {
                                                            var modalWindow = openedWindows.get(modalInstance).value;
                                                            if (modalWindow) {
                                                              modalWindow.deferred.resolve(result);
                                                              removeModalWindow(modalInstance);
                                                    Severity: Major
                                                    Found in data/asistente/js/ui-bootstrap-tpls.js and 1 other location - About 1 hr to fix
                                                    data/asistente/js/ui-bootstrap-tpls.js on lines 1611..1617

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

                                                    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

                                                            minutesInputEl.bind('mousewheel wheel', function(e) {
                                                              scope.$apply( (isScrollingUp(e)) ? scope.incrementMinutes() : scope.decrementMinutes() );
                                                              e.preventDefault();
                                                            });
                                                    Severity: Major
                                                    Found in data/asistente/js/ui-bootstrap-tpls.js and 1 other location - About 1 hr to fix
                                                    data/asistente/js/ui-bootstrap-tpls.js on lines 2949..2952

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

                                                    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

                                                            hoursInputEl.bind('mousewheel wheel', function(e) {
                                                              scope.$apply( (isScrollingUp(e)) ? scope.incrementHours() : scope.decrementHours() );
                                                              e.preventDefault();
                                                            });
                                                    Severity: Major
                                                    Found in data/asistente/js/ui-bootstrap-tpls.js and 1 other location - About 1 hr to fix
                                                    data/asistente/js/ui-bootstrap-tpls.js on lines 2954..2957

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

                                                    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 4 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\")'>\n" +
                                                        "    <button ng-show='closeable' type='button' class='close' ng-click='close()'>&times;</button>\n" +
                                                        "    <div ng-transclude></div>\n" +
                                                    Severity: Major
                                                    Found in data/asistente/js/ui-bootstrap-tpls.js and 3 other locations - About 1 hr to fix
                                                    data/asistente/js/ui-bootstrap-tpls.js on lines 3550..3557
                                                    data/asistente/js/ui-bootstrap-tpls.js on lines 3559..3566
                                                    data/asistente/js/ui-bootstrap-tpls.js on lines 3670..3677

                                                    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 4 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-style=\"{display: isOpen()&&'block' || 'none', top: position.top+'px', left: position.left+'px'}\">\n" +
                                                        "    <li ng-repeat=\"match in matches\" ng-class=\"{active: isActive($index) }\" ng-mouseenter=\"selectActive($index)\" ng-click=\"selectMatch($index)\">\n" +
                                                        "        <div typeahead-match index=\"$index\" match=\"match\" query=\"query\" template-url=\"templateUrl\"></div>\n" +
                                                    Severity: Major
                                                    Found in data/asistente/js/ui-bootstrap-tpls.js and 3 other locations - About 1 hr to fix
                                                    data/asistente/js/ui-bootstrap-tpls.js on lines 3448..3455
                                                    data/asistente/js/ui-bootstrap-tpls.js on lines 3550..3557
                                                    data/asistente/js/ui-bootstrap-tpls.js on lines 3559..3566

                                                    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 4 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 {{placement}}\" ng-class=\"{ in: isOpen(), fade: animation() }\">\n" +
                                                        "  <div class=\"tooltip-arrow\"></div>\n" +
                                                        "  <div class=\"tooltip-inner\" bind-html-unsafe=\"content\"></div>\n" +
                                                    Severity: Major
                                                    Found in data/asistente/js/ui-bootstrap-tpls.js and 3 other locations - About 1 hr to fix
                                                    data/asistente/js/ui-bootstrap-tpls.js on lines 3448..3455
                                                    data/asistente/js/ui-bootstrap-tpls.js on lines 3559..3566
                                                    data/asistente/js/ui-bootstrap-tpls.js on lines 3670..3677

                                                    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 4 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 {{placement}}\" ng-class=\"{ in: isOpen(), fade: animation() }\">\n" +
                                                        "  <div class=\"tooltip-arrow\"></div>\n" +
                                                        "  <div class=\"tooltip-inner\" ng-bind=\"content\"></div>\n" +
                                                    Severity: Major
                                                    Found in data/asistente/js/ui-bootstrap-tpls.js and 3 other locations - About 1 hr to fix
                                                    data/asistente/js/ui-bootstrap-tpls.js on lines 3448..3455
                                                    data/asistente/js/ui-bootstrap-tpls.js on lines 3550..3557
                                                    data/asistente/js/ui-bootstrap-tpls.js on lines 3670..3677

                                                    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

                                                      if ($attrs.readonly) {
                                                        $scope.$parent.$watch($parse($attrs.readonly), function(value) {
                                                          $scope.readonly = !!value;
                                                        });
                                                      }
                                                    Severity: Major
                                                    Found in data/asistente/js/ui-bootstrap-tpls.js and 1 other location - About 1 hr to fix
                                                    data/asistente/js/ui-bootstrap-tpls.js on lines 2772..2776

                                                    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

                                                            if ( attrs.disabled ) {
                                                              scope.$parent.$watch($parse(attrs.disabled), function(value) {
                                                                scope.disabled = !! value;
                                                              });
                                                            }
                                                    Severity: Major
                                                    Found in data/asistente/js/ui-bootstrap-tpls.js and 1 other location - About 1 hr to fix
                                                    data/asistente/js/ui-bootstrap-tpls.js on lines 2537..2541

                                                    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

                                                    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: Minor
                                                    Found in data/asistente/js/ui-bootstrap-tpls.js and 1 other location - About 55 mins to fix
                                                    data/asistente/js/ui-bootstrap-tpls.js on lines 1989..2359

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

                                                    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/modal/window.html", []).run(["$templateCache", function($templateCache) {
                                                      $templateCache.put("template/modal/window.html",
                                                        "<div tabindex=\"-1\" class=\"modal fade {{ windowClass }}\" ng-class=\"{in: animate}\" ng-style=\"{'z-index': 1050 + index*10, display: 'block'}\" ng-click=\"close($event)\">\n" +
                                                        "    <div class=\"modal-dialog\"><div class=\"modal-content\" ng-transclude></div></div>\n" +
                                                        "</div>");
                                                    Severity: Major
                                                    Found in data/asistente/js/ui-bootstrap-tpls.js and 4 other locations - About 45 mins to fix
                                                    data/asistente/js/ui-bootstrap-tpls.js on lines 3536..3541
                                                    data/asistente/js/ui-bootstrap-tpls.js on lines 3543..3548
                                                    data/asistente/js/ui-bootstrap-tpls.js on lines 3596..3601
                                                    data/asistente/js/ui-bootstrap-tpls.js on lines 3611..3616

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

                                                    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/tabs/tabset-titles.html", []).run(["$templateCache", function($templateCache) {
                                                      $templateCache.put("template/tabs/tabset-titles.html",
                                                        "<ul class=\"nav {{type && 'nav-' + type}}\" ng-class=\"{'nav-stacked': vertical}\">\n" +
                                                        "</ul>\n" +
                                                        "");
                                                    Severity: Major
                                                    Found in data/asistente/js/ui-bootstrap-tpls.js and 4 other locations - About 45 mins to fix
                                                    data/asistente/js/ui-bootstrap-tpls.js on lines 3529..3534
                                                    data/asistente/js/ui-bootstrap-tpls.js on lines 3536..3541
                                                    data/asistente/js/ui-bootstrap-tpls.js on lines 3543..3548
                                                    data/asistente/js/ui-bootstrap-tpls.js on lines 3596..3601

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

                                                    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/pager.html", []).run(["$templateCache", function($templateCache) {
                                                      $templateCache.put("template/pagination/pager.html",
                                                        "<ul class=\"pager\">\n" +
                                                        "  <li ng-repeat=\"page in pages\" ng-class=\"{disabled: page.disabled, previous: page.previous, next: page.next}\"><a ng-click=\"selectPage(page.number)\">{{page.text}}</a></li>\n" +
                                                        "</ul>");
                                                    Severity: Major
                                                    Found in data/asistente/js/ui-bootstrap-tpls.js and 4 other locations - About 45 mins to fix
                                                    data/asistente/js/ui-bootstrap-tpls.js on lines 3529..3534
                                                    data/asistente/js/ui-bootstrap-tpls.js on lines 3543..3548
                                                    data/asistente/js/ui-bootstrap-tpls.js on lines 3596..3601
                                                    data/asistente/js/ui-bootstrap-tpls.js on lines 3611..3616

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

                                                    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/rating/rating.html", []).run(["$templateCache", function($templateCache) {
                                                      $templateCache.put("template/rating/rating.html",
                                                        "<span ng-mouseleave=\"reset()\">\n" +
                                                        "    <i ng-repeat=\"r in range\" ng-mouseenter=\"enter($index + 1)\" ng-click=\"rate($index + 1)\" class=\"glyphicon\" ng-class=\"$index < val && (r.stateOn || 'glyphicon-star') || (r.stateOff || 'glyphicon-star-empty')\"></i>\n" +
                                                        "</span>");
                                                    Severity: Major
                                                    Found in data/asistente/js/ui-bootstrap-tpls.js and 4 other locations - About 45 mins to fix
                                                    data/asistente/js/ui-bootstrap-tpls.js on lines 3529..3534
                                                    data/asistente/js/ui-bootstrap-tpls.js on lines 3536..3541
                                                    data/asistente/js/ui-bootstrap-tpls.js on lines 3543..3548
                                                    data/asistente/js/ui-bootstrap-tpls.js on lines 3611..3616

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

                                                    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-repeat=\"page in pages\" ng-class=\"{active: page.active, disabled: page.disabled}\"><a ng-click=\"selectPage(page.number)\">{{page.text}}</a></li>\n" +
                                                        "</ul>");
                                                    Severity: Major
                                                    Found in data/asistente/js/ui-bootstrap-tpls.js and 4 other locations - About 45 mins to fix
                                                    data/asistente/js/ui-bootstrap-tpls.js on lines 3529..3534
                                                    data/asistente/js/ui-bootstrap-tpls.js on lines 3536..3541
                                                    data/asistente/js/ui-bootstrap-tpls.js on lines 3596..3601
                                                    data/asistente/js/ui-bootstrap-tpls.js on lines 3611..3616

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

                                                    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

                                                      this.maxRange = angular.isDefined($attrs.max) ? $scope.$parent.$eval($attrs.max) : ratingConfig.max;
                                                    Severity: Major
                                                    Found in data/asistente/js/ui-bootstrap-tpls.js and 2 other locations - About 40 mins to fix
                                                    data/asistente/js/ui-bootstrap-tpls.js on lines 2496..2496
                                                    data/asistente/js/ui-bootstrap-tpls.js on lines 2497..2497

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

                                                    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

                                                      this.stateOff = angular.isDefined($attrs.stateOff) ? $scope.$parent.$eval($attrs.stateOff) : ratingConfig.stateOff;
                                                    Severity: Major
                                                    Found in data/asistente/js/ui-bootstrap-tpls.js and 2 other locations - About 40 mins to fix
                                                    data/asistente/js/ui-bootstrap-tpls.js on lines 2495..2495
                                                    data/asistente/js/ui-bootstrap-tpls.js on lines 2496..2496

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

                                                    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

                                                              left: boundingClientRect.left + ($window.pageXOffset || $document[0].body.scrollLeft  || $document[0].documentElement.scrollLeft)
                                                    Severity: Minor
                                                    Found in data/asistente/js/ui-bootstrap-tpls.js and 1 other location - About 40 mins to fix
                                                    data/asistente/js/ui-bootstrap-tpls.js on lines 831..831

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

                                                    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

                                                      this.stateOn = angular.isDefined($attrs.stateOn) ? $scope.$parent.$eval($attrs.stateOn) : ratingConfig.stateOn;
                                                    Severity: Major
                                                    Found in data/asistente/js/ui-bootstrap-tpls.js and 2 other locations - About 40 mins to fix
                                                    data/asistente/js/ui-bootstrap-tpls.js on lines 2495..2495
                                                    data/asistente/js/ui-bootstrap-tpls.js on lines 2497..2497

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

                                                    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

                                                              top: boundingClientRect.top + ($window.pageYOffset || $document[0].body.scrollTop || $document[0].documentElement.scrollTop),
                                                    Severity: Minor
                                                    Found in data/asistente/js/ui-bootstrap-tpls.js and 1 other location - About 40 mins to fix
                                                    data/asistente/js/ui-bootstrap-tpls.js on lines 832..832

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

                                                    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

                                                                      ttPosition = {
                                                                        top: position.top + position.height,
                                                                        left: position.left + position.width / 2 - ttWidth / 2
                                                                      };
                                                    Severity: Minor
                                                    Found in data/asistente/js/ui-bootstrap-tpls.js and 1 other location - About 40 mins to fix
                                                    data/asistente/js/bootstrap.js on lines 1133..1133

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

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

                                                          attrs.$observe('closeText', function(text) {
                                                            scope.closeText = angular.isDefined(text) ? text : datepickerPopupConfig.closeText;
                                                          });
                                                    Severity: Major
                                                    Found in data/asistente/js/ui-bootstrap-tpls.js and 3 other locations - About 35 mins to fix
                                                    data/asistente/js/ui-bootstrap-tpls.js on lines 1125..1127
                                                    data/asistente/js/ui-bootstrap-tpls.js on lines 1128..1130
                                                    data/asistente/js/ui-bootstrap-tpls.js on lines 1131..1133

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

                                                          attrs.$observe('clearText', function(text) {
                                                            scope.clearText = angular.isDefined(text) ? text : datepickerPopupConfig.clearText;
                                                          });
                                                    Severity: Major
                                                    Found in data/asistente/js/ui-bootstrap-tpls.js and 3 other locations - About 35 mins to fix
                                                    data/asistente/js/ui-bootstrap-tpls.js on lines 1125..1127
                                                    data/asistente/js/ui-bootstrap-tpls.js on lines 1128..1130
                                                    data/asistente/js/ui-bootstrap-tpls.js on lines 1134..1136

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

                                                          attrs.$observe('currentText', function(text) {
                                                            scope.currentText = angular.isDefined(text) ? text : datepickerPopupConfig.currentText;
                                                          });
                                                    Severity: Major
                                                    Found in data/asistente/js/ui-bootstrap-tpls.js and 3 other locations - About 35 mins to fix
                                                    data/asistente/js/ui-bootstrap-tpls.js on lines 1128..1130
                                                    data/asistente/js/ui-bootstrap-tpls.js on lines 1131..1133
                                                    data/asistente/js/ui-bootstrap-tpls.js on lines 1134..1136

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

                                                          attrs.$observe('toggleWeeksText', function(text) {
                                                            scope.toggleWeeksText = angular.isDefined(text) ? text : datepickerPopupConfig.toggleWeeksText;
                                                          });
                                                    Severity: Major
                                                    Found in data/asistente/js/ui-bootstrap-tpls.js and 3 other locations - About 35 mins to fix
                                                    data/asistente/js/ui-bootstrap-tpls.js on lines 1125..1127
                                                    data/asistente/js/ui-bootstrap-tpls.js on lines 1131..1133
                                                    data/asistente/js/ui-bootstrap-tpls.js on lines 1134..1136

                                                    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

                                                                      ttPosition = {
                                                                        top: position.top + position.height / 2 - ttHeight / 2,
                                                                        left: position.left + position.width
                                                                      };
                                                    Severity: Minor
                                                    Found in data/asistente/js/ui-bootstrap-tpls.js and 1 other location - About 35 mins to fix
                                                    data/asistente/js/bootstrap.js on lines 1136..1136

                                                    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

                                                          if (attrs.hourStep) {
                                                            scope.$parent.$watch($parse(attrs.hourStep), function(value) {
                                                              hourStep = parseInt(value, 10);
                                                            });
                                                          }
                                                    Severity: Minor
                                                    Found in data/asistente/js/ui-bootstrap-tpls.js and 1 other location - About 35 mins to fix
                                                    data/asistente/js/ui-bootstrap-tpls.js on lines 2880..2884

                                                    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

                                                          if (attrs.minuteStep) {
                                                            scope.$parent.$watch($parse(attrs.minuteStep), function(value) {
                                                              minuteStep = parseInt(value, 10);
                                                            });
                                                          }
                                                    Severity: Minor
                                                    Found in data/asistente/js/ui-bootstrap-tpls.js and 1 other location - About 35 mins to fix
                                                    data/asistente/js/ui-bootstrap-tpls.js on lines 2873..2877

                                                    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

                                                          scope.vertical = angular.isDefined(attrs.vertical) ? scope.$parent.$eval(attrs.vertical) : false;
                                                    Severity: Minor
                                                    Found in data/asistente/js/ui-bootstrap-tpls.js and 1 other location - About 30 mins to fix
                                                    data/asistente/js/ui-bootstrap-tpls.js on lines 2638..2638

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

                                                    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

                                                          scope.readonlyInput = (angular.isDefined(attrs.readonlyInput)) ? scope.$eval(attrs.readonlyInput) : timepickerConfig.readonlyInput;
                                                    Severity: Minor
                                                    Found in data/asistente/js/ui-bootstrap-tpls.js and 1 other location - About 30 mins to fix
                                                    data/asistente/js/ui-bootstrap-tpls.js on lines 1118..1118

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

                                                    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

                                                          scope.showButtonBar = angular.isDefined(attrs.showButtonBar) ? originalScope.$eval(attrs.showButtonBar) : datepickerPopupConfig.showButtonBar;
                                                    Severity: Minor
                                                    Found in data/asistente/js/ui-bootstrap-tpls.js and 1 other location - About 30 mins to fix
                                                    data/asistente/js/ui-bootstrap-tpls.js on lines 2960..2960

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

                                                    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

                                                          scope.justified = angular.isDefined(attrs.justified) ? scope.$parent.$eval(attrs.justified) : false;
                                                    Severity: Minor
                                                    Found in data/asistente/js/ui-bootstrap-tpls.js and 1 other location - About 30 mins to fix
                                                    data/asistente/js/ui-bootstrap-tpls.js on lines 2637..2637

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

                                                    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