gopheracademy/gcon

View on GitHub

Showing 5,803 of 11,092 total issues

File bootstrap-table-locale-all.js has 1272 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/**
 * Bootstrap Table Afrikaans translation
 * Author: Phillip Kruger <phillip.kruger@gmail.com>
 */
(function ($) {

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

    /*!
     * Bootstrap v3.0.1 by @fat and @mdo
     * Copyright 2013 Twitter, Inc.
     * Licensed under http://www.apache.org/licenses/LICENSE-2.0
     *
    Severity: Major
    Found in assets/public/2015/js/bootstrap.js - About 3 days to fix

      Function checkbox has 603 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          $.jstree.plugins.checkbox = function (options, parent) {
              this.bind = function () {
                  parent.bind.call(this);
                  this._data.checkbox.uto = false;
                  this._data.checkbox.selected = [];
      Severity: Major
      Found in assets/admin/global/plugins/jstree/dist/jstree.js - About 3 days to fix

        File flowchart.js has 1161 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        // flowchart, v1.4.1
        // Copyright (c)2015 Adriano Raiano (adrai).
        // Distributed under MIT license
        // http://adrai.github.io/flowchart.js
        (function() {
        Severity: Major
        Found in assets/admin/global/plugins/flowchart/flowchart.js - About 2 days to fix

          Function Buttons has 595 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

            var Buttons = function (context) {
              var self = this;
              var ui = $.summernote.ui;
          
              var $toolbar = context.layoutInfo.toolbar;
          Severity: Major
          Found in assets/admin/global/plugins/bootstrap-summernote/summernote.js - About 2 days to fix

            File highcharts-3d.src.js has 1146 lines of code (exceeds 250 allowed). Consider refactoring.
            Open

            // ==ClosureCompiler==
            // @compilation_level SIMPLE_OPTIMIZATIONS
            
            /**
             * @license Highcharts JS v4.1.9 (2015-10-07)
            Severity: Major
            Found in assets/admin/global/plugins/highcharts/js/highcharts-3d.src.js - About 2 days to fix

              File highcharts-3d.src.js has 1146 lines of code (exceeds 250 allowed). Consider refactoring.
              Open

              // ==ClosureCompiler==
              // @compilation_level SIMPLE_OPTIMIZATIONS
              
              /**
               * @license Highcharts JS v4.1.9 (2015-10-07)
              Severity: Major
              Found in assets/admin/global/plugins/highstock/js/highcharts-3d.src.js - About 2 days to fix

                Function dom has 582 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                  var dom = (function () {
                    /**
                     * @method isEditable
                     *
                     * returns whether node is `note-editable` or not.
                Severity: Major
                Found in assets/admin/global/plugins/bootstrap-summernote/summernote.js - About 2 days to fix

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

                  /*
                   * jQuery File Upload Plugin
                   * https://github.com/blueimp/jQuery-File-Upload
                   *
                   * Copyright 2010, Sebastian Tschan
                  Severity: Major
                  Found in assets/admin/global/plugins/jquery-file-upload/js/jquery.fileupload.js - About 2 days to fix

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

                    /**
                     * Bootstrap Multiselect (https://github.com/davidstutz/bootstrap-multiselect)
                     *
                     * Apache License, Version 2.0:
                     * Copyright (c) 2012 - 2015 David Stutz

                      Function Layout has a Cognitive Complexity of 139 (exceeds 5 allowed). Consider refactoring.
                      Open

                      var Layout = function () {
                      
                          var layoutImgPath = 'layouts/layout/img/';  
                      
                          var layoutCssPath = 'layouts/layout/css/';
                      Severity: Minor
                      Found in assets/admin/layouts/layout/scripts/layout.js - About 2 days to fix

                      Cognitive Complexity

                      Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                      A method's cognitive complexity is based on a few simple rules:

                      • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                      • Code is considered more complex for each "break in the linear flow of the code"
                      • Code is considered more complex when "flow breaking structures are nested"

                      Further reading

                      File daterangepicker.js has 1102 lines of code (exceeds 250 allowed). Consider refactoring.
                      Open

                      /**
                      * @version: 2.1.13
                      * @author: Dan Grossman http://www.dangrossman.info/
                      * @copyright: Copyright (c) 2012-2015 Dan Grossman. All rights reserved.
                      * @license: Licensed under the MIT license. See http://www.opensource.org/licenses/mit-license.php

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

                        /*!
                         * jQuery Validation Plugin v1.14.0
                         *
                         * http://jqueryvalidation.org/
                         *
                        Severity: Major
                        Found in assets/admin/global/plugins/jquery-validation/js/jquery.validate.js - About 2 days to fix

                          Function Index has 541 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                          var Index = function () {
                          
                              var handleAmChart = function() {
                                  var chartData = [
                                      {
                          Severity: Major
                          Found in assets/admin/layouts/layout5/scripts/index.js - About 2 days to fix

                            File responsive.js has 1066 lines of code (exceeds 250 allowed). Consider refactoring.
                            Open

                            /*
                            Plugin Name: amCharts Responsive
                            Description: This plugin add responsive functionality to JavaScript Charts and Maps.
                            Author: Martynas Majeris, amCharts
                            Contributors: Ohad Schneider

                              File responsive.js has 1066 lines of code (exceeds 250 allowed). Consider refactoring.
                              Open

                              /*
                              Plugin Name: amCharts Responsive
                              Description: This plugin add responsive functionality to JavaScript Charts and Maps.
                              Author: Martynas Majeris, amCharts
                              Contributors: Ohad Schneider

                                File responsive.js has 1066 lines of code (exceeds 250 allowed). Consider refactoring.
                                Open

                                /*
                                Plugin Name: amCharts Responsive
                                Description: This plugin add responsive functionality to JavaScript Charts and Maps.
                                Author: Martynas Majeris, amCharts
                                Contributors: Ohad Schneider

                                  Function ChartsFlotcharts has a Cognitive Complexity of 132 (exceeds 5 allowed). Consider refactoring.
                                  Open

                                  var ChartsFlotcharts = function() {
                                  
                                      return {
                                          //main function to initiate the module
                                  
                                  Severity: Minor
                                  Found in assets/admin/pages/scripts/charts-flotcharts.js - About 2 days to fix

                                  Cognitive Complexity

                                  Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                  A method's cognitive complexity is based on a few simple rules:

                                  • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                  • Code is considered more complex for each "break in the linear flow of the code"
                                  • Code is considered more complex when "flow breaking structures are nested"

                                  Further reading

                                  File plupload.dev.js has 1051 lines of code (exceeds 250 allowed). Consider refactoring.
                                  Open

                                  /**
                                   * Plupload - multi-runtime File Uploader
                                   * v2.1.2
                                   *
                                   * Copyright 2013, Moxiecode Systems AB
                                  Severity: Major
                                  Found in assets/admin/global/plugins/plupload/js/plupload.dev.js - About 2 days to fix

                                    Function TouchSpin has 527 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                      $.fn.TouchSpin = function(options) {
                                    
                                        if (options === 'destroy') {
                                          this.each(function() {
                                            var originalinput = $(this),
                                    Severity: Major
                                    Found in assets/admin/global/plugins/bootstrap-touchspin/bootstrap.touchspin.js - About 2 days to fix
                                      Severity
                                      Category
                                      Status
                                      Source
                                      Language