VSVverkeerskunde/gvq-api

View on GitHub

Showing 428 of 1,426 total issues

Function fnUpdate has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

        this.fnUpdate = function( mData, mRow, iColumn, bRedraw, bAction )
Severity: Minor
Found in public/js/jquery.dataTables.js - About 35 mins to fix

    Function number has 5 arguments (exceeds 4 allowed). Consider refactoring.
    Open

            number: function ( thousands, decimal, precision, prefix, postfix ) {
    Severity: Minor
    Found in public/js/jquery.dataTables.js - About 35 mins to fix

      Function superMatcher has 5 arguments (exceeds 4 allowed). Consider refactoring.
      Open

              superMatcher = function( seed, context, xml, results, outermost ) {
      Severity: Minor
      Found in public/js/jquery.js - About 35 mins to fix

        Function buildFragment has 5 arguments (exceeds 4 allowed). Consider refactoring.
        Open

        function buildFragment( elems, context, scripts, selection, ignored ) {
        Severity: Minor
        Found in public/js/jquery.js - About 35 mins to fix

          Function Tween has 5 arguments (exceeds 4 allowed). Consider refactoring.
          Open

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

            Function _selector_run has 5 arguments (exceeds 4 allowed). Consider refactoring.
            Open

                var _selector_run = function ( type, selector, selectFn, settings, opts )
            Severity: Minor
            Found in public/js/jquery.dataTables.js - About 35 mins to fix

              Function add has 5 arguments (exceeds 4 allowed). Consider refactoring.
              Open

                  add: function( elem, types, handler, data, selector ) {
              Severity: Minor
              Found in public/js/jquery.js - About 35 mins to fix

                Function __columnData has 5 arguments (exceeds 4 allowed). Consider refactoring.
                Open

                    var __columnData = function ( settings, column, r1, r2, rows ) {
                Severity: Minor
                Found in public/js/jquery.dataTables.js - About 35 mins to fix

                  Function CHILD has 5 arguments (exceeds 4 allowed). Consider refactoring.
                  Open

                          "CHILD": function( type, what, argument, first, last ) {
                  Severity: Minor
                  Found in public/js/jquery.js - About 35 mins to fix

                    Function condense has 5 arguments (exceeds 4 allowed). Consider refactoring.
                    Open

                    function condense( unmatched, map, filter, context, xml ) {
                    Severity: Minor
                    Found in public/js/jquery.js - About 35 mins to fix

                      Function remove has 5 arguments (exceeds 4 allowed). Consider refactoring.
                      Open

                          remove: function( elem, types, handler, selector, mappedTypes ) {
                      Severity: Minor
                      Found in public/js/jquery.js - About 35 mins to fix

                        Function progress has 5 arguments (exceeds 4 allowed). Consider refactoring.
                        Open

                                    function progress(val, label, css_class, bar, cont) {
                        Severity: Minor
                        Found in public/js/quiz.js - About 35 mins to fix

                          Function renderView has 5 arguments (exceeds 4 allowed). Consider refactoring.
                          Open

                              function renderView (viewName, quizId, questionNr, answerId, scroll) {
                          Severity: Minor
                          Found in public/js/quiz.js - About 35 mins to fix

                            Method __construct has 5 arguments (exceeds 4 allowed). Consider refactoring.
                            Open

                                    CompanyQuestionDifficultyRepositoryFactory $questionDifficultyRepositoryFactory,
                                    CompanyQuestionCounterRepositoryFactory $questionAnsweredCorrectRepositoryFactory,
                                    CompanyQuestionCounterRepositoryFactory $questionAnsweredInCorrectRepositoryFactory,
                                    QuizRepository $quizRepository,
                                    EmployeeParticipationRepository $employeeParticipationRepository
                            Severity: Minor
                            Found in src/Statistics/Projectors/CompanyQuestionDifficultyProjector.php - About 35 mins to fix

                              Method __construct has 5 arguments (exceeds 4 allowed). Consider refactoring.
                              Open

                                      \Redis $redis,
                                      QuestionCounterRepository $answeredCorrectRepository,
                                      QuestionCounterRepository $answeredInCorrectRepository,
                                      QuestionRepository $questionRepository,
                                      NotEmptyString $keyPrefix = null
                              Severity: Minor
                              Found in src/Statistics/Repositories/QuestionDifficultyRedisRepository.php - About 35 mins to fix

                                Method __construct has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                Open

                                        UuidFactoryInterface $uuidFactory,
                                        UserRepository $userRepository,
                                        SerializerInterface $serializer,
                                        TranslatorInterface $translator,
                                        ResponseFactory $responseFactory
                                Severity: Minor
                                Found in src/User/Controllers/UserViewController.php - About 35 mins to fix

                                  Method __construct has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                  Open

                                          iterable $companies,
                                          CompanyPlayedQuizzesRepository $companyPlayedQuizzesRepository,
                                          EmployeeParticipationRepository $employeeParticipationRepository,
                                          TopScoreRepository $topScoreRepository,
                                          NormalizerInterface $normalizer
                                  Severity: Minor
                                  Found in src/Company/CompaniesCsvData.php - About 35 mins to fix

                                    Method __construct has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                    Open

                                            UuidFactoryInterface $uuidFactory,
                                            QuestionRepository $questionRepository,
                                            CategoryRepository $categoryRepository,
                                            ImageController $imageController,
                                            TranslatorInterface $translator
                                    Severity: Minor
                                    Found in src/Question/Controllers/QuestionViewController.php - About 35 mins to fix

                                      Method getTraversableDomainMessages has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                      Open

                                              array $types = [],
                                              int $firstId = null,
                                              int $lastId = null,
                                              callable $eventEntityFeedback = null,
                                              string $uuidStart = null
                                      Severity: Minor
                                      Found in src/Quiz/EventStore/DoctrineEventStore.php - About 35 mins to fix

                                        Function canPlayQuiz has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                                        Open

                                            private function canPlayQuiz(): bool
                                            {
                                                if ($this->allowAnonymous) {
                                                    return true;
                                                } else {
                                        Severity: Minor
                                        Found in src/Quiz/Controllers/QuizViewController.php - About 35 mins 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

                                        Severity
                                        Category
                                        Status
                                        Source
                                        Language