Jupiterrr/Vorlesungsverzeichnis

View on GitHub

Showing 260 of 474 total issues

Avoid too many return statements within this function.
Open

                                return siblingCheck( ap[i], bp[i] );
Severity: Major
Found in app/assets/components/jquery/jquery.js - About 30 mins to fix

    Avoid too many return statements within this function.
    Open

                                    return this.constructor( context ).find( selector );
    Severity: Major
    Found in app/assets/components/jquery/jquery.js - About 30 mins to fix

      Avoid too many return statements within this function.
      Open

                                              return this;
      Severity: Major
      Found in app/assets/components/jquery/jquery.js - About 30 mins to fix

        Avoid too many return statements within this function.
        Open

                                                        return results;
        Severity: Major
        Found in app/assets/components/jquery/jquery.js - About 30 mins to fix

          Avoid too many return statements within this function.
          Open

                                          return results;
          Severity: Major
          Found in app/assets/components/jquery/jquery.js - About 30 mins to fix

            Avoid too many return statements within this function.
            Open

                                    return rootjQuery.ready( selector );
            Severity: Major
            Found in app/assets/components/jquery/jquery.js - About 30 mins to fix

              Avoid too many return statements within this function.
              Open

                                      return ret;
              Severity: Major
              Found in app/assets/components/jquery/jquery.js - About 30 mins to fix

                Avoid too many return statements within this function.
                Open

                                return i === al ?
                                        siblingCheck( a, bp[i], -1 ) :
                                        siblingCheck( ap[i], b, 1 );
                Severity: Major
                Found in app/assets/components/jquery/jquery.js - About 30 mins to fix

                  Avoid too many return statements within this function.
                  Open

                          return {
                                  top: box.top  + scrollTop  - clientTop,
                                  left: box.left + scrollLeft - clientLeft
                          };
                  Severity: Major
                  Found in app/assets/components/jquery/jquery.js - About 30 mins to fix

                    Avoid too many return statements within this function.
                    Open

                                    return event.result;
                    Severity: Major
                    Found in app/assets/components/jquery/jquery.js - About 30 mins to fix

                      Avoid too many return statements within this function.
                      Open

                                              return 1;
                      Severity: Major
                      Found in app/assets/components/jquery/jquery.js - About 30 mins to fix

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

                        var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();
                        Severity: Minor
                        Found in react_renderer/build/Day.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

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

                        var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();
                        Severity: Minor
                        Found in react_renderer/build/Week.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

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

                        var Layouter = (function () {
                            function Layouter(options) {
                                _classCallCheck(this, Layouter);
                        
                                this.startHour = options.startHour;
                        Severity: Minor
                        Found in react_renderer/build/layoutday.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

                        Method human_term_name has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                        Open

                          def human_term_name(name, type=:normal)
                            period, year = split_term(name)
                        
                            if period == "WS"
                              yi = year.to_i
                        Severity: Minor
                        Found in app/helpers/vvzs_helper.rb - 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

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

                        var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();
                        Severity: Minor
                        Found in react_renderer/build/kithub.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

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

                        var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();
                        Severity: Minor
                        Found in react_renderer/build/App.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

                        Method improve_name has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                        Open

                            def improve_name(event)
                              matcher = GenericMatcher.new(event.original_name)
                              if matcher.match?
                                if link = find_event(matcher.event_no, event)
                                  event.update_attributes(name: matcher.fix_name(link.name))
                        Severity: Minor
                        Found in lib/vvz_updater/vvz_updater/data_enhancement.rb - 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

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

                        function debounce(func, wait, immediate) {
                          var timeout, args, context, timestamp, result;
                        
                          function now() { new Date().getTime(); }
                        
                        
                        Severity: Minor
                        Found in app/assets/components/column-view/all.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

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

                        var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();
                        Severity: Minor
                        Found in react_renderer/build/layoutday.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