VSVverkeerskunde/gvq-api

View on GitHub

Showing 428 of 1,426 total issues

Function _fnBrowserDetect has 40 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    function _fnBrowserDetect( settings )
    {
        // We don't need to do this every time DataTables is constructed, the values
        // calculated are specific to the browser and OS configuration which we
        // don't expect to change between initialisations
Severity: Minor
Found in public/js/jquery.dataTables.js - About 1 hr to fix

    Function on has 40 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    function on( elem, types, selector, data, fn, one ) {
        var origFn, type;
    
        // Types can be a map of types/handlers
        if ( typeof types === "object" ) {
    Severity: Minor
    Found in public/js/jquery.js - About 1 hr to fix

      Function toggleClass has 40 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          toggleClass: function( value, stateVal ) {
              var type = typeof value,
                  isValidValue = type === "string" || Array.isArray( value );
      
              if ( typeof stateVal === "boolean" && isValidValue ) {
      Severity: Minor
      Found in public/js/jquery.js - About 1 hr to fix

        Function adjustCSS has 40 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        function adjustCSS( elem, prop, valueParts, tween ) {
            var adjusted, scale,
                maxIterations = 20,
                currentValue = tween ?
                    function() {
        Severity: Minor
        Found in public/js/jquery.js - About 1 hr to fix

          Function fetchData has 40 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                      var fetchData = function (data, type, src) {
                          var arrayNotation, funcNotation, out, innerSrc;
              
                          if ( src !== "" )
                          {
          Severity: Minor
          Found in public/js/jquery.dataTables.js - About 1 hr to fix

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

                protected function execute(InputInterface $input, OutputInterface $output): void
                {
                    $helper = $this->getHelper('question');
                    $question = new ConfirmationQuestion('Continue with cleaning the read models? ', false);
            
            
            Severity: Minor
            Found in src/Command/CleanReadModelsCommand.php - About 1 hr 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 _fnInvalidate has 39 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                function _fnInvalidate( settings, rowIdx, src, colIdx )
                {
                    var row = settings.aoData[ rowIdx ];
                    var i, ien;
                    var cellWrite = function ( cell, col ) {
            Severity: Minor
            Found in public/js/jquery.dataTables.js - About 1 hr to fix

              Function _fnFeatureHtmlLength has 39 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  function _fnFeatureHtmlLength ( settings )
                  {
                      var
                          classes  = settings.oClasses,
                          tableId  = settings.sTableId,
              Severity: Minor
              Found in public/js/jquery.dataTables.js - About 1 hr to fix

                Function dispatch has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    dispatch: function( nativeEvent ) {
                
                        // Make a writable jQuery.Event from the native event object
                        var event = jQuery.event.fix( nativeEvent );
                
                
                Severity: Minor
                Found in public/js/jquery.js - About 1 hr to fix

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

                      public function add(Request $request): Response
                      {
                          $form = $this->createQuestionForm(null);
                          $form->handleRequest($request);
                  
                  
                  Severity: Minor
                  Found in src/Question/Controllers/QuestionViewController.php - About 1 hr to fix

                    Method updateQuestionFromData has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        public function updateQuestionFromData(
                            UuidFactoryInterface $uuidFactory,
                            Question $question,
                            array $data
                        ): Question {
                    Severity: Minor
                    Found in src/Question/Forms/QuestionFormType.php - About 1 hr to fix

                      Function ajaxHandleResponses has 37 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                      function ajaxHandleResponses( s, jqXHR, responses ) {
                      
                          var ct, type, finalDataType, firstDataType,
                              contents = s.contents,
                              dataTypes = s.dataTypes;
                      Severity: Minor
                      Found in public/js/jquery.js - About 1 hr to fix

                        Function slugify has 37 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                        function slugify(text) {
                            text = text.toString().toLowerCase().trim();
                        
                            const sets = [
                                {to: 'a', from: '[ÀÁÂÃÄÅÆĀĂĄẠẢẤẦẨẪẬẮẰẲẴẶ]'},
                        Severity: Minor
                        Found in public/js/slugify.js - About 1 hr to fix

                          Method registerIframe has 37 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              public function registerIframe(Request $request): Response
                              {
                                  if (!$this->canRegister()) {
                                      return new Response('', Response::HTTP_FORBIDDEN);
                                  }
                          Severity: Minor
                          Found in src/Account/Controllers/AccountViewController.php - About 1 hr to fix

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

                                public function normalize($quiz, $format = null, array $context = []): array
                                {
                                    $questions = array_map(
                                        function (Question $question) use ($format) {
                                            return $this->questionNormalizer->normalize(
                            Severity: Minor
                            Found in src/Quiz/Serializers/QuizNormalizer.php - About 1 hr to fix

                              Method register has 37 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  public function register(Request $request): Response
                                  {
                                      if (!$this->canRegister()) {
                                          return new Response('', Response::HTTP_FORBIDDEN);
                                      }
                              Severity: Minor
                              Found in src/Account/Controllers/AccountViewController.php - About 1 hr to fix

                                Method getDetailedTopScoreAverages has 37 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    public function getDetailedTopScoreAverages(): array
                                    {
                                        $averages = [];
                                
                                        foreach ($this->statisticsKeys as $statisticsKey) {
                                Severity: Minor
                                Found in src/Statistics/Service/StatisticsService.php - About 1 hr to fix

                                  Function boxModelAdjustment has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                  function boxModelAdjustment( elem, dimension, box, isBorderBox, styles, computedVal ) {
                                      var i = dimension === "width" ? 1 : 0,
                                          extra = 0,
                                          delta = 0;
                                  
                                  
                                  Severity: Minor
                                  Found in public/js/jquery.js - About 1 hr to fix

                                    Function mightThrow has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                                                    mightThrow = function() {
                                                                        var returned, then;
                                    
                                                                        // Support: Promises/A+ section 2.3.3.3.3
                                                                        // https://promisesaplus.com/#point-59
                                    Severity: Minor
                                    Found in public/js/jquery.js - About 1 hr to fix

                                      Method configure has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          protected function configure(): void
                                          {
                                              $this
                                                  ->setName('gvq:replay')
                                                  ->setDescription('Replay all current events.')
                                      Severity: Minor
                                      Found in src/Command/ReplayCommand.php - About 1 hr to fix
                                        Severity
                                        Category
                                        Status
                                        Source
                                        Language