VSVverkeerskunde/gvq-api

View on GitHub

Showing 1,426 of 1,426 total issues

Function getWidthOrHeight has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function getWidthOrHeight( elem, dimension, extra ) {

    // Start with computed style
    var styles = getStyles( elem ),
        val = curCSS( elem, dimension, styles ),
Severity: Minor
Found in public/js/jquery.js - About 1 hr to fix

    Function parseHTML has 28 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    jQuery.parseHTML = function( data, context, keepScripts ) {
        if ( typeof data !== "string" ) {
            return [];
        }
        if ( typeof context === "boolean" ) {
    Severity: Minor
    Found in public/js/jquery.js - About 1 hr to fix

      Function off has 28 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          off: function( types, selector, fn ) {
              var handleObj, type;
              if ( types && types.preventDefault && types.handleObj ) {
      
                  // ( event )  dispatched jQuery.Event
      Severity: Minor
      Found in public/js/jquery.js - About 1 hr to fix

        Function finish has 28 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            finish: function( type ) {
                if ( type !== false ) {
                    type = type || "fx";
                }
                return this.each( function() {
        Severity: Minor
        Found in public/js/jquery.js - About 1 hr to fix

          Function _fnGetCellData has 28 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              function _fnGetCellData( settings, rowIdx, colIdx, type )
              {
                  var draw           = settings.iDraw;
                  var col            = settings.aoColumns[colIdx];
                  var rowData        = settings.aoData[rowIdx]._aData;
          Severity: Minor
          Found in public/js/jquery.dataTables.js - About 1 hr to fix

            Function __details_add has 28 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                var __details_add = function ( ctx, row, data, klass )
                {
                    // Convert to array of TR elements
                    var rows = [];
                    var addRow = function ( r, k ) {
            Severity: Minor
            Found in public/js/jquery.dataTables.js - About 1 hr to fix

              Function _getPopperConfig has 28 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                    _proto._getPopperConfig = function _getPopperConfig() {
                      var _this2 = this;
              
                      var offsetConf = {};
              
              
              Severity: Minor
              Found in public/js/bootstrap.js - About 1 hr to fix

                Function _setListeners has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                      _proto._setListeners = function _setListeners() {
                        var _this3 = this;
                
                        var triggers = this.config.trigger.split(' ');
                        triggers.forEach(function (trigger) {
                Severity: Minor
                Found in public/js/bootstrap.js - About 1 hr to fix

                  Function getRowByUniqueId has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      BootstrapTable.prototype.getRowByUniqueId = function (id) {
                          var uniqueId = this.options.uniqueId,
                              len = this.options.data.length,
                              dataRow = null,
                              i, row, rowUniqueId;
                  Severity: Minor
                  Found in public/js/bootstrap-table.js - About 1 hr to fix

                    Function __setColumnVis has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        var __setColumnVis = function ( settings, column, vis ) {
                            var
                                cols = settings.aoColumns,
                                col  = cols[ column ],
                                data = settings.aoData,
                    Severity: Minor
                    Found in public/js/jquery.dataTables.js - About 1 hr to fix

                      Method handle has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          public function handle(DomainMessage $domainMessage)
                          {
                              $payload = $domainMessage->getPayload();
                              if (!($payload instanceof AnsweredCorrect || $payload instanceof AnsweredInCorrect)) {
                                  return;
                      Severity: Minor
                      Found in src/Statistics/Projectors/CompanyQuestionDifficultyProjector.php - About 1 hr to fix

                        Method normalize has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            public function normalize($question, $format = null, array $context = []): array
                            {
                                $category = $this->categoryNormalizer->normalize(
                                    $question->getCategory(),
                                    $format
                        Severity: Minor
                        Found in src/Question/Serializers/QuestionNormalizer.php - About 1 hr to fix

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

                              var Event = {
                                SHOW: "show" + EVENT_KEY,
                                SHOWN: "shown" + EVENT_KEY,
                                HIDE: "hide" + EVENT_KEY,
                                HIDDEN: "hidden" + EVENT_KEY,
                          Severity: Major
                          Found in public/js/bootstrap.js and 1 other location - About 1 hr to fix
                          public/js/bootstrap.js on lines 3657..3663

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

                          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

                              var Event = {
                                HIDE: "hide" + EVENT_KEY,
                                HIDDEN: "hidden" + EVENT_KEY,
                                SHOW: "show" + EVENT_KEY,
                                SHOWN: "shown" + EVENT_KEY,
                          Severity: Major
                          Found in public/js/bootstrap.js and 1 other location - About 1 hr to fix
                          public/js/bootstrap.js on lines 1069..1075

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

                          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

                                  if ( isFunction( value ) ) {
                                      return this.each( function( j ) {
                                          jQuery( this ).removeClass( value.call( this, j, getClass( this ) ) );
                                      } );
                                  }
                          Severity: Major
                          Found in public/js/jquery.js and 1 other location - About 1 hr to fix
                          public/js/jquery.js on lines 7809..7813

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

                          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

                                  if ( isFunction( value ) ) {
                                      return this.each( function( j ) {
                                          jQuery( this ).addClass( value.call( this, j, getClass( this ) ) );
                                      } );
                                  }
                          Severity: Major
                          Found in public/js/jquery.js and 1 other location - About 1 hr to fix
                          public/js/jquery.js on lines 7846..7850

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

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

                              clone: function( elem, dataAndEvents, deepDataAndEvents ) {
                                  var i, l, srcElements, destElements,
                                      clone = elem.cloneNode( true ),
                                      inPage = jQuery.contains( elem.ownerDocument, elem );
                          
                          
                          Severity: Minor
                          Found in public/js/jquery.js - About 1 hr to fix

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

                                position: function() {
                                    if ( !this[ 0 ] ) {
                                        return;
                                    }
                            
                            
                            Severity: Minor
                            Found in public/js/jquery.js - About 1 hr to fix

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

                              function propFilter( props, specialEasing ) {
                                  var index, name, easing, value, hooks;
                              
                                  // camelCase, specialEasing and expand cssHook pass
                                  for ( index in props ) {
                              Severity: Minor
                              Found in public/js/jquery.js - About 1 hr to fix

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

                                    addClass: function( value ) {
                                        var classes, elem, cur, curValue, clazz, j, finalValue,
                                            i = 0;
                                
                                        if ( isFunction( value ) ) {
                                Severity: Minor
                                Found in public/js/jquery.js - About 1 hr to fix
                                  Severity
                                  Category
                                  Status
                                  Source
                                  Language