VSVverkeerskunde/gvq-api

View on GitHub

Showing 428 of 1,426 total issues

Function __column_selector has 66 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    var __column_selector = function ( settings, selector, opts )
    {
        var
            columns = settings.aoColumns,
            names = _pluck( columns, 'sName' ),
Severity: Major
Found in public/js/jquery.dataTables.js - About 2 hrs to fix

    Function superMatcher has 65 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            superMatcher = function( seed, context, xml, results, outermost ) {
                var elem, j, matcher,
                    matchedCount = 0,
                    i = "0",
                    unmatched = seed && [],
    Severity: Major
    Found in public/js/jquery.js - About 2 hrs to fix

      Function _fnDrawHead has 65 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          function _fnDrawHead( oSettings, aoSource, bIncludeHidden )
          {
              var i, iLen, j, jLen, k, kLen, n, nLocalTr;
              var aoLocal = [];
              var aApplied = [];
      Severity: Major
      Found in public/js/jquery.dataTables.js - About 2 hrs to fix

        Function fitHeader has 65 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            BootstrapTable.prototype.fitHeader = function () {
                var that = this,
                    fixedBody,
                    scrollWidth,
                    focused,
        Severity: Major
        Found in public/js/bootstrap-table.js - About 2 hrs to fix

          Function execute has a Cognitive Complexity of 19 (exceeds 5 allowed). Consider refactoring.
          Open

              protected function execute(
                  InputInterface $input,
                  OutputInterface $output
              ): void {
                  $output->writeln('Start searching the event store...');
          Severity: Minor
          Found in src/Command/ListCommand.php - About 2 hrs 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

          Function attach has 64 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                          var attach = function( container, buttons ) {
                              var i, ien, node, button;
                              var clickHandler = function ( e ) {
                                  _fnPageChange( settings, e.data.action, true );
                              };
          Severity: Major
          Found in public/js/jquery.dataTables.js - About 2 hrs to fix

            Method buildForm has 64 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                public function buildForm(FormBuilderInterface $builder, array $options)
                {
                    /** @var Company $company */
                    $company = $options['company'];
                    /** @var TranslatorInterface $translator */
            Severity: Major
            Found in src/Company/Forms/CompanyFormType.php - About 2 hrs to fix

              Function _fnLoadState has 63 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  function _fnLoadState ( settings, oInit, callback )
                  {
                      var i, ien;
                      var columns = settings.aoColumns;
                      var loaded = function ( s ) {
              Severity: Major
              Found in public/js/jquery.dataTables.js - About 2 hrs to fix

                Function _slide has 63 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                      _proto._slide = function _slide(direction, element) {
                        var _this3 = this;
                
                        var activeElement = $$$1(this._element).find(Selector.ACTIVE_ITEM)[0];
                
                
                Severity: Major
                Found in public/js/bootstrap.js - About 2 hrs to fix

                  Function loadedInit has 62 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                              var loadedInit = function () {
                                  /*
                                   * Sorting
                                   * @todo For modularisation (1.11) this needs to do into a sort start up handler
                                   */
                  Severity: Major
                  Found in public/js/jquery.dataTables.js - About 2 hrs to fix

                    Function Button has 62 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        function () {
                          function Button(element) {
                            this._element = element;
                          } // Getters
                    
                    
                    Severity: Major
                    Found in public/js/bootstrap.js - About 2 hrs to fix

                      Method execute has 61 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          protected function execute(
                              InputInterface $input,
                              OutputInterface $output
                          ): void {
                              $output->writeln('Start searching the event store...');
                      Severity: Major
                      Found in src/Command/ListCommand.php - About 2 hrs to fix

                        Function _fnFeatureHtmlFilter has 60 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            function _fnFeatureHtmlFilter ( settings )
                            {
                                var classes = settings.oClasses;
                                var tableId = settings.sTableId;
                                var language = settings.oLanguage;
                        Severity: Major
                        Found in public/js/jquery.dataTables.js - About 2 hrs to fix

                          Method contest has 60 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              public function contest(Request $request, string $quizId): Response
                              {
                                  try {
                                      $quiz = $this->quizRepository->getById(Uuid::fromString($quizId));
                          
                          
                          Severity: Major
                          Found in src/Contest/Controllers/ContestViewController.php - About 2 hrs to fix

                            Function ajaxConvert has 59 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                            function ajaxConvert( s, response, jqXHR, isSuccess ) {
                                var conv2, current, conv, tmp, prev,
                                    converters = {},
                            
                                    // Work with a copy of dataTypes in case we need to modify it for conversion
                            Severity: Major
                            Found in public/js/jquery.js - About 2 hrs to fix

                              Function run has 59 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                      var run = function ( s ) {
                                          var selInt = _intVal( s );
                                  
                                          // Selector - all
                                          if ( s === '' ) {
                              Severity: Major
                              Found in public/js/jquery.dataTables.js - About 2 hrs to fix

                                Method dashboard has 59 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    public function dashboard(?string $companyId): Response
                                    {
                                        $activeCompany = $this->getCompany($companyId);
                                        $companies = $this->getCompaniesForUser();
                                
                                
                                Severity: Major
                                Found in src/Dashboard/Controllers/DashboardViewController.php - About 2 hrs to fix

                                  Function domManip has 58 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                  function domManip( collection, args, callback, ignored ) {
                                  
                                      // Flatten any nested arrays
                                      args = concat.apply( [], args );
                                  
                                  
                                  Severity: Major
                                  Found in public/js/jquery.js - About 2 hrs to fix

                                    Function initSearch has 56 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        BootstrapTable.prototype.initSearch = function () {
                                            var that = this;
                                    
                                            if (this.options.sidePagination !== 'server') {
                                                if (this.options.customSearch !== $.noop) {
                                    Severity: Major
                                    Found in public/js/bootstrap-table.js - About 2 hrs to fix

                                      Function __cell_selector has 55 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          var __cell_selector = function ( settings, selector, opts )
                                          {
                                              var data = settings.aoData;
                                              var rows = _selector_row_indexes( settings, opts );
                                              var cells = _removeEmpty( _pluck_order( data, rows, 'anCells' ) );
                                      Severity: Major
                                      Found in public/js/jquery.dataTables.js - About 2 hrs to fix
                                        Severity
                                        Category
                                        Status
                                        Source
                                        Language