VSVverkeerskunde/gvq-api

View on GitHub

Showing 1,426 of 1,426 total issues

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

/*!
 * jQuery JavaScript Library v3.3.1
 * https://jquery.com/
 *
 * Includes Sizzle.js
Severity: Major
Found in public/js/jquery.js - About 2 wks to fix

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

    /*! DataTables 1.10.16
     * ©2008-2017 SpryMedia Ltd - datatables.net/license
     */
    
    /**
    Severity: Major
    Found in public/js/jquery.dataTables.js - About 2 wks to fix

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

      /*!
        * Bootstrap v4.1.0 (https://getbootstrap.com/)
        * Copyright 2011-2018 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
        * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
        */
      Severity: Major
      Found in public/js/bootstrap.js - About 1 wk to fix

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

        /**
         * @author zhixin wen <wenzhixin2010@gmail.com>
         * version: 1.12.1
         * https://github.com/wenzhixin/bootstrap-table/
         */
        Severity: Major
        Found in public/js/bootstrap-table.js - About 1 wk to fix

          Function Sizzle has 1452 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          (function( window ) {
          
          var i,
              support,
              Expr,
          Severity: Major
          Found in public/js/jquery.js - About 1 wk to fix

            Function Tooltip has 513 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

              var Tooltip = function ($$$1) {
                /**
                 * ------------------------------------------------------------------------
                 * Constants
                 * ------------------------------------------------------------------------
            Severity: Major
            Found in public/js/bootstrap.js - About 2 days to fix

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

                  var DataTable = function ( options )
                  {
                      /**
                       * Perform a jQuery selector action on the table's TR elements (from the tbody) and
                       * return the resulting jQuery object.
              Severity: Major
              Found in public/js/jquery.dataTables.js - About 2 days to fix

                Function Tooltip has 430 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    function () {
                      function Tooltip(element, config) {
                        /**
                         * Check for Popper dependency
                         * Popper - https://popper.js.org
                Severity: Major
                Found in public/js/bootstrap.js - About 2 days to fix

                  Function Modal has 418 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                    var Modal = function ($$$1) {
                      /**
                       * ------------------------------------------------------------------------
                       * Constants
                       * ------------------------------------------------------------------------
                  Severity: Major
                  Found in public/js/bootstrap.js - About 2 days to fix

                    Function Carousel has 366 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                      var Carousel = function ($$$1) {
                        /**
                         * ------------------------------------------------------------------------
                         * Constants
                         * ------------------------------------------------------------------------
                    Severity: Major
                    Found in public/js/bootstrap.js - About 1 day to fix

                      Function Quiz has 340 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                        function Quiz (quizConfig) {
                          quizConfig = $.extend({}, defaultQuizConfig, quizConfig || cachedConfig);
                          cachedConfig = quizConfig;
                          let view = $('#gvq-quiz .gvq-quiz-view');
                          let oldView = $('#gvq-quiz .gvq-quiz-old-view');
                      Severity: Major
                      Found in public/js/quiz.js - About 1 day to fix

                        Function Modal has 338 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            function () {
                              function Modal(element, config) {
                                this._config = this._getConfig(config);
                                this._element = element;
                                this._dialog = $$$1(element).find(Selector.DIALOG)[0];
                        Severity: Major
                        Found in public/js/bootstrap.js - About 1 day to fix

                          Function Dropdown has 330 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                            var Dropdown = function ($$$1) {
                              /**
                               * ------------------------------------------------------------------------
                               * Constants
                               * ------------------------------------------------------------------------
                          Severity: Major
                          Found in public/js/bootstrap.js - About 1 day to fix

                            Function Carousel has 291 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                function () {
                                  function Carousel(element, config) {
                                    this._items = null;
                                    this._interval = null;
                                    this._activeElement = null;
                            Severity: Major
                            Found in public/js/bootstrap.js - About 1 day to fix

                              Function Collapse has 254 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                var Collapse = function ($$$1) {
                                  /**
                                   * ------------------------------------------------------------------------
                                   * Constants
                                   * ------------------------------------------------------------------------
                              Severity: Major
                              Found in public/js/bootstrap.js - About 1 day to fix

                                Function ajax has 251 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    ajax: function( url, options ) {
                                
                                        // If url is an object, simulate pre-1.5 signature
                                        if ( typeof url === "object" ) {
                                            options = url;
                                Severity: Major
                                Found in public/js/jquery.js - About 1 day to fix

                                  Function Dropdown has 249 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      function () {
                                        function Dropdown(element, config) {
                                          this._element = element;
                                          this._popper = null;
                                          this._config = this._getConfig(config);
                                  Severity: Major
                                  Found in public/js/bootstrap.js - About 1 day to fix

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

                                    !function(f,b,e,v,n,t,s)
                                    {if(f.fbq)return;n=f.fbq=function(){n.callMethod?
                                        n.callMethod.apply(n,arguments):n.queue.push(arguments)};
                                        if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';
                                        n.queue=[];t=b.createElement(e);t.async=!0;
                                    Severity: Major
                                    Found in public/js/fbp.quiz.js and 1 other location - About 1 day to fix
                                    public/js/fbp.cup.js on lines 1..8

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

                                    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(f,b,e,v,n,t,s)
                                    {if(f.fbq)return;n=f.fbq=function(){n.callMethod?
                                        n.callMethod.apply(n,arguments):n.queue.push(arguments)};
                                        if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';
                                        n.queue=[];t=b.createElement(e);t.async=!0;
                                    Severity: Major
                                    Found in public/js/fbp.cup.js and 1 other location - About 1 day to fix
                                    public/js/fbp.quiz.js on lines 1..8

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

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

                                    setDocument = Sizzle.setDocument = function( node ) {
                                        var hasCompare, subWindow,
                                            doc = node ? node.ownerDocument || node : preferredDoc;
                                    
                                        // Return early if doc is invalid or already selected
                                    Severity: Major
                                    Found in public/js/jquery.js - About 1 day to fix
                                      Severity
                                      Category
                                      Status
                                      Source
                                      Language