redu/autorregulacao

View on GitHub
lib/assets/javascripts/bootstrap-redu.js

Summary

Maintainability
F
2 wks
Test Coverage

File bootstrap-redu.js has 1475 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/* ===================================================
 * bootstrap-transition.js v2.0.4
 * http://twitter.github.com/bootstrap/javascript.html#transitions
 * ===================================================
 * Copyright 2012 Twitter, Inc.
Severity: Major
Found in lib/assets/javascripts/bootstrap-redu.js - About 3 days to fix

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

      , ajaxBefore: function(options) {
          settings = $.extend(settings, options)
    
          var $this = $(this)
    
    
    Severity: Major
    Found in lib/assets/javascripts/bootstrap-redu.js - About 2 hrs to fix

      Function show has 47 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

        , show: function () {
            var $tip
              , inside
              , pos
              , actualWidth
      Severity: Minor
      Found in lib/assets/javascripts/bootstrap-redu.js - About 1 hr to fix

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

            replaceSubTitle: function(event, filterGroup) {
              var checkedBoxes = filterGroup.find('input[type="checkbox"]:checked')
                , filter = filterGroup.find('.' + event.data.settings.filterClass)
                , subTitleText = ''
        
        
        Severity: Minor
        Found in lib/assets/javascripts/bootstrap-redu.js - About 1 hr to fix

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

            , inviteByMail: function(options) {
                settings = $.extend(settings, options)
          
                return this.each(function() {
                  var control = $(this)
          Severity: Minor
          Found in lib/assets/javascripts/bootstrap-redu.js - About 1 hr to fix

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

              , scrollArrow: function(options) {
                  var settings = $.extend({
                    // Caractere simbolizando uma seta para cima.
                    arrowUp: '↑'
                    // Caractere simbolizando uma seta para baixo.
            Severity: Minor
            Found in lib/assets/javascripts/bootstrap-redu.js - About 1 hr to fix

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

                  init: function(options) {
                    var settings = $.extend({
                        filterEverythingClass: 'filter-everything',
                        filterActiveClass: 'filter-active',
                        filterDropdownMenuClass: 'dropdown-menu',
              Severity: Minor
              Found in lib/assets/javascripts/bootstrap-redu.js - About 1 hr to fix

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

                    styleInputFile: function(options) {
                      var settings = $.extend({
                        buttonDefault: 'button-default'
                      , buttonText: 'Escolher arquivo'
                      , filePath: 'control-file-text'
                Severity: Minor
                Found in lib/assets/javascripts/bootstrap-redu.js - About 1 hr to fix

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

                      countChars: function(options) {
                        var settings = $.extend({
                          characterCounterTemplate: $('<span class="character-counter legend"></span>')
                        }, options);
                  
                  
                  Severity: Minor
                  Found in lib/assets/javascripts/bootstrap-redu.js - About 1 hr to fix

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

                        search: function(options) {
                            var settings = $.extend({
                              iconMagnifierGray: 'icon-magnifier-gray_16_18'
                            , iconMagnifierLightBlue: 'icon-magnifier-lightblue_16_18'
                            , blue2: '#73C3E6'
                    Severity: Minor
                    Found in lib/assets/javascripts/bootstrap-redu.js - About 1 hr to fix

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

                          toggleDropdown: function(listMixItem, openClass, listMixHeaderLegend, listMixInfoClass, listMixBody) {
                      Severity: Minor
                      Found in lib/assets/javascripts/bootstrap-redu.js - About 35 mins to fix

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

                          $.fn.reduForm = function(method) {
                            if (methods[method]) {
                              return methods[method].apply(this, Array.prototype.slice.call(arguments, 1))
                            } else if (typeof method === "object" || !method) {
                              return methods.init.apply(this, arguments)
                        Severity: Major
                        Found in lib/assets/javascripts/bootstrap-redu.js and 8 other locations - About 4 hrs to fix
                        lib/assets/javascripts/bootstrap-redu.js on lines 1097..1105
                        lib/assets/javascripts/bootstrap-redu.js on lines 1458..1466
                        lib/assets/javascripts/bootstrap-redu.js on lines 1527..1535
                        lib/assets/javascripts/bootstrap-redu.js on lines 1608..1616
                        lib/assets/javascripts/bootstrap-redu.js on lines 1718..1726
                        lib/assets/javascripts/bootstrap-redu.js on lines 1768..1776
                        lib/assets/javascripts/bootstrap-redu.js on lines 1947..1955
                        lib/assets/javascripts/bootstrap-redu.js on lines 2101..2109

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

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

                          $.fn.reduList = function(method) {
                            if (methods[method]) {
                              return methods[method].apply(this, Array.prototype.slice.call(arguments, 1))
                            } else if (typeof method === "object" || !method) {
                              return methods.init.apply(this, arguments)
                        Severity: Major
                        Found in lib/assets/javascripts/bootstrap-redu.js and 8 other locations - About 4 hrs to fix
                        lib/assets/javascripts/bootstrap-redu.js on lines 1097..1105
                        lib/assets/javascripts/bootstrap-redu.js on lines 1374..1382
                        lib/assets/javascripts/bootstrap-redu.js on lines 1458..1466
                        lib/assets/javascripts/bootstrap-redu.js on lines 1608..1616
                        lib/assets/javascripts/bootstrap-redu.js on lines 1718..1726
                        lib/assets/javascripts/bootstrap-redu.js on lines 1768..1776
                        lib/assets/javascripts/bootstrap-redu.js on lines 1947..1955
                        lib/assets/javascripts/bootstrap-redu.js on lines 2101..2109

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

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

                          $.fn.reduTables = function(method) {
                            if (methods[method]) {
                              return methods[method].apply(this, Array.prototype.slice.call(arguments, 1))
                            } else if (typeof method === 'object' || !method) {
                              return methods.init.apply(this, arguments)
                        Severity: Major
                        Found in lib/assets/javascripts/bootstrap-redu.js and 8 other locations - About 4 hrs to fix
                        lib/assets/javascripts/bootstrap-redu.js on lines 1097..1105
                        lib/assets/javascripts/bootstrap-redu.js on lines 1374..1382
                        lib/assets/javascripts/bootstrap-redu.js on lines 1458..1466
                        lib/assets/javascripts/bootstrap-redu.js on lines 1527..1535
                        lib/assets/javascripts/bootstrap-redu.js on lines 1718..1726
                        lib/assets/javascripts/bootstrap-redu.js on lines 1768..1776
                        lib/assets/javascripts/bootstrap-redu.js on lines 1947..1955
                        lib/assets/javascripts/bootstrap-redu.js on lines 2101..2109

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

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

                          $.fn.reduLinks = function(method) {
                            if (methods[method]) {
                              return methods[method].apply(this, Array.prototype.slice.call(arguments, 1))
                            } else if (typeof method === 'object' || !method) {
                              return methods.init.apply(this, arguments)
                        Severity: Major
                        Found in lib/assets/javascripts/bootstrap-redu.js and 8 other locations - About 4 hrs to fix
                        lib/assets/javascripts/bootstrap-redu.js on lines 1097..1105
                        lib/assets/javascripts/bootstrap-redu.js on lines 1374..1382
                        lib/assets/javascripts/bootstrap-redu.js on lines 1527..1535
                        lib/assets/javascripts/bootstrap-redu.js on lines 1608..1616
                        lib/assets/javascripts/bootstrap-redu.js on lines 1718..1726
                        lib/assets/javascripts/bootstrap-redu.js on lines 1768..1776
                        lib/assets/javascripts/bootstrap-redu.js on lines 1947..1955
                        lib/assets/javascripts/bootstrap-redu.js on lines 2101..2109

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

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

                          $.fn.localNav = function(method) {
                            if (methods[method]) {
                              return methods[method].apply(this, Array.prototype.slice.call(arguments, 1))
                            } else if (typeof method === "object" || !method) {
                              return methods.init.apply(this, arguments)
                        Severity: Major
                        Found in lib/assets/javascripts/bootstrap-redu.js and 8 other locations - About 4 hrs to fix
                        lib/assets/javascripts/bootstrap-redu.js on lines 1097..1105
                        lib/assets/javascripts/bootstrap-redu.js on lines 1374..1382
                        lib/assets/javascripts/bootstrap-redu.js on lines 1458..1466
                        lib/assets/javascripts/bootstrap-redu.js on lines 1527..1535
                        lib/assets/javascripts/bootstrap-redu.js on lines 1608..1616
                        lib/assets/javascripts/bootstrap-redu.js on lines 1718..1726
                        lib/assets/javascripts/bootstrap-redu.js on lines 1947..1955
                        lib/assets/javascripts/bootstrap-redu.js on lines 2101..2109

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

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

                          $.fn.reduFilter = function(method) {
                            if (methods[method]) {
                              return methods[method].apply(this, Array.prototype.slice.call(arguments, 1))
                            } else if (typeof method === 'object' || !method) {
                              return methods.init.apply(this, arguments)
                        Severity: Major
                        Found in lib/assets/javascripts/bootstrap-redu.js and 8 other locations - About 4 hrs to fix
                        lib/assets/javascripts/bootstrap-redu.js on lines 1374..1382
                        lib/assets/javascripts/bootstrap-redu.js on lines 1458..1466
                        lib/assets/javascripts/bootstrap-redu.js on lines 1527..1535
                        lib/assets/javascripts/bootstrap-redu.js on lines 1608..1616
                        lib/assets/javascripts/bootstrap-redu.js on lines 1718..1726
                        lib/assets/javascripts/bootstrap-redu.js on lines 1768..1776
                        lib/assets/javascripts/bootstrap-redu.js on lines 1947..1955
                        lib/assets/javascripts/bootstrap-redu.js on lines 2101..2109

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

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

                          $.fn.reduAutocomplete = function(method) {
                            if (methods[method]) {
                              return methods[method].apply(this, Array.prototype.slice.call(arguments, 1))
                            } else if (typeof method === 'object' || !method) {
                              return methods.init.apply(this, arguments)
                        Severity: Major
                        Found in lib/assets/javascripts/bootstrap-redu.js and 8 other locations - About 4 hrs to fix
                        lib/assets/javascripts/bootstrap-redu.js on lines 1097..1105
                        lib/assets/javascripts/bootstrap-redu.js on lines 1374..1382
                        lib/assets/javascripts/bootstrap-redu.js on lines 1458..1466
                        lib/assets/javascripts/bootstrap-redu.js on lines 1527..1535
                        lib/assets/javascripts/bootstrap-redu.js on lines 1608..1616
                        lib/assets/javascripts/bootstrap-redu.js on lines 1768..1776
                        lib/assets/javascripts/bootstrap-redu.js on lines 1947..1955
                        lib/assets/javascripts/bootstrap-redu.js on lines 2101..2109

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

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

                          $.fn.reduModal = function(method) {
                            if (methods[method]) {
                              return methods[method].apply(this, Array.prototype.slice.call(arguments, 1))
                            } else if (typeof method === 'object' || !method) {
                              return methods.init.apply(this, arguments)
                        Severity: Major
                        Found in lib/assets/javascripts/bootstrap-redu.js and 8 other locations - About 4 hrs to fix
                        lib/assets/javascripts/bootstrap-redu.js on lines 1097..1105
                        lib/assets/javascripts/bootstrap-redu.js on lines 1374..1382
                        lib/assets/javascripts/bootstrap-redu.js on lines 1458..1466
                        lib/assets/javascripts/bootstrap-redu.js on lines 1527..1535
                        lib/assets/javascripts/bootstrap-redu.js on lines 1608..1616
                        lib/assets/javascripts/bootstrap-redu.js on lines 1718..1726
                        lib/assets/javascripts/bootstrap-redu.js on lines 1768..1776
                        lib/assets/javascripts/bootstrap-redu.js on lines 2101..2109

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

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

                          $.fn.reduSpinners = function(method) {
                            if (methods[method]) {
                              return methods[method].apply(this, Array.prototype.slice.call(arguments, 1))
                            } else if (typeof method === 'object' || !method) {
                              return methods.init.apply(this, arguments)
                        Severity: Major
                        Found in lib/assets/javascripts/bootstrap-redu.js and 8 other locations - About 4 hrs to fix
                        lib/assets/javascripts/bootstrap-redu.js on lines 1097..1105
                        lib/assets/javascripts/bootstrap-redu.js on lines 1374..1382
                        lib/assets/javascripts/bootstrap-redu.js on lines 1458..1466
                        lib/assets/javascripts/bootstrap-redu.js on lines 1527..1535
                        lib/assets/javascripts/bootstrap-redu.js on lines 1608..1616
                        lib/assets/javascripts/bootstrap-redu.js on lines 1718..1726
                        lib/assets/javascripts/bootstrap-redu.js on lines 1768..1776
                        lib/assets/javascripts/bootstrap-redu.js on lines 1947..1955

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

                        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

                          $.fn.popover = function (option) {
                            return this.each(function () {
                              var $this = $(this)
                                , data = $this.data('popover')
                                , options = typeof option == 'object' && option
                        Severity: Major
                        Found in lib/assets/javascripts/bootstrap-redu.js and 1 other location - About 4 hrs to fix
                        lib/assets/javascripts/bootstrap-redu.js on lines 780..788

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

                        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

                          $.fn.tooltip = function ( option ) {
                            return this.each(function () {
                              var $this = $(this)
                                , data = $this.data('tooltip')
                                , options = typeof option == 'object' && option
                        Severity: Major
                        Found in lib/assets/javascripts/bootstrap-redu.js and 1 other location - About 4 hrs to fix
                        lib/assets/javascripts/bootstrap-redu.js on lines 891..899

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

                        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

                          $.fn.dropdown = function (option) {
                            return this.each(function () {
                              var $this = $(this)
                                , data = $this.data('dropdown')
                              if (!data) $this.data('dropdown', (data = new Dropdown(this)))
                        Severity: Major
                        Found in lib/assets/javascripts/bootstrap-redu.js and 1 other location - About 3 hrs to fix
                        lib/assets/javascripts/bootstrap-redu.js on lines 132..139

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

                        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

                          $.fn.alert = function (option) {
                            return this.each(function () {
                              var $this = $(this)
                                , data = $this.data('alert')
                              if (!data) $this.data('alert', (data = new Alert(this)))
                        Severity: Major
                        Found in lib/assets/javascripts/bootstrap-redu.js and 1 other location - About 3 hrs to fix
                        lib/assets/javascripts/bootstrap-redu.js on lines 277..284

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

                        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

                          SearchField.prototype.collapse = function () {
                            var $target = $(this.$element.data('toggle'))
                            this.$element.parent().animate({ width: '-=' + this.options.increment }, 'fast');
                            $target.css('visibility', 'visible')
                          }
                        Severity: Major
                        Found in lib/assets/javascripts/bootstrap-redu.js and 1 other location - About 3 hrs to fix
                        lib/assets/javascripts/bootstrap-redu.js on lines 2136..2140

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

                        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

                          SearchField.prototype.expand = function () {
                            var $target = $(this.$element.data('toggle'))
                            this.$element.parent().animate({ width: '+=' + this.options.increment }, 'fast');
                            $target.css('visibility', 'hidden')
                          }
                        Severity: Major
                        Found in lib/assets/javascripts/bootstrap-redu.js and 1 other location - About 3 hrs to fix
                        lib/assets/javascripts/bootstrap-redu.js on lines 2142..2146

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

                        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

                          , getTitle: function () {
                              var title
                                , $e = this.$element
                                , o = this.options
                        
                        
                        Severity: Major
                        Found in lib/assets/javascripts/bootstrap-redu.js and 1 other location - About 2 hrs to fix
                        lib/assets/javascripts/bootstrap-redu.js on lines 867..876

                        Duplicated Code

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

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

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

                        Tuning

                        This issue has a mass of 91.

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

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

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

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

                        Refactorings

                        Further Reading

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

                          , getContent: function () {
                              var content
                                , $e = this.$element
                                , o = this.options
                        
                        
                        Severity: Major
                        Found in lib/assets/javascripts/bootstrap-redu.js and 1 other location - About 2 hrs to fix
                        lib/assets/javascripts/bootstrap-redu.js on lines 735..744

                        Duplicated Code

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

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

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

                        Tuning

                        This issue has a mass of 91.

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

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

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

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

                        Refactorings

                        Further Reading

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

                                var optionList = $(this)
                                  , textArea = optionList.children('.' + settings.textAreaClass)
                                  , appendArea = optionList.children('.' + settings.appendAreaClass)
                                  , checkbox = appendArea.children('.' + settings.optionListCheckbox)
                        Severity: Major
                        Found in lib/assets/javascripts/bootstrap-redu.js and 1 other location - About 1 hr to fix
                        lib/assets/javascripts/bootstrap-redu.js on lines 1205..1208

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

                        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

                                var form = $(this)
                                  , control = form.children('.' + settings.controlAreaClass)
                                  , button = form.children('.' + settings.controlAppendAreaClass)
                                  , icon = button.children('.' + settings.searchIconClass)
                        Severity: Major
                        Found in lib/assets/javascripts/bootstrap-redu.js and 1 other location - About 1 hr to fix
                        lib/assets/javascripts/bootstrap-redu.js on lines 1169..1172

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

                        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

                          $(".create-status textarea").live("focus", function(e){
                            $(this).parents("form").find(".status-buttons").slideToggle(150, "swing");
                             $(this).parents("form").find("textarea").css("height","122");
                          });
                        Severity: Major
                        Found in lib/assets/javascripts/bootstrap-redu.js and 1 other location - About 1 hr to fix
                        lib/assets/javascripts/bootstrap-redu.js on lines 1577..1580

                        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

                          $(".create-status .status-buttons .cancel").live("click", function(){
                            $(this).parents("form").find(".status-buttons").slideToggle(150, "swing");
                             $(this).parents("form").find("textarea").css("height","32");
                          });
                        Severity: Major
                        Found in lib/assets/javascripts/bootstrap-redu.js and 1 other location - About 1 hr to fix
                        lib/assets/javascripts/bootstrap-redu.js on lines 1572..1575

                        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

                              this.timeout = setTimeout(function() {
                                if (self.hoverState == 'in') self.show()
                              }, self.options.delay.show)
                        Severity: Major
                        Found in lib/assets/javascripts/bootstrap-redu.js and 1 other location - About 1 hr to fix
                        lib/assets/javascripts/bootstrap-redu.js on lines 613..615

                        Duplicated Code

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

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

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

                        Tuning

                        This issue has a mass of 55.

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

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

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

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

                        Refactorings

                        Further Reading

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

                              this.timeout = setTimeout(function() {
                                if (self.hoverState == 'out') self.hide()
                              }, self.options.delay.hide)
                        Severity: Major
                        Found in lib/assets/javascripts/bootstrap-redu.js and 1 other location - About 1 hr to fix
                        lib/assets/javascripts/bootstrap-redu.js on lines 601..603

                        Duplicated Code

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

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

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

                        Tuning

                        This issue has a mass of 55.

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

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

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

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

                        Refactorings

                        Further Reading

                        There are no issues that match your filters.

                        Category
                        Status