VSVverkeerskunde/gvq-api

View on GitHub

Showing 1,426 of 1,426 total issues

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

    when: function( singleValue ) {
        var

            // count of uncompleted subordinates
            remaining = arguments.length,
Severity: Minor
Found in public/js/jquery.js - About 1 hr to fix

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

        function _fnAjaxUpdateDraw ( settings, json )
        {
            // v1.10 uses camelCase variables, while 1.9 uses Hungarian notation.
            // Support both
            var compat = function ( old, modern ) {
    Severity: Minor
    Found in public/js/jquery.dataTables.js - About 1 hr to fix

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

          function _numbers ( page, pages ) {
              var
                  numbers = [],
                  buttons = extPagination.numbers_length,
                  half = Math.floor( buttons / 2 ),
      Severity: Minor
      Found in public/js/jquery.dataTables.js - About 1 hr to fix

        Method fromContestParticipation has 27 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            public static function fromContestParticipation(
                ContestParticipation $contestParticipation
            ): ContestParticipationEntity {
                if ($contestParticipation->getAddress()) {
                    $address = AddressEmbeddable::fromAddress(
        Severity: Minor
        Found in src/Contest/Repositories/Entities/ContestParticipationEntity.php - About 1 hr to fix

          Method add has 27 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              public function add(Request $request): Response
              {
                  $form = $this->createCompanyForm(null, $request->getLocale() == 'nl');
                  $form->handleRequest($request);
          
          
          Severity: Minor
          Found in src/Company/Controllers/CompanyViewController.php - About 1 hr to fix

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

                    if (!context) {
                      context = new this.constructor(event.currentTarget, this._getDelegateConfig());
                      $$$1(event.currentTarget).data(dataKey, context);
                    }
            Severity: Major
            Found in public/js/bootstrap.js and 2 other locations - About 1 hr to fix
            public/js/bootstrap.js on lines 2606..2609
            public/js/bootstrap.js on lines 2942..2945

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

            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 3 locations. Consider refactoring.
            Open

                    if (!context) {
                      context = new this.constructor(event.currentTarget, this._getDelegateConfig());
                      $$$1(event.currentTarget).data(dataKey, context);
                    }
            Severity: Major
            Found in public/js/bootstrap.js and 2 other locations - About 1 hr to fix
            public/js/bootstrap.js on lines 2606..2609
            public/js/bootstrap.js on lines 2909..2912

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

            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 3 locations. Consider refactoring.
            Open

                      if (!context) {
                        context = new this.constructor(event.currentTarget, this._getDelegateConfig());
                        $$$1(event.currentTarget).data(dataKey, context);
                      }
            Severity: Major
            Found in public/js/bootstrap.js and 2 other locations - About 1 hr to fix
            public/js/bootstrap.js on lines 2909..2912
            public/js/bootstrap.js on lines 2942..2945

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

            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

                            $.extend( preSearch[ column ], {
                                "sSearch": input+"",
                                "bRegex":  regex === null ? false : regex,
                                "bSmart":  smart === null ? true  : smart,
                                "bCaseInsensitive": caseInsen === null ? true : caseInsen
            Severity: Major
            Found in public/js/jquery.dataTables.js and 1 other location - About 1 hr to fix
            public/js/jquery.dataTables.js on lines 9002..9007

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

            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_register( 'ajax.json()', function () {
                    var ctx = this.context;
                
                    if ( ctx.length > 0 ) {
                        return ctx[0].json;
            Severity: Major
            Found in public/js/jquery.dataTables.js and 1 other location - About 1 hr to fix
            public/js/jquery.dataTables.js on lines 7601..7609

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

            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_register( 'ajax.params()', function () {
                    var ctx = this.context;
                
                    if ( ctx.length > 0 ) {
                        return ctx[0].oAjaxData;
            Severity: Major
            Found in public/js/jquery.dataTables.js and 1 other location - About 1 hr to fix
            public/js/jquery.dataTables.js on lines 7587..7595

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

            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

                            params.limit = this.options.pageSize === this.options.formatAllRows() ?
                                this.options.totalRows : this.options.pageSize;
            Severity: Major
            Found in public/js/bootstrap-table.js and 1 other location - About 1 hr to fix
            public/js/bootstrap-table.js on lines 2081..2082

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

            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

                        params.pageSize = this.options.pageSize === this.options.formatAllRows() ?
                            this.options.totalRows : this.options.pageSize;
            Severity: Major
            Found in public/js/bootstrap-table.js and 1 other location - About 1 hr to fix
            public/js/bootstrap-table.js on lines 2100..2101

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

            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

                    _fnApplyToChildren( function(nSizer, i) {
                        nSizer.innerHTML = '<div class="dataTables_sizing" style="height:0;overflow:hidden;">'+headerContent[i]+'</div>';
                        nSizer.style.width = headerWidths[i];
                    }, headerSrcEls );
            Severity: Major
            Found in public/js/jquery.dataTables.js and 1 other location - About 1 hr to fix
            public/js/jquery.dataTables.js on lines 5369..5372

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

            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

                        _fnApplyToChildren( function(nSizer, i) {
                            nSizer.innerHTML = '<div class="dataTables_sizing" style="height:0;overflow:hidden;">'+footerContent[i]+'</div>';
                            nSizer.style.width = footerWidths[i];
                        }, footerSrcEls );
            Severity: Major
            Found in public/js/jquery.dataTables.js and 1 other location - About 1 hr to fix
            public/js/jquery.dataTables.js on lines 5362..5365

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

            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

                        _fnFilterComplete( settings, $.extend( {}, settings.oPreviousSearch, {
                            "sSearch": input+"",
                            "bRegex":  regex === null ? false : regex,
                            "bSmart":  smart === null ? true  : smart,
                            "bCaseInsensitive": caseInsen === null ? true : caseInsen
            Severity: Major
            Found in public/js/jquery.dataTables.js and 1 other location - About 1 hr to fix
            public/js/jquery.dataTables.js on lines 9029..9034

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

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

                remove: function( owner, key ) {
                    var i,
                        cache = owner[ this.expando ];
            
                    if ( cache === undefined ) {
            Severity: Minor
            Found in public/js/jquery.js - About 1 hr to fix

              Function compareObjects has 26 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  var compareObjects = function (objectA, objectB, compareLength) {
                      // Create arrays of property names
                      var getOwnPropertyNames = Object.getOwnPropertyNames || function (obj) {
                          var arr = [];
                          for (var k in obj) {
              Severity: Minor
              Found in public/js/bootstrap-table.js - About 1 hr to fix

                Function _transitionComplete has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                      _proto._transitionComplete = function _transitionComplete(element, active, callback) {
                        if (active) {
                          $$$1(active).removeClass(ClassName.SHOW + " " + ClassName.ACTIVE);
                          var dropdownChild = $$$1(active.parentNode).find(Selector.DROPDOWN_ACTIVE_CHILD)[0];
                
                
                Severity: Minor
                Found in public/js/bootstrap.js - About 1 hr to fix

                  Method __construct has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      public function __construct(
                          iterable $companies,
                          CompanyPlayedQuizzesRepository $companyPlayedQuizzesRepository,
                          EmployeeParticipationRepository $employeeParticipationRepository,
                          TopScoreRepository $topScoreRepository,
                  Severity: Minor
                  Found in src/Company/CompaniesCsvData.php - About 1 hr to fix
                    Severity
                    Category
                    Status
                    Source
                    Language