VSVverkeerskunde/gvq-api

View on GitHub

Showing 1,426 of 1,426 total issues

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

    _api_registerPlural( 'columns().footer()', 'column().footer()', function ( selector, opts ) {
        return this.iterator( 'column', function ( settings, column ) {
            return settings.aoColumns[column].nTf;
        }, 1 );
    } );
Severity: Minor
Found in public/js/jquery.dataTables.js and 1 other location - About 50 mins to fix
public/js/jquery.dataTables.js on lines 8567..8571

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

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

            if ($items.filter(':checked').length <= this.options.minimumCountColumns) {
                $items.filter(':checked').prop('disabled', true);
            }
Severity: Minor
Found in public/js/bootstrap-table.js and 1 other location - About 50 mins to fix
public/js/bootstrap-table.js on lines 2438..2440

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

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

    _api_registerPlural( 'columns().header()', 'column().header()', function ( selector, opts ) {
        return this.iterator( 'column', function ( settings, column ) {
            return settings.aoColumns[column].nTh;
        }, 1 );
    } );
Severity: Minor
Found in public/js/jquery.dataTables.js and 1 other location - About 50 mins to fix
public/js/jquery.dataTables.js on lines 8573..8577

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

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

      _proto._getConfig = function _getConfig(config) {
        config = _objectSpread({}, Default, config);
        Util.typeCheckConfig(NAME, config, DefaultType);
        return config;
      };
Severity: Minor
Found in public/js/bootstrap.js and 1 other location - About 50 mins to fix
public/js/bootstrap.js on lines 735..739

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

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

      _proto._getConfig = function _getConfig(config) {
        config = _objectSpread({}, Default, config);
        Util.typeCheckConfig(NAME, config, DefaultType);
        return config;
      };
Severity: Minor
Found in public/js/bootstrap.js and 1 other location - About 50 mins to fix
public/js/bootstrap.js on lines 2086..2090

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

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 setMatcher has 6 arguments (exceeds 4 allowed). Consider refactoring.
Open

function setMatcher( preFilter, selector, matcher, postFilter, postFinder, postSelector ) {
Severity: Minor
Found in public/js/jquery.js - About 45 mins to fix

    Function init has 6 arguments (exceeds 4 allowed). Consider refactoring.
    Open

        init: function( elem, options, prop, end, easing, unit ) {
    Severity: Minor
    Found in public/js/jquery.js - About 45 mins to fix

      Avoid deeply nested control flow statements.
      Open

                              if ( ( event.result = ret ) === false ) {
                                  event.preventDefault();
                                  event.stopPropagation();
                              }
      Severity: Major
      Found in public/js/jquery.js - About 45 mins to fix

        Function _fnFilterColumn has 6 arguments (exceeds 4 allowed). Consider refactoring.
        Open

            function _fnFilterColumn ( settings, searchStr, colIdx, regex, smart, caseInsensitive )
        Severity: Minor
        Found in public/js/jquery.dataTables.js - About 45 mins to fix

          Function _fnFilter has 6 arguments (exceeds 4 allowed). Consider refactoring.
          Open

              function _fnFilter( settings, input, force, regex, smart, caseInsensitive )
          Severity: Minor
          Found in public/js/jquery.dataTables.js - About 45 mins to fix

            Function on has 6 arguments (exceeds 4 allowed). Consider refactoring.
            Open

            function on( elem, types, selector, data, fn, one ) {
            Severity: Minor
            Found in public/js/jquery.js - About 45 mins to fix

              Avoid deeply nested control flow statements.
              Open

                              } else if ( match[2] ) {
                                  push.apply( results, context.getElementsByTagName( selector ) );
                                  return results;
              
                              // Class selector
              Severity: Major
              Found in public/js/jquery.js - About 45 mins to fix

                Avoid deeply nested control flow statements.
                Open

                                        if ( nid === expando ) {
                                            context.removeAttribute( "id" );
                                        }
                Severity: Major
                Found in public/js/jquery.js - About 45 mins to fix

                  Avoid deeply nested control flow statements.
                  Open

                                          if ( cur.indexOf( " " + clazz + " " ) < 0 ) {
                                              cur += clazz + " ";
                                          }
                  Severity: Major
                  Found in public/js/jquery.js - About 45 mins to fix

                    Avoid deeply nested control flow statements.
                    Open

                                            if ( (elem = matcherOut[i]) ) {
                                                // Restore matcherIn since elem is not yet a final match
                                                temp.push( (matcherIn[i] = elem) );
                                            }
                    Severity: Major
                    Found in public/js/jquery.js - About 45 mins to fix

                      Avoid deeply nested control flow statements.
                      Open

                                                  if ( !(unmatched[i] || setMatched[i]) ) {
                                                      setMatched[i] = pop.call( results );
                                                  }
                      Severity: Major
                      Found in public/js/jquery.js - About 45 mins to fix

                        Avoid deeply nested control flow statements.
                        Open

                                            for ( conv2 in converters ) {
                        
                                                // If conv2 outputs current
                                                tmp = conv2.split( " " );
                                                if ( tmp[ 1 ] === current ) {
                        Severity: Major
                        Found in public/js/jquery.js - About 45 mins to fix

                          Function boxModelAdjustment has 6 arguments (exceeds 4 allowed). Consider refactoring.
                          Open

                          function boxModelAdjustment( elem, dimension, box, isBorderBox, styles, computedVal ) {
                          Severity: Minor
                          Found in public/js/jquery.js - About 45 mins to fix

                            Avoid deeply nested control flow statements.
                            Open

                                                while ( i-- ) {
                                                    groups[i] = "#" + nid + " " + toSelector( groups[i] );
                                                }
                            Severity: Major
                            Found in public/js/jquery.js - About 45 mins to fix

                              Avoid deeply nested control flow statements.
                              Open

                                                  if ( copyIsArray ) {
                                                      copyIsArray = false;
                                                      clone = src && Array.isArray( src ) ? src : [];
                              
                                                  } else {
                              Severity: Major
                              Found in public/js/jquery.js - About 45 mins to fix
                                Severity
                                Category
                                Status
                                Source
                                Language