gopheracademy/gcon

View on GitHub

Showing 11,092 of 11,092 total issues

Function S2 has 4315 lines of code (exceeds 25 allowed). Consider refactoring.
Open

(function () {
  // Restore the Select2 AMD loader so it can be used
  // Needed mostly in the language files, where the loader is not inserted
  if (jQuery && jQuery.fn && jQuery.fn.select2 && jQuery.fn.select2.amd) {
    var S2 = jQuery.fn.select2.amd;
Severity: Major
Found in assets/admin/global/plugins/select2/js/select2.js - About 3 wks to fix

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

    (function ($, window, document, undefined) {
      'use strict';
    
      /*
        matchMedia() polyfill - Test a CSS media 
    Severity: Major
    Found in assets/public/2014/js/foundation/foundation.js and 1 other location - About 3 wks to fix
    assets/public/2015/js/foundation/foundation.js on lines 29..440

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

    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

    (function ($, window, document, undefined) {
      'use strict';
    
      /*
        matchMedia() polyfill - Test a CSS media 
    Severity: Major
    Found in assets/public/2015/js/foundation/foundation.js and 1 other location - About 3 wks to fix
    assets/public/2014/js/foundation/foundation.js on lines 29..440

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

    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 fullcalendar.js has 7088 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    /*!
     * FullCalendar v2.4.0
     * Docs & License: http://fullcalendar.io/
     * (c) 2015 Adam Shaw
     */
    Severity: Major
    Found in assets/admin/global/plugins/fullcalendar/fullcalendar.js - About 2 wks to fix

      File codemirror.js has 7057 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      // CodeMirror, copyright (c) by Marijn Haverbeke and others
      // Distributed under an MIT license: http://codemirror.net/LICENSE
      
      // This is CodeMirror (http://codemirror.net), a code editor
      // implemented in JavaScript on top of the browser's DOM.
      Severity: Major
      Found in assets/admin/global/plugins/codemirror/lib/codemirror.js - About 2 wks to fix

        File wysihtml5-0.3.0.js has 6898 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        /**
         * @license wysihtml5 v0.3.0
         * https://github.com/xing/wysihtml5
         *
         * Author: Christopher Blum (https://github.com/tiff)
        Severity: Major
        Found in assets/admin/global/plugins/bootstrap-wysihtml5/wysihtml5-0.3.0.js - About 2 wks to fix

          File wysihtml5-0.3.0.js has 6898 lines of code (exceeds 250 allowed). Consider refactoring.
          Open

          /**
           * @license wysihtml5 v0.3.0
           * https://github.com/xing/wysihtml5
           *
           * Author: Christopher Blum (https://github.com/tiff)

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

            ;(function ($, window, document, undefined) {
              'use strict';
            
              Foundation.libs.topbar = {
                name : 'topbar',
            Severity: Major
            Found in assets/public/2015/js/foundation/foundation.topbar.js and 1 other location - About 2 wks to fix
            assets/public/2014/js/foundation/foundation.topbar.js on lines 3..300

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

            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

            ;(function ($, window, document, undefined) {
              'use strict';
            
              Foundation.libs.topbar = {
                name : 'topbar',
            Severity: Major
            Found in assets/public/2014/js/foundation/foundation.topbar.js and 1 other location - About 2 wks to fix
            assets/public/2015/js/foundation/foundation.topbar.js on lines 3..300

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

            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

            ;(function ($, window, document, undefined) {
              'use strict';
            
              Foundation.libs.reveal = {
                name : 'reveal',
            Severity: Major
            Found in assets/public/2015/js/foundation/foundation.reveal.js and 1 other location - About 2 wks to fix
            assets/public/2014/js/foundation/foundation.reveal.js on lines 3..330

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

            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

            ;(function ($, window, document, undefined) {
              'use strict';
            
              Foundation.libs.reveal = {
                name : 'reveal',
            Severity: Major
            Found in assets/public/2014/js/foundation/foundation.reveal.js and 1 other location - About 2 wks to fix
            assets/public/2015/js/foundation/foundation.reveal.js on lines 3..330

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

            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 moxie.js has 6042 lines of code (exceeds 250 allowed). Consider refactoring.
            Open

            /**
             * mOxie - multi-runtime File API & XMLHttpRequest L2 Polyfill
             * v1.2.1
             *
             * Copyright 2013, Moxiecode Systems AB
            Severity: Major
            Found in assets/admin/global/plugins/plupload/js/moxie.js - About 2 wks to fix

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

              var S2;(function () { if (!S2 || !S2.requirejs) {
              if (!S2) { S2 = {}; } else { require = S2; }
              /**
               * @license almond 0.3.1 Copyright (c) 2011-2014, The Dojo Foundation All Rights Reserved.
               * Available via the MIT or new BSD license.
              Severity: Major
              Found in assets/admin/global/plugins/select2/js/select2.full.js and 1 other location - About 2 wks to fix
              assets/admin/global/plugins/select2/js/select2.js on lines 30..465

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

              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

              var S2;(function () { if (!S2 || !S2.requirejs) {
              if (!S2) { S2 = {}; } else { require = S2; }
              /**
               * @license almond 0.3.1 Copyright (c) 2011-2014, The Dojo Foundation All Rights Reserved.
               * Available via the MIT or new BSD license.
              Severity: Major
              Found in assets/admin/global/plugins/select2/js/select2.js and 1 other location - About 2 wks to fix
              assets/admin/global/plugins/select2/js/select2.full.js on lines 30..465

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

              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

              jQuery.extend( jQuery.easing,
              {
                  def: 'easeOutQuad',
                  swing: function (x, t, b, c, d) {
                      //alert(jQuery.easing.default);
              Severity: Major
              Found in assets/admin/global/plugins/jquery.easing.js and 1 other location - About 2 wks to fix
              assets/admin/global/plugins/mapplic/js/jquery.easing.js on lines 41..172

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

              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

              jQuery.extend( jQuery.easing,
              {
                  def: 'easeOutQuad',
                  swing: function (x, t, b, c, d) {
                      //alert(jQuery.easing.default);
              Severity: Major
              Found in assets/admin/global/plugins/mapplic/js/jquery.easing.js and 1 other location - About 2 wks to fix
              assets/admin/global/plugins/jquery.easing.js on lines 41..172

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

              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

              (function(wysihtml5) {
                var dom = wysihtml5.dom;
                
                function _getCumulativeOffsetTop(element) {
                  var top = 0;
              assets/admin/global/plugins/bootstrap-editable/inputs-ext/wysihtml5/bootstrap-wysihtml5-0.0.2/wysihtml5-0.3.0.js on lines 5905..6316

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

              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

              (function(wysihtml5) {
                var dom = wysihtml5.dom;
                
                function _getCumulativeOffsetTop(element) {
                  var top = 0;
              assets/admin/global/plugins/bootstrap-wysihtml5/wysihtml5-0.3.0.js on lines 5905..6316

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

              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 jstree.js has 5569 lines of code (exceeds 250 allowed). Consider refactoring.
              Open

              /*globals jQuery, define, module, exports, require, window, document, postMessage */
              (function (factory) {
                  "use strict";
                  if (typeof define === 'function' && define.amd) {
                      define(['jquery'], factory);
              Severity: Major
              Found in assets/admin/global/plugins/jstree/dist/jstree.js - About 2 wks to fix

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

                AmCharts.addInitHandler( function( chart ) {
                
                  /**
                   * Check if dataLoader is set (initialize it)
                   */
                assets/admin/global/plugins/amcharts/ammap/plugins/dataloader/dataloader.js on lines 43..430
                assets/admin/global/plugins/amcharts/amstockcharts/plugins/dataloader/dataloader.js on lines 43..430

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

                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