devstaff-crete/DevStaff-Heraklion

View on GitHub

Showing 1,674 of 1,674 total issues

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 groupEventedAnimations has 5 arguments (exceeds 4 allowed). Consider refactoring.
    Open

          function groupEventedAnimations(element, event, options, animations, fnName) {

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

             function($$jqLite,   $rootScope,   $injector,   $$AnimateRunner,   $$rAFScheduler) {

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

          setDimensions: function(clientWidth, clientHeight, contentWidth, contentHeight, continueScrolling) {
        Severity: Minor
        Found in meetups/meetup06-MobileDev/x-platform/ionic/js/ionic.js - About 35 mins to fix

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

            scrollTo: function(left, top, animate, zoom, wasResize) {
          Severity: Minor
          Found in meetups/meetup06-MobileDev/x-platform/ionic/js/ionic.js - About 35 mins to fix

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

              __publish: function(left, top, zoom, animate, wasResize) {
            Severity: Minor
            Found in meetups/meetup06-MobileDev/x-platform/ionic/js/ionic.js - About 35 mins to fix

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

              function applyAnimationFromStyles(element, options) {
                if (options.from) {
                  element.css(options.from);
                  options.from = null;
                }
              meetups/meetup06-MobileDev/x-platform/ionic/js/angular/angular-animate.js on lines 168..173

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

              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

                  } else if (textAlign == 'right') {
                    updateCss = 'title-right';
                    if (buttonsLeft) {
                      updateTitleLeft = buttonsLeft + 15;
                    }
              Severity: Minor
              Found in meetups/meetup06-MobileDev/x-platform/ionic/js/ionic-angular.js and 1 other location - About 35 mins to fix
              meetups/meetup06-MobileDev/x-platform/ionic/js/ionic-angular.js on lines 5270..5294

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

              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

                  version: function() {
                    // singleton to get the platform version
                    if (platformVersion === null) self.setVersion(self.device().version);
                    return platformVersion;
                  },
              Severity: Minor
              Found in meetups/meetup06-MobileDev/x-platform/ionic/js/ionic.js and 1 other location - About 35 mins to fix
              meetups/meetup06-MobileDev/x-platform/ionic/js/ionic.js on lines 2257..2261

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

              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

                  platform: function() {
                    // singleton to get the platform name
                    if (platformName === null) self.setPlatform(self.device().platform);
                    return platformName;
                  },
              Severity: Minor
              Found in meetups/meetup06-MobileDev/x-platform/ionic/js/ionic.js and 1 other location - About 35 mins to fix
              meetups/meetup06-MobileDev/x-platform/ionic/js/ionic.js on lines 2287..2291

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

              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

                          dom.overlay.querySelector( '.close' ).addEventListener( 'click', function( event ) {
                              closeOverlay();
                              event.preventDefault();
                          }, false );
              Severity: Minor
              Found in meetups/meetup06-MobileDev/x-platform/js/reveal.js and 1 other location - About 35 mins to fix
              meetups/meetup06-MobileDev/x-platform/js/reveal.js on lines 1364..1367

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

              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 (textAlign == 'left') {
                    updateCss = 'title-left';
                    if (buttonsLeft) {
                      updateTitleLeft = buttonsLeft + 15;
                    }
              Severity: Minor
              Found in meetups/meetup06-MobileDev/x-platform/ionic/js/ionic-angular.js and 1 other location - About 35 mins to fix
              meetups/meetup06-MobileDev/x-platform/ionic/js/ionic-angular.js on lines 5279..5294

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

              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

                      dom.overlay.querySelector( '.close' ).addEventListener( 'click', function( event ) {
                          closeOverlay();
                          event.preventDefault();
                      }, false );
              Severity: Minor
              Found in meetups/meetup06-MobileDev/x-platform/js/reveal.js and 1 other location - About 35 mins to fix
              meetups/meetup06-MobileDev/x-platform/js/reveal.js on lines 1411..1414

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

              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 applyAnimationToStyles(element, options) {
                if (options.to) {
                  element.css(options.to);
                  options.to = null;
                }
              meetups/meetup06-MobileDev/x-platform/ionic/js/angular/angular-animate.js on lines 161..166

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

              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

                        a: [{
                          fn: function() {
                            return {
                              an: STROKE_OPACITY,
                              dur: DURATION,
              Severity: Minor
              Found in meetups/meetup06-MobileDev/x-platform/ionic/js/ionic-angular.js and 1 other location - About 35 mins to fix
              meetups/meetup06-MobileDev/x-platform/ionic/js/ionic-angular.js on lines 7840..7850

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

              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

                        } else {
                          // it should be full screen
                          window.StatusBar && window.StatusBar.hide();
                          document.body.classList.add('status-bar-hide');
                        }
              Severity: Minor
              Found in meetups/meetup06-MobileDev/x-platform/ionic/js/ionic.js and 1 other location - About 35 mins to fix
              meetups/meetup06-MobileDev/x-platform/ionic/js/ionic.js on lines 2365..2369

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

              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 (self._showStatusBar) {
                          // they do not want it to be full screen
                          window.StatusBar && window.StatusBar.show();
                          document.body.classList.remove('status-bar-hide');
                        } else {
              Severity: Minor
              Found in meetups/meetup06-MobileDev/x-platform/ionic/js/ionic.js and 1 other location - About 35 mins to fix
              meetups/meetup06-MobileDev/x-platform/ionic/js/ionic.js on lines 2369..2373

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

              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

                          }, {
                            fn: function() {
                              return {
                                an: STROKE_OPACITY,
                                dur: DURATION,
              Severity: Minor
              Found in meetups/meetup06-MobileDev/x-platform/ionic/js/ionic-angular.js and 1 other location - About 35 mins to fix
              meetups/meetup06-MobileDev/x-platform/ionic/js/ionic-angular.js on lines 7677..7687

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

              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 too many return statements within this function.
              Open

                      return value;
              Severity: Major
              Found in meetups/meetup06-MobileDev/x-platform/js/reveal.js - About 30 mins to fix

                Avoid too many return statements within this function.
                Open

                        return runner;
                  Severity
                  Category
                  Status
                  Source
                  Language