redu/autorregulacao

View on GitHub

Showing 52 of 52 total issues

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 TokenList has 541 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    $.TokenList = function (input, url_or_data, settings) {
        //
        // Initialization
        //
    
    
    Severity: Major
    Found in lib/assets/javascripts/jquery.tokeninput.js - About 2 days to fix

      File jquery.tokeninput.js has 705 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      /*
       * jQuery Plugin: Tokenizing Autocomplete Text Entry
       * Version 1.6.0
       *
       * Copyright (c) 2009 James Smith (http://loopj.com)
      Severity: Major
      Found in lib/assets/javascripts/jquery.tokeninput.js - About 1 day 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.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.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.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.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 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.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 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.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.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

        Function placeHolder has 93 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            $.fn.placeHolder = function(config) {
                log('init placeHolder');
                var o = this;
                var l = $(this).length;
                this.options = $.extend({
        Severity: Major
        Found in lib/assets/javascripts/placeholder-polyfill.js - About 3 hrs to fix

          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

            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

            , 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

          Severity
          Category
          Status
          Source
          Language