VSVverkeerskunde/gvq-api

View on GitHub

Showing 428 of 1,426 total issues

Function controller has 49 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        controller: function (quizId, questionNr, answerId) {
          let deferredRender = $.Deferred();

          function renderAnsweredQuestion (data) {
            let answerResult = 'wrong';
Severity: Minor
Found in public/js/quiz.js - About 1 hr to fix

    Function setData has 48 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

                var setData = function (data, val, src) {
                    var a = _fnSplitObjNotation( src ), b;
                    var aLast = a[a.length-1];
                    var arrayNotation, funcNotation, o, innerSrc;
        
    Severity: Minor
    Found in public/js/jquery.dataTables.js - About 1 hr to fix

      Function _fnBuildHead has 47 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          function _fnBuildHead( oSettings )
          {
              var i, ien, cell, row, column;
              var thead = oSettings.nTHead;
              var tfoot = oSettings.nTFoot;
      Severity: Minor
      Found in public/js/jquery.dataTables.js - About 1 hr to fix

        Function show has 47 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

              _proto.show = function show() {
                var _this = this;
        
                if (this._isTransitioning || $$$1(this._element).hasClass(ClassName.SHOW)) {
                  return;
        Severity: Minor
        Found in public/js/bootstrap.js - About 1 hr to fix

          Method denormalize has 47 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              public function denormalize($data, $class, $format = null, array $context = []): Quiz
              {
                  $questions = array_map(
                      function (array $question) use ($format, $context) {
                          return $this->questionDenormalizer->denormalize(
          Severity: Minor
          Found in src/Quiz/Serializers/QuizDenormalizer.php - About 1 hr to fix

            Method showQuiz has 47 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                public function showQuiz(ContainerInterface $container, Request $request): Response
                {
                    $language = $request->get('language');
            
                    if ($request->query->get('channel') === 'company') {
            Severity: Minor
            Found in src/Quiz/Controllers/QuizViewController.php - About 1 hr to fix

              Function addCombinator has 46 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              function addCombinator( matcher, combinator, base ) {
                  var dir = combinator.dir,
                      skip = combinator.next,
                      key = skip || dir,
                      checkNonElements = base && key === "parentNode",
              Severity: Minor
              Found in public/js/jquery.js - About 1 hr to fix

                Function select has 46 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                select = Sizzle.select = function( selector, context, results, seed ) {
                    var i, tokens, token, type, find,
                        compiled = typeof selector === "function" && selector,
                        match = !seed && tokenize( (selector = compiled.selector || selector) );
                
                
                Severity: Minor
                Found in public/js/jquery.js - About 1 hr to fix

                  Function tokenize has 46 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                  tokenize = Sizzle.tokenize = function( selector, parseOnly ) {
                      var matched, match, tokens, type,
                          soFar, groups, preFilters,
                          cached = tokenCache[ selector + " " ];
                  
                  
                  Severity: Minor
                  Found in public/js/jquery.js - About 1 hr to fix

                    Function matcherFromTokens has 46 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                    function matcherFromTokens( tokens ) {
                        var checkContext, matcher, j,
                            len = tokens.length,
                            leadingRelative = Expr.relative[ tokens[0].type ],
                            implicitRelative = leadingRelative || Expr.relative[" "],
                    Severity: Minor
                    Found in public/js/jquery.js - About 1 hr to fix

                      Function _fnDetectHeader has 46 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          function _fnDetectHeader ( aLayout, nThead )
                          {
                              var nTrs = $(nThead).children('tr');
                              var nTr, nCell;
                              var i, k, l, iLen, jLen, iColShifted, iColumn, iColspan, iRowspan;
                      Severity: Minor
                      Found in public/js/jquery.dataTables.js - About 1 hr to fix

                        Function val has 45 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            val: function( value ) {
                                var hooks, ret, valueIsFunction,
                                    elem = this[ 0 ];
                        
                                if ( !arguments.length ) {
                        Severity: Minor
                        Found in public/js/jquery.js - About 1 hr to fix

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

                                  var run = function ( s ) {
                                      var fnSelector = typeof s === 'function';
                              
                                      if ( s === null || s === undefined || fnSelector ) {
                                          // All cells and function selectors
                          Severity: Minor
                          Found in public/js/jquery.dataTables.js - About 1 hr to fix

                            Function show has 45 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                  _proto.show = function show() {
                                    var _this = this;
                            
                                    if (this._element.parentNode && this._element.parentNode.nodeType === Node.ELEMENT_NODE && $$$1(this._element).hasClass(ClassName.ACTIVE) || $$$1(this._element).hasClass(ClassName.DISABLED)) {
                                      return;
                            Severity: Minor
                            Found in public/js/bootstrap.js - About 1 hr to fix

                              Function controller has 45 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                      controller: function () {
                                        let startButton = view.find('button.gvq-start-button');
                              
                                        let teamSelect = view.find('select[name="choose-team"]');
                              
                              
                              Severity: Minor
                              Found in public/js/quiz.js - About 1 hr to fix

                                Method editContact has 45 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    public function editContact(Request $request, ?string $id): Response
                                    {
                                        if ($id === null) {
                                            $user = $this->userRepository->getByEmail(new Email($this->getUser()->getUsername()));
                                        } elseif ($this->get('security.authorization_checker')->isGranted('ROLE_CONTACT')) {
                                Severity: Minor
                                Found in src/User/Controllers/UserViewController.php - About 1 hr to fix

                                  Method edit has 45 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      public function edit(Request $request, string $id): Response
                                      {
                                          $user = $this->userRepository->getById(
                                              $this->uuidFactory->fromString($id)
                                          );
                                  Severity: Minor
                                  Found in src/User/Controllers/UserViewController.php - About 1 hr to fix

                                    Function data has 44 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        data: function( key, value ) {
                                            var i, name, data,
                                                elem = this[ 0 ],
                                                attrs = elem && elem.attributes;
                                    
                                    
                                    Severity: Minor
                                    Found in public/js/jquery.js - About 1 hr to fix

                                      Method handle has 44 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          public function handle(DomainMessage $domainMessage)
                                          {
                                              $payload = $domainMessage->getPayload();
                                      
                                              if ($payload instanceof QuestionAsked) {
                                      Severity: Minor
                                      Found in src/Quiz/Projectors/QuestionResultProjector.php - About 1 hr to fix

                                        Method getTraversableDomainMessages has 44 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            public function getTraversableDomainMessages(
                                                array $types = [],
                                                int $firstId = null,
                                                int $lastId = null,
                                                callable $eventEntityFeedback = null,
                                        Severity: Minor
                                        Found in src/Quiz/EventStore/DoctrineEventStore.php - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language