devstaff-crete/DevStaff-Heraklion

View on GitHub

Showing 1,643 of 1,643 total issues

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

    controller: ['$scope', '$element', '$attrs', function($scope, $element, $attrs) {
      var _this = this;

      var continuous = $scope.$eval($scope.doesContinue) === true;
      var shouldAutoPlay = isDefined($attrs.autoPlay) ? !!$scope.autoPlay : false;
Severity: Major
Found in meetups/meetup06-MobileDev/x-platform/ionic/js/ionic-angular.js - About 2 hrs to fix

    Function $get has 70 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      function $get(   $location,   $rootScope,   $injector,   $browser) {
    
        var baseHref = $browser.baseHref(), location = $location.url(), lastPushedUrl;
    
        function appendBasePath(url, isHtml5, absolute) {

      Function transition has 69 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

        self.transition = function(enteringHeaderBar, leavingHeaderBar, viewData) {
          var enteringHeaderBarCtrl = enteringHeaderBar.controller();
          var transitionFn = $ionicConfig.transitions.navBar[viewData.navBarTransition] || $ionicConfig.transitions.navBar.none;
          var transitionId = viewData.transitionId;
      
      
      Severity: Major
      Found in meetups/meetup06-MobileDev/x-platform/ionic/js/ionic-angular.js - About 2 hrs to fix

        Function getLoader has 68 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

          function getLoader() {
            if (!loaderInstance) {
              loaderInstance = $ionicTemplateLoader.compile({
                template: LOADING_TPL,
                appendTo: $ionicBody.get()
        Severity: Major
        Found in meetups/meetup06-MobileDev/x-platform/ionic/js/ionic-angular.js - About 2 hrs to fix

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

              getScale: function getScale(start, end) {
                // need two fingers...
                if(start.length >= 2 && end.length >= 2) {
                  return this.getDistance(end[0], end[1]) /
                    this.getDistance(start[0], start[1]);
          Severity: Major
          Found in meetups/meetup06-MobileDev/x-platform/ionic/js/ionic.js and 2 other locations - About 2 hrs to fix
          meetups/meetup06-MobileDev/x-platform/ionic/js/ionic.js on lines 1282..1289
          meetups/meetup06-MobileDev/x-platform/ionic/js/ionic.js on lines 6849..6856

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

          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 3 locations. Consider refactoring.
          Open

              getRotation: function getRotation(start, end) {
                // need two fingers
                if(start.length >= 2 && end.length >= 2) {
                  return this.getAngle(end[1], end[0]) -
                    this.getAngle(start[1], start[0]);
          Severity: Major
          Found in meetups/meetup06-MobileDev/x-platform/ionic/js/ionic.js and 2 other locations - About 2 hrs to fix
          meetups/meetup06-MobileDev/x-platform/ionic/js/ionic.js on lines 1266..1273
          meetups/meetup06-MobileDev/x-platform/ionic/js/ionic.js on lines 6849..6856

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

          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 3 locations. Consider refactoring.
          Open

            __getScale: function getScale(start, end) {
              // need two fingers...
              if (start.length >= 2 && end.length >= 2) {
                return this.__getDistance(end[0], end[1]) /
                  this.__getDistance(start[0], start[1]);
          Severity: Major
          Found in meetups/meetup06-MobileDev/x-platform/ionic/js/ionic.js and 2 other locations - About 2 hrs to fix
          meetups/meetup06-MobileDev/x-platform/ionic/js/ionic.js on lines 1266..1273
          meetups/meetup06-MobileDev/x-platform/ionic/js/ionic.js on lines 1282..1289

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

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

                  function triggerAnimationStart() {
                    // just incase a stagger animation kicks in when the animation
                    // itself was cancelled entirely
                    if (animationClosed) return;
          
          

            Function groupAnimations has 67 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                  function groupAnimations(animations) {
                    var preparedAnimations = [];
                    var refLookup = {};
                    forEach(animations, function(animation, index) {
                      var element = animation.element;

              Function createPopup has 66 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                function createPopup(options) {
                  options = extend({
                    scope: null,
                    title: '',
                    buttons: []
              Severity: Major
              Found in meetups/meetup06-MobileDev/x-platform/ionic/js/ionic-angular.js - About 2 hrs to fix

                Function dragGesture has 66 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    handler: function dragGesture(ev, inst) {
                      if (ev.srcEvent.type == 'touchstart' || ev.srcEvent.type == 'touchend') {
                        this.preventedFirstMove = false;
                
                      } else if (!this.preventedFirstMove && ev.srcEvent.type == 'touchmove') {
                Severity: Major
                Found in meetups/meetup06-MobileDev/x-platform/ionic/js/ionic.js - About 2 hrs to fix

                  Function init has 66 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                          function init() {
                            var listView = listCtrl.listView = new ionic.views.ListView({
                              el: $element[0],
                              listEl: $element.children()[0],
                              scrollEl: scrollCtrl && scrollCtrl.element,
                  Severity: Major
                  Found in meetups/meetup06-MobileDev/x-platform/ionic/js/ionic-angular.js - About 2 hrs to fix

                    Function RevealNotes has 65 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                    var RevealNotes = (function() {
                    
                        function openNotes() {
                            var jsFileLocation = document.querySelector('script[src$="notes.js"]').src;  // this js file path
                            jsFileLocation = jsFileLocation.replace(/notes\.js(\?.*)?$/, '');   // the js folder path
                    Severity: Major
                    Found in meetups/meetup06-MobileDev/x-platform/plugin/notes/notes.js - About 2 hrs to fix

                      Function updateBackground has 65 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          function updateBackground( includeAll ) {
                      
                              var currentBackground = null;
                      
                              // Reverse past/future classes when in RTL mode
                      Severity: Major
                      Found in meetups/meetup06-MobileDev/x-platform/js/reveal.js - About 2 hrs to fix

                        Function doTouchEnd has 65 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                          doTouchEnd: function(e, timeStamp) {
                            if (timeStamp instanceof Date) {
                              timeStamp = timeStamp.valueOf();
                            }
                            if (typeof timeStamp !== "number") {
                        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

                                  features.transforms2d = 'WebkitTransform' in document.body.style ||
                                                          'MozTransform' in document.body.style ||
                                                          'msTransform' in document.body.style ||
                                                          'OTransform' in document.body.style ||
                                                          'transform' in document.body.style;
                          Severity: Major
                          Found in meetups/meetup06-MobileDev/x-platform/js/reveal.js and 1 other location - About 2 hrs to fix
                          meetups/meetup06-MobileDev/x-platform/js/reveal.js on lines 277..281

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

                          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

                                  features.transforms3d = 'WebkitPerspective' in document.body.style ||
                                                          'MozPerspective' in document.body.style ||
                                                          'msPerspective' in document.body.style ||
                                                          'OPerspective' in document.body.style ||
                                                          'perspective' in document.body.style;
                          Severity: Major
                          Found in meetups/meetup06-MobileDev/x-platform/js/reveal.js and 1 other location - About 2 hrs to fix
                          meetups/meetup06-MobileDev/x-platform/js/reveal.js on lines 283..287

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

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

                              $get: ['$q', function($q) {
                                var self = {
                          
                                  /**
                                   * @ngdoc method
                          Severity: Major
                          Found in meetups/meetup06-MobileDev/x-platform/ionic/js/ionic-angular.js - About 2 hrs to fix

                            Function configure has 63 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                function configure( options ) {
                            
                                    var numberOfSlides = dom.wrapper.querySelectorAll( SLIDES_SELECTOR ).length;
                            
                                    dom.wrapper.classList.remove( config.transition );
                            Severity: Major
                            Found in meetups/meetup06-MobileDev/x-platform/js/reveal.js - About 2 hrs to fix

                              Function DelegateService has 62 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                ionic.DelegateService = function(methodNames) {
                              
                                  if (methodNames.indexOf('$getByHandle') > -1) {
                                    throw new Error("Method '$getByHandle' is implicitly added to each delegate service. Do not list it as a method.");
                                  }
                              Severity: Major
                              Found in meetups/meetup06-MobileDev/x-platform/ionic/js/ionic.js - About 2 hrs to fix
                                Severity
                                Category
                                Status
                                Source
                                Language