devstaff-crete/DevStaff-Heraklion

View on GitHub

Showing 1,642 of 1,642 total issues

File angular-resource.js has 256 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/**
 * @license AngularJS v1.4.3
 * (c) 2010-2015 Google, Inc. http://angularjs.org
 * License: MIT
 */

    Function createBackground has 53 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        function createBackground( slide, container ) {
    
            var data = {
                background: slide.getAttribute( 'data-background' ),
                backgroundSize: slide.getAttribute( 'data-background-size' ),
    Severity: Major
    Found in meetups/meetup06-MobileDev/x-platform/js/reveal.js - About 2 hrs to fix

      Function compile has 53 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          compile: function (tElement, tAttrs, $transclude) {
            return function (scope, $element, attrs) {
              var previousEl, currentEl, currentScope, latestLocals,
                  onloadExp     = attrs.onload || '',
                  autoScrollExp = attrs.autoscroll,

        Function addEventListeners has 52 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            function addEventListeners() {
        
                eventsAreBound = true;
        
                window.addEventListener( 'hashchange', onWindowHashChange, false );
        Severity: Major
        Found in meetups/meetup06-MobileDev/x-platform/js/reveal.js - About 2 hrs to fix

          Function exports has 52 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          module.exports = function(grunt) {
            require('jit-grunt')(grunt, {
              'validate-package': 'grunt-nsp-package',
              'validate-shrinkwrap': 'grunt-nsp-shrinkwrap'
            });
          Severity: Major
          Found in meetups/meetup05-Testing/Gruntfile.js - About 2 hrs to fix

            Function compile has 52 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                compile: function(element) {
                  element.addClass('scroll-view ionic-scroll');
            
                  //We cannot transclude here because it breaks element.data() inheritance on compile
                  var innerElement = jqLite('<div class="scroll"></div>');
            Severity: Major
            Found in meetups/meetup06-MobileDev/x-platform/ionic/js/ionic-angular.js - About 2 hrs to fix

              Function __publish has 52 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                __publish: function(left, top, zoom, animate, wasResize) {
              
                  var self = this;
              
                  // Remember whether we had an animation, then we try to continue based on the current "drive" of the animation
              Severity: Major
              Found in meetups/meetup06-MobileDev/x-platform/ionic/js/ionic.js - About 2 hrs to fix

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

                      if(ionic.Gestures.detection.current.name != this.name && this.triggered) {
                        inst.trigger(this.name + 'end', ev);
                        this.triggered = false;
                        return;
                      }
                Severity: Major
                Found in meetups/meetup06-MobileDev/x-platform/ionic/js/ionic.js and 1 other location - About 2 hrs to fix
                meetups/meetup06-MobileDev/x-platform/ionic/js/ionic.js on lines 1900..1904

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

                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(ionic.Gestures.detection.current.name != this.name && this.triggered) {
                        inst.trigger(this.name + 'end', ev);
                        this.triggered = false;
                        return;
                      }
                Severity: Major
                Found in meetups/meetup06-MobileDev/x-platform/ionic/js/ionic.js and 1 other location - About 2 hrs to fix
                meetups/meetup06-MobileDev/x-platform/ionic/js/ionic.js on lines 1790..1794

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

                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 processSlides has 50 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    function processSlides() {
                
                        var sections = document.querySelectorAll( '[data-markdown]'),
                            section;
                
                
                Severity: Minor
                Found in meetups/meetup06-MobileDev/x-platform/plugin/markdown/markdown.js - About 2 hrs to fix

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

                      show: function(target) {
                        var self = this;
                  
                        if (self.scope.$$destroyed) {
                          $log.error('Cannot call ' + self.viewType + '.show() after remove(). Please create a new ' + self.viewType + ' instance.');
                  Severity: Minor
                  Found in meetups/meetup06-MobileDev/x-platform/ionic/js/ionic-angular.js - About 2 hrs to fix

                    Function openNotes has 50 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        function openNotes() {
                            var jsFileLocation = document.querySelector('script[src$="notes.js"]').src;  // this js file path
                            jsFileLocation = jsFileLocation.replace(/notes\.js(\?.*)?$/, '');   // the js folder path
                            var notesPopup = window.open( jsFileLocation + 'notes.html', 'reveal.js - Notes', 'width=1100,height=700' );
                    
                    
                    Severity: Minor
                    Found in meetups/meetup06-MobileDev/x-platform/plugin/notes/notes.js - About 2 hrs to fix

                      Function layout has 50 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          function layout() {
                      
                              if( dom.wrapper && !isPrintingPDF() ) {
                      
                                  var size = getComputedSlideSize();
                      Severity: Minor
                      Found in meetups/meetup06-MobileDev/x-platform/js/reveal.js - About 2 hrs to fix

                        Function onTouch has 50 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            onTouch: function onTouch(element, eventType, handler) {
                              var self = this;
                        
                              this.bindDom(element, ionic.Gestures.EVENT_TYPES[eventType], function bindDomOnTouch(ev) {
                                var sourceEventType = ev.type.toLowerCase();
                        Severity: Minor
                        Found in meetups/meetup06-MobileDev/x-platform/ionic/js/ionic.js - About 2 hrs to fix

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

                              getDistance: function getDistance(touch1, touch2) {
                                var x = touch2.pageX - touch1.pageX,
                                y = touch2.pageY - touch1.pageY;
                                return Math.sqrt((x * x) + (y * y));
                              },
                          Severity: Major
                          Found in meetups/meetup06-MobileDev/x-platform/ionic/js/ionic.js and 1 other location - About 2 hrs to fix
                          meetups/meetup06-MobileDev/x-platform/ionic/js/ionic.js on lines 6835..6839

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

                          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

                            __getDistance: function getDistance(touch1, touch2) {
                              var x = touch2.pageX - touch1.pageX,
                              y = touch2.pageY - touch1.pageY;
                              return Math.sqrt((x * x) + (y * y));
                            },
                          Severity: Major
                          Found in meetups/meetup06-MobileDev/x-platform/ionic/js/ionic.js and 1 other location - About 2 hrs to fix
                          meetups/meetup06-MobileDev/x-platform/ionic/js/ionic.js on lines 1252..1256

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

                          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

                              for (i = 0; i < keys.length; i++) {
                                if (document.documentElement.style[keys[i]] !== undefined) {
                                  ionic.CSS.TRANSITION = keys[i];
                                  break;
                                }
                          Severity: Major
                          Found in meetups/meetup06-MobileDev/x-platform/ionic/js/ionic.js and 1 other location - About 1 hr to fix
                          meetups/meetup06-MobileDev/x-platform/ionic/js/ionic.js on lines 2464..2469

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

                          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

                              for (i = 0; i < keys.length; i++) {
                                if (document.documentElement.style[keys[i]] !== undefined) {
                                  ionic.CSS.TRANSFORM = keys[i];
                                  break;
                                }
                          Severity: Major
                          Found in meetups/meetup06-MobileDev/x-platform/ionic/js/ionic.js and 1 other location - About 1 hr to fix
                          meetups/meetup06-MobileDev/x-platform/ionic/js/ionic.js on lines 2473..2478

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

                          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 navigateFragment has 48 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              function navigateFragment( index, offset ) {
                          
                                  if( currentSlide && config.fragments ) {
                          
                                      var fragments = sortFragments( currentSlide.querySelectorAll( '.fragment' ) );
                          Severity: Minor
                          Found in meetups/meetup06-MobileDev/x-platform/js/reveal.js - About 1 hr to fix

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

                                start: function(stepCallback, verifyCallback, completedCallback, duration, easingMethod, root) {
                            
                                  var start = time();
                                  var lastFrame = start;
                                  var percent = 0;
                            Severity: Minor
                            Found in meetups/meetup06-MobileDev/x-platform/ionic/js/ionic.js - About 1 hr to fix
                              Severity
                              Category
                              Status
                              Source
                              Language