opsforgeio/cabot

View on GitHub

Showing 1,637 of 1,637 total issues

File jquery-ui.js has 11714 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/*! jQuery UI - v1.10.3 - 2013-05-03
* http://jqueryui.com
* Includes: jquery.ui.core.js, jquery.ui.widget.js, jquery.ui.mouse.js, jquery.ui.draggable.js, jquery.ui.droppable.js, jquery.ui.resizable.js, jquery.ui.selectable.js, jquery.ui.sortable.js, jquery.ui.effect.js, jquery.ui.accordion.js, jquery.ui.autocomplete.js, jquery.ui.button.js, jquery.ui.datepicker.js, jquery.ui.dialog.js, jquery.ui.effect-blind.js, jquery.ui.effect-bounce.js, jquery.ui.effect-clip.js, jquery.ui.effect-drop.js, jquery.ui.effect-explode.js, jquery.ui.effect-fade.js, jquery.ui.effect-fold.js, jquery.ui.effect-highlight.js, jquery.ui.effect-pulsate.js, jquery.ui.effect-scale.js, jquery.ui.effect-shake.js, jquery.ui.effect-slide.js, jquery.ui.effect-transfer.js, jquery.ui.menu.js, jquery.ui.position.js, jquery.ui.progressbar.js, jquery.ui.slider.js, jquery.ui.spinner.js, jquery.ui.tabs.js, jquery.ui.tooltip.js
* Copyright 2013 jQuery Foundation and other contributors; Licensed MIT */
(function( $, undefined ) {
Severity: Major
Found in cabot/static/theme/js/jquery-ui.js - About 1 mo to fix

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

    (function( $, undefined ) {
    
    $.ui = $.ui || {};
    
    var cachedScrollbarWidth,
    Severity: Major
    Found in cabot/static/theme/js/jquery.ui.position.js and 1 other location - About 1 mo to fix
    cabot/static/theme/js/jquery-ui.js on lines 12027..12513

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

    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

    (function( $, undefined ) {
    
    $.ui = $.ui || {};
    
    var cachedScrollbarWidth,
    Severity: Major
    Found in cabot/static/theme/js/jquery-ui.js and 1 other location - About 1 mo to fix
    cabot/static/theme/js/jquery.ui.position.js on lines 11..497

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

    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

    (function( $, undefined ) {
    
    // used to prevent race conditions with remote data sources
    var requestIndex = 0;
    
    
    Severity: Major
    Found in cabot/static/theme/js/jquery-ui.js and 1 other location - About 3 wks to fix
    cabot/static/theme/js/jquery.ui.autocomplete.js on lines 17..610

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

    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

    (function( $, undefined ) {
    
    // used to prevent race conditions with remote data sources
    var requestIndex = 0;
    
    
    Severity: Major
    Found in cabot/static/theme/js/jquery.ui.autocomplete.js and 1 other location - About 3 wks to fix
    cabot/static/theme/js/jquery-ui.js on lines 6613..7206

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

    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

    File d3.js has 9264 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    !function() {
      var d3 = {
        version: "3.4.1"
      };
      if (!Date.now) Date.now = function() {
    Severity: Major
    Found in cabot/static/arachnys/js/d3.js - About 3 wks to fix

      Function DataTable has 4212 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

        var DataTable = function( oInit )
        {
      
      
          /**
      Severity: Major
      Found in cabot/static/theme/js/jquery.dataTables.min.js - About 3 wks to fix

        File jquery-1.10.2.js has 6641 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        /*!
         * jQuery JavaScript Library v1.10.2
         * http://jquery.com/
         *
         * Includes Sizzle.js
        Severity: Major
        Found in cabot/static/bootstrap/js/jquery-1.10.2.js - About 2 wks to fix

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

              models = {
                  u'auth.group': {
                      'Meta': {'object_name': 'Group'},
                      u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
                      'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
          cabot/cabotapp/migrations/0010_plugin_data_migration.py on lines 95..283

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

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

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

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

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

          Refactorings

          Further Reading

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

              models = {
                  u'auth.group': {
                      'Meta': {'object_name': 'Group'},
                      u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
                      'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
          Severity: Major
          Found in cabot/cabotapp/migrations/0010_plugin_data_migration.py and 1 other location - About 2 wks to fix
          cabot/cabotapp/migrations/0011_plugin_data_migration_tests.py on lines 38..226

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

          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

          cabot/cabotapp/migrations/0016_auto__add_index_statuscheckresult_check_time_complete.py on lines 0..196

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

          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

          cabot/cabotapp/migrations/0017_auto__add_index_statuscheckresult_check_id.py on lines 0..196

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

          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

          (function( $, undefined ) {
          
          var uuid = 0,
              runiqueId = /^ui-id-\d+$/;
          
          
          Severity: Major
          Found in cabot/static/theme/js/jquery.ui.core.js and 1 other location - About 2 wks to fix
          cabot/static/theme/js/jquery-ui.js on lines 5..314

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

          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

          (function( $, undefined ) {
          
          var uuid = 0,
              runiqueId = /^ui-id-\d+$/;
          
          
          Severity: Major
          Found in cabot/static/theme/js/jquery-ui.js and 1 other location - About 2 wks to fix
          cabot/static/theme/js/jquery.ui.core.js on lines 11..320

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

          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

          File raphael.js has 5493 lines of code (exceeds 250 allowed). Consider refactoring.
          Open

          // ┌────────────────────────────────────────────────────────────────────┐ \\
          // │ Raphaël 2.1.0 - JavaScript Vector Library                          │ \\
          // ├────────────────────────────────────────────────────────────────────┤ \\
          // │ Copyright © 2008-2012 Dmitry Baranovskiy (http://raphaeljs.com)    │ \\
          // │ Copyright © 2008-2012 Sencha Labs (http://sencha.com)              │ \\
          Severity: Major
          Found in cabot/static/arachnys/js/raphael.js - About 2 wks to fix

            File jquery.dataTables.min.js has 4999 lines of code (exceeds 250 allowed). Consider refactoring.
            Open

            /**
             * @summary     DataTables
             * @description Paginate, search and sort HTML tables
             * @version     1.9.4
             * @file        jquery.dataTables.js
            Severity: Major
            Found in cabot/static/theme/js/jquery.dataTables.min.js - About 2 wks to fix

              File rickshaw.js has 2941 lines of code (exceeds 250 allowed). Consider refactoring.
              Open

              /* jshint -W079 */
              
              var Rickshaw = {
              
                namespace: function(namespace, obj) {
              Severity: Major
              Found in cabot/static/arachnys/js/rickshaw.js - About 1 wk to fix

                File jquery.sparkline.min.js has 2443 lines of code (exceeds 250 allowed). Consider refactoring.
                Open

                /**
                *
                * jquery.sparkline.js
                *
                * v2.1.2
                Severity: Major
                Found in cabot/static/theme/js/jquery.sparkline.min.js - About 6 days to fix

                  File morris.js has 1622 lines of code (exceeds 250 allowed). Consider refactoring.
                  Open

                  (function() {
                    var $, Morris, minutesSpecHelper, secondsSpecHelper,
                      __slice = [].slice,
                      __hasProp = {}.hasOwnProperty,
                      __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
                  Severity: Major
                  Found in cabot/static/arachnys/js/morris.js - About 4 days to fix

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

                    /* ===================================================
                     * bootstrap-transition.js v2.2.1
                     * http://twitter.github.com/bootstrap/javascript.html#transitions
                     * ===================================================
                     * Copyright 2012 Twitter, Inc.
                    Severity: Major
                    Found in cabot/static/theme/js/bootstrap.js - About 3 days to fix
                      Severity
                      Category
                      Status
                      Source
                      Language