devstaff-crete/DevStaff-Heraklion

View on GitHub

Showing 1,643 of 1,643 total issues

Function $get has 6 arguments (exceeds 4 allowed). Consider refactoring.
Open

       function($animateCss,   $rootScope,   $$AnimateRunner,   $rootElement,   $document,   $sniffer) {

    Avoid deeply nested control flow statements.
    Open

                            if ( typeof aPreviousChildElement.setAttribute == 'function' && aPreviousChildElement.tagName != "BR" ) {
                                previousParentElement = aPreviousChildElement;
                                break;
                            }
    Severity: Major
    Found in meetups/meetup06-MobileDev/x-platform/plugin/markdown/markdown.js - About 45 mins to fix

      Avoid deeply nested control flow statements.
      Open

            } else if (BEGING_END_TAGE_REGEXP.test(html)) {
              match = html.match(END_TAG_REGEXP);
      
              if (match) {
                html = html.substring(match[0].length);

        Function create has 6 arguments (exceeds 4 allowed). Consider refactoring.
        Open

            create: function(navViewCtrl, viewLocals, enteringView, leavingView, renderStart, renderEnd) {
        Severity: Minor
        Found in meetups/meetup06-MobileDev/x-platform/ionic/js/ionic-angular.js - About 45 mins to fix

          Avoid deeply nested control flow statements.
          Open

                    if (handler.comment) handler.comment(html.substring(4, index));

            Avoid deeply nested control flow statements.
            Open

                                if( touch.captured || isVerticalSlide( currentSlide ) ) {
                                    event.preventDefault();
                                }
            Severity: Major
            Found in meetups/meetup06-MobileDev/x-platform/js/reveal.js - About 45 mins to fix

              Avoid deeply nested control flow statements.
              Open

                                      while( pastFragments.length ) {
                                          var pastFragment = pastFragments.pop();
                                          pastFragment.classList.add( 'visible' );
                                          pastFragment.classList.remove( 'current-fragment' );
                                      }
              Severity: Major
              Found in meetups/meetup06-MobileDev/x-platform/js/reveal.js - About 45 mins to fix

                Avoid deeply nested control flow statements.
                Open

                        if (match) {
                          html = html.replace(match[0], '');
                          chars = false;
                        }

                  Avoid deeply nested control flow statements.
                  Open

                                          if( distanceX + distanceY < viewDistance ) {
                                              showSlide( verticalSlide );
                                          }
                                          else {
                                              hideSlide( verticalSlide );
                  Severity: Major
                  Found in meetups/meetup06-MobileDev/x-platform/js/reveal.js - About 45 mins to fix

                    Avoid deeply nested control flow statements.
                    Open

                              if (forwardView && currentView.stateId !== forwardView.stateId &&
                                 currentView.historyId === forwardView.historyId) {
                                // they navigated to a new view but the stack already has a forward view
                                // since its a new view remove any forwards that existed
                                tmp = getHistoryById(forwardView.historyId);
                    Severity: Major
                    Found in meetups/meetup06-MobileDev/x-platform/ionic/js/ionic-angular.js - About 45 mins to fix

                      Avoid deeply nested control flow statements.
                      Open

                                  if (tmp && tmp.parentHistoryId === hist.parentHistoryId) {
                                    direction = DIRECTION_SWAP;
                                  }
                      Severity: Major
                      Found in meetups/meetup06-MobileDev/x-platform/ionic/js/ionic-angular.js - About 45 mins to fix

                        Avoid deeply nested control flow statements.
                        Open

                                      if (!foundHistoryId) {
                                        return true;
                                      }
                        Severity: Major
                        Found in meetups/meetup06-MobileDev/x-platform/ionic/js/ionic-angular.js - About 45 mins to fix

                          Avoid deeply nested control flow statements.
                          Open

                                      if (b.nodeType == 1) {
                          
                                        if (b.classList.contains(BACK_TEXT)) {
                                          for (z = 0; z < b.children.length; z++) {
                                            d = b.children[z];
                          Severity: Major
                          Found in meetups/meetup06-MobileDev/x-platform/ionic/js/ionic-angular.js - About 45 mins to fix

                            Avoid deeply nested control flow statements.
                            Open

                                      } else if (scrollTop > maxScrollTop) {
                            
                                        scrollTop = maxScrollTop;
                            
                                      } else {
                            Severity: Major
                            Found in meetups/meetup06-MobileDev/x-platform/ionic/js/ionic.js - About 45 mins to fix

                              Avoid deeply nested control flow statements.
                              Open

                                        for (y = 0; y < splitClasses.length; y++) {
                                          cssClass = splitClasses[y];
                                          el.setAttribute('class', (
                                              (" " + (el.getAttribute('class') || '') + " ")
                                              .replace(/[\n\t]/g, " ")
                              Severity: Major
                              Found in meetups/meetup06-MobileDev/x-platform/ionic/js/ionic-angular.js - About 45 mins to fix

                                Similar blocks of code found in 2 locations. Consider refactoring.
                                Open

                                        heightScale = Math.max(self.__indicatorY.minScale, (self.__indicatorY.size - heightDiff) / self.__indicatorY.size);
                                Severity: Minor
                                Found in meetups/meetup06-MobileDev/x-platform/ionic/js/ionic.js and 1 other location - About 45 mins to fix
                                meetups/meetup06-MobileDev/x-platform/ionic/js/ionic.js on lines 5509..5510

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

                                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

                                        removeEventListener: function( type, listener, useCapture ) {
                                            if( 'addEventListener' in window ) {
                                                ( dom.wrapper || document.querySelector( '.reveal' ) ).removeEventListener( type, listener, useCapture );
                                            }
                                        },
                                Severity: Minor
                                Found in meetups/meetup06-MobileDev/x-platform/js/reveal.js and 1 other location - About 45 mins to fix
                                meetups/meetup06-MobileDev/x-platform/js/reveal.js on lines 4257..4261

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

                                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

                                    function navigateUp() {
                                
                                        // Prioritize hiding fragments
                                        if( ( isOverview() || previousFragment() === false ) && availableRoutes().up ) {
                                            slide( indexh, indexv - 1 );
                                Severity: Minor
                                Found in meetups/meetup06-MobileDev/x-platform/js/reveal.js and 1 other location - About 45 mins to fix
                                meetups/meetup06-MobileDev/x-platform/js/reveal.js on lines 3416..3423

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

                                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

                                Avoid deeply nested control flow statements.
                                Open

                                              if (climbScope.hasOwnProperty('$historyId')) {
                                                return true;
                                              }
                                Severity: Major
                                Found in meetups/meetup06-MobileDev/x-platform/ionic/js/ionic-angular.js - About 45 mins to fix

                                  Avoid deeply nested control flow statements.
                                  Open

                                          if (initHeight) viewportProperties.height = '0';
                                  Severity: Major
                                  Found in meetups/meetup06-MobileDev/x-platform/ionic/js/ionic.js - About 45 mins to fix
                                    Severity
                                    Category
                                    Status
                                    Source
                                    Language