devstaff-crete/DevStaff-Heraklion

View on GitHub

Showing 295 of 1,643 total issues

Avoid too many return statements within this function.
Open

        return null;
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;

      Avoid too many return statements within this function.
      Open

            return {
              $$willAnimate: true,
              end: endFn,
              start: function() {
                if (animationClosed) return;

        Avoid too many return statements within this function.
        Open

                      return runner;

          Avoid too many return statements within this function.
          Open

                  return runner;

            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 existingAnimation.runner;

                Avoid too many return statements within this function.
                Open

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

                  Avoid too many return statements within this function.
                  Open

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

                    Avoid too many return statements within this function.
                    Open

                          return currentHistoryId ? currentHistoryId == 'root' : true;
                    Severity: Major
                    Found in meetups/meetup06-MobileDev/x-platform/ionic/js/ionic-angular.js - About 30 mins to fix

                      Avoid too many return statements within this function.
                      Open

                            return transition;

                        Avoid too many return statements within this function.
                        Open

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

                          Avoid too many return statements within this function.
                          Open

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

                            Avoid too many return statements within this function.
                            Open

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

                              Function RevealMath has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                              Open

                              var RevealMath = window.RevealMath || (function(){
                              
                                  var options = Reveal.getConfig().math || {};
                                  options.mathjax = options.mathjax || 'http://cdn.mathjax.org/mathjax/latest/MathJax.js';
                                  options.config = options.config || 'TeX-AMS_HTML-full';
                              Severity: Minor
                              Found in meetups/meetup06-MobileDev/x-platform/plugin/math/math.js - About 25 mins to fix

                              Cognitive Complexity

                              Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                              A method's cognitive complexity is based on a few simple rules:

                              • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                              • Code is considered more complex for each "break in the linear flow of the code"
                              • Code is considered more complex when "flow breaking structures are nested"

                              Further reading

                              Severity
                              Category
                              Status
                              Source
                              Language