tomgi/git_stats

View on GitHub

Showing 32 of 32 total issues

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

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

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

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

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

    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 templates/assets/bootstrap/js/bootstrap.js and 1 other location - About 4 hrs to fix
    templates/assets/bootstrap/js/bootstrap.js on lines 1992..2000

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

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

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

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

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

    Refactorings

    Further Reading

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

      $.fn.collapse = function (option) {
        return this.each(function () {
          var $this = $(this)
            , data = $this.data('collapse')
            , options = typeof option == 'object' && option
    Severity: Major
    Found in templates/assets/bootstrap/js/bootstrap.js and 3 other locations - About 4 hrs to fix
    templates/assets/bootstrap/js/bootstrap.js on lines 1214..1222
    templates/assets/bootstrap/js/bootstrap.js on lines 1463..1471
    templates/assets/bootstrap/js/bootstrap.js on lines 1890..1898

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

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

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

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

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

    Refactorings

    Further Reading

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

      $.fn.scrollspy = function (option) {
        return this.each(function () {
          var $this = $(this)
            , data = $this.data('scrollspy')
            , options = typeof option == 'object' && option
    Severity: Major
    Found in templates/assets/bootstrap/js/bootstrap.js and 3 other locations - About 4 hrs to fix
    templates/assets/bootstrap/js/bootstrap.js on lines 544..552
    templates/assets/bootstrap/js/bootstrap.js on lines 1214..1222
    templates/assets/bootstrap/js/bootstrap.js on lines 1890..1898

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

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

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

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

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

    Refactorings

    Further Reading

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

      $.fn.tooltip = function ( option ) {
        return this.each(function () {
          var $this = $(this)
            , data = $this.data('tooltip')
            , options = typeof option == 'object' && option
    Severity: Major
    Found in templates/assets/bootstrap/js/bootstrap.js and 3 other locations - About 4 hrs to fix
    templates/assets/bootstrap/js/bootstrap.js on lines 544..552
    templates/assets/bootstrap/js/bootstrap.js on lines 1463..1471
    templates/assets/bootstrap/js/bootstrap.js on lines 1890..1898

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

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

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

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

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

    Refactorings

    Further Reading

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

      $.fn.typeahead = function (option) {
        return this.each(function () {
          var $this = $(this)
            , data = $this.data('typeahead')
            , options = typeof option == 'object' && option
    Severity: Major
    Found in templates/assets/bootstrap/js/bootstrap.js and 3 other locations - About 4 hrs to fix
    templates/assets/bootstrap/js/bootstrap.js on lines 544..552
    templates/assets/bootstrap/js/bootstrap.js on lines 1214..1222
    templates/assets/bootstrap/js/bootstrap.js on lines 1463..1471

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

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

        Highcharts.Chart.prototype.getDataRows = function () {
            var options = (this.options.exporting || {}).csv || {},
                xAxis,
                xAxes = this.xAxis,
                rows = {},
    Severity: Major
    Found in templates/assets/export-csv.js - About 4 hrs to fix

      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 templates/assets/bootstrap/js/bootstrap.js and 1 other location - About 3 hrs to fix
      templates/assets/bootstrap/js/bootstrap.js on lines 701..708

      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.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 templates/assets/bootstrap/js/bootstrap.js and 1 other location - About 3 hrs to fix
      templates/assets/bootstrap/js/bootstrap.js on lines 130..137

      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

      Class Repo has 30 methods (exceeds 20 allowed). Consider refactoring.
      Open

          class Repo
            include HashInitializable
      
            delegate :files, :files_by_extension, :files_by_extension_count, :lines_by_extension,
                     :files_count, :binary_files, :text_files, :lines_count, :comments_count, to: :last_commit
      Severity: Minor
      Found in lib/git_stats/git_data/repo.rb - About 3 hrs to fix

        File export-csv.js has 285 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        /**
         * A Highcharts plugin for exporting data from a rendered chart as CSV, XLS or HTML table
         *
         * Author:   Torstein Honsi
         * Licence:  MIT
        Severity: Minor
        Found in templates/assets/export-csv.js - About 2 hrs to fix

          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 templates/assets/bootstrap/js/bootstrap.js and 1 other location - About 2 hrs to fix
          templates/assets/bootstrap/js/bootstrap.js on lines 1293..1302

          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 templates/assets/bootstrap/js/bootstrap.js and 1 other location - About 2 hrs to fix
          templates/assets/bootstrap/js/bootstrap.js on lines 1165..1174

          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

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

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

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

              , slide: function (type, next) {
                  var $active = this.$element.find('.item.active')
                    , $next = next || $active[type]()
                    , isCycling = this.interval
                    , direction = type == 'next' ? 'left' : 'right'
            Severity: Minor
            Found in templates/assets/bootstrap/js/bootstrap.js - About 1 hr to fix

              Function getContent has 30 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  function getContent(chart, href, extension, content, MIME) {
                      var a,
                          blobObject,
                          name,
                          options = (chart.options.exporting || {}).csv || {},
              Severity: Minor
              Found in templates/assets/export-csv.js - About 1 hr to fix

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

                    Highcharts.Chart.prototype.getTable = function (useLocalDecimalPoint) {
                        var html = '<table><thead>',
                            rows = this.getDataRows();
                
                        // Transform the rows to HTML
                Severity: Minor
                Found in templates/assets/export-csv.js - About 1 hr to fix

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

                      Highcharts.Chart.prototype.getCSV = function (useLocalDecimalPoint) {
                          var csv = '',
                              rows = this.getDataRows(),
                              options = (this.options.exporting || {}).csv || {},
                              itemDelimiter = options.itemDelimiter || ',', // use ';' for direct import to Excel
                  Severity: Minor
                  Found in templates/assets/export-csv.js - About 1 hr to fix

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

                        , show: function () {
                            var that = this
                              , e = $.Event('show')
                    
                            this.$element.trigger(e)
                    Severity: Minor
                    Found in templates/assets/bootstrap/js/bootstrap.js - About 1 hr to fix
                      Severity
                      Category
                      Status
                      Source
                      Language