devstaff-crete/DevStaff-Heraklion

View on GitHub

Showing 1,675 of 1,675 total issues

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

            if( notesElement ) {
                messageData.notes = notesElement.innerHTML;
                messageData.markdown = typeof notesElement.getAttribute( 'data-markdown' ) === 'string';
            }
Severity: Minor
Found in meetups/meetup06-MobileDev/x-platform/plugin/notes/notes.js and 1 other location - About 40 mins to fix
meetups/meetup06-MobileDev/x-platform/plugin/notes-server/client.js on lines 34..37

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

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

            toArray( slide.querySelectorAll( 'iframe' ) ).forEach( function( el ) {
                el.contentWindow.postMessage( 'slide:start', '*' );
            });
Severity: Minor
Found in meetups/meetup06-MobileDev/x-platform/js/reveal.js and 1 other location - About 40 mins to fix
meetups/meetup06-MobileDev/x-platform/js/reveal.js on lines 2769..2771

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

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

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

        if( notesElement ) {
            messageData.notes = notesElement.innerHTML;
            messageData.markdown = typeof notesElement.getAttribute( 'data-markdown' ) === 'string';
        }
meetups/meetup06-MobileDev/x-platform/plugin/notes/notes.js on lines 67..70

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

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

    if (top > self.__maxScrollTop) {
      top = self.__maxScrollTop;
    } else if (top < 0) {
      top = 0;
    }
Severity: Minor
Found in meetups/meetup06-MobileDev/x-platform/ionic/js/ionic.js and 1 other location - About 40 mins to fix
meetups/meetup06-MobileDev/x-platform/ionic/js/ionic.js on lines 5926..5930

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

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

    if (left > self.__maxScrollLeft) {
      left = self.__maxScrollLeft;
    } else if (left < 0) {
      left = 0;
    }
Severity: Minor
Found in meetups/meetup06-MobileDev/x-platform/ionic/js/ionic.js and 1 other location - About 40 mins to fix
meetups/meetup06-MobileDev/x-platform/ionic/js/ionic.js on lines 5933..5937

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

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

Consider simplifying this complex logical expression.
Open

    if ((isBackShown && isNavBackShown && isBackEnabled) !== isBackElementShown) {
      isBackElementShown = isBackShown && isNavBackShown && isBackEnabled;
      ele = getEle(BACK_BUTTON);
      ele && ele.classList[ isBackElementShown ? 'remove' : 'add' ](HIDE);
    }
Severity: Major
Found in meetups/meetup06-MobileDev/x-platform/ionic/js/ionic-angular.js - About 40 mins to fix

    Consider simplifying this complex logical expression.
    Open

      if (!("classList" in document.documentElement) && Object.defineProperty && typeof HTMLElement !== 'undefined') {
        Object.defineProperty(HTMLElement.prototype, 'classList', {
          get: function() {
            var self = this;
            function update(fn) {
    Severity: Major
    Found in meetups/meetup06-MobileDev/x-platform/ionic/js/ionic.js - About 40 mins to fix

      Consider simplifying this complex logical expression.
      Open

            if (!self.options.freeze && scrollParent === self.__container) {
      
              self.hintResize();
              self.scrollBy(
                (e.wheelDeltaX || e.deltaX || 0) / self.options.wheelDampen,
      Severity: Major
      Found in meetups/meetup06-MobileDev/x-platform/ionic/js/ionic.js - About 40 mins to fix

        Consider simplifying this complex logical expression.
        Open

            if (self.__isDragging) {
                self.__decStopped = false;
        
              // Compute move distance
              var moveX = currentTouchLeft - self.__lastTouchLeft;
        Severity: Major
        Found in meetups/meetup06-MobileDev/x-platform/ionic/js/ionic.js - About 40 mins to fix

          Consider simplifying this complex logical expression.
          Open

                if (self.options.freeze || !self.__isDown ||
                  (!self.__isDown && e.defaultPrevented) ||
                  (e.target.tagName === 'TEXTAREA' && e.target.parentElement.querySelector(':focus')) ) {
                  return;
                }
          Severity: Major
          Found in meetups/meetup06-MobileDev/x-platform/ionic/js/ionic.js - About 40 mins to fix

            Consider simplifying this complex logical expression.
            Open

                    if ( !(button > 1 || e.ctrlKey || e.metaKey || e.shiftKey || element.attr('target')) ) {
                      // HACK: This is to allow ng-clicks to be processed before the transition is initiated:
                      var transition = $timeout(function() {
                        $state.go(ref.state, params, options);
                      });

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

                      var currentTime = Date.now(),
                        time = Math.min(1, ((currentTime - start) / duration)),
                        // where .5 would be 50% of time on a linear scale easedT gives a
                        // fraction based on the easing method
                        easedT = easeOutCubic(time);
              Severity: Minor
              Found in meetups/meetup06-MobileDev/x-platform/ionic/js/ionic-angular.js and 1 other location - About 40 mins to fix
              meetups/meetup06-MobileDev/x-platform/ionic/js/ionic.js on lines 7089..7093

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

              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

                  ionic.Gestures.event.onTouch(ionic.Gestures.DOCUMENT, ionic.Gestures.EVENT_MOVE, ionic.Gestures.detection.detect);
              Severity: Minor
              Found in meetups/meetup06-MobileDev/x-platform/ionic/js/ionic.js and 1 other location - About 40 mins to fix
              meetups/meetup06-MobileDev/x-platform/ionic/js/ionic.js on lines 697..697

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

              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

                        if (entering.self.onEnter) {
                          $injector.invoke(entering.self.onEnter, entering.self, entering.locals.globals);
                        }
              meetups/meetup06-MobileDev/x-platform/ionic/js/angular-ui/angular-ui-router.js on lines 3172..3174

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

              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

                        var currentTime = Date.now(),
                          time = Math.min(1, ((currentTime - start) / duration)),
                        // where .5 would be 50% of time on a linear scale easedT gives a
                        // fraction based on the easing method
                          easedT = easeOutCubic(time);
              Severity: Minor
              Found in meetups/meetup06-MobileDev/x-platform/ionic/js/ionic.js and 1 other location - About 40 mins to fix
              meetups/meetup06-MobileDev/x-platform/ionic/js/ionic-angular.js on lines 6849..6853

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

              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

                  ionic.Gestures.event.onTouch(ionic.Gestures.DOCUMENT, ionic.Gestures.EVENT_END, ionic.Gestures.detection.detect);
              Severity: Minor
              Found in meetups/meetup06-MobileDev/x-platform/ionic/js/ionic.js and 1 other location - About 40 mins to fix
              meetups/meetup06-MobileDev/x-platform/ionic/js/ionic.js on lines 696..696

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

              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

                        if (exiting.self.onExit) {
                          $injector.invoke(exiting.self.onExit, exiting.self, exiting.locals.globals);
                        }
              meetups/meetup06-MobileDev/x-platform/ionic/js/angular-ui/angular-ui-router.js on lines 3182..3184

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

              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

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

                  function addAttributes( section, element, previousElement, separatorElementAttributes, separatorSectionAttributes ) {
              Severity: Minor
              Found in meetups/meetup06-MobileDev/x-platform/plugin/markdown/markdown.js - About 35 mins to fix

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

                      function executeAnimationFn(fn, element, event, options, onDone) {

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

                    function postLink(scope, element, attr, scrollCtrl, transclude) {
                  Severity: Minor
                  Found in meetups/meetup06-MobileDev/x-platform/ionic/js/ionic-angular.js - About 35 mins to fix
                    Severity
                    Category
                    Status
                    Source
                    Language