Jupiterrr/Vorlesungsverzeichnis

View on GitHub

Showing 260 of 474 total issues

Function CustomSelect has 136 lines of code (exceeds 25 allowed). Consider refactoring.
Open

ColumnView.prototype.CustomSelect = (function() {
  "use strict";

  var indexOf = Array.prototype.indexOf;

Severity: Major
Found in app/assets/components/column-view/all.js - About 5 hrs to fix

    Function toMarkdown has a Cognitive Complexity of 35 (exceeds 5 allowed). Consider refactoring.
    Open

    var toMarkdown = function(string) {
      
      var ELEMENTS = [
        {
          patterns: 'p',
    Severity: Minor
    Found in app/assets/components/bootstrap-markdown/js/to-markdown.js - About 5 hrs 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

    File infobox.js has 384 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    $(function(){
    
    // http://google-maps-utility-library-v3.googlecode.com/svn/trunk/infobox/docs/reference.html
    /**
     * @name InfoBox
    Severity: Minor
    Found in app/assets/javascripts/map/infobox.js - About 5 hrs to fix

      Function Callbacks has 127 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      jQuery.Callbacks = function( options ) {
      
              // Convert options from String-formatted to Object-formatted if needed
              // (we check in cache first)
              options = typeof options === "string" ?
      Severity: Major
      Found in app/assets/components/jquery/jquery.js - About 5 hrs to fix

        Consider simplifying this complex logical expression.
        Open

                                if ( event.pageX == null && original.clientX != null ) {
                                        eventDoc = event.target.ownerDocument || document;
                                        doc = eventDoc.documentElement;
                                        body = eventDoc.body;
        
        
        Severity: Critical
        Found in app/assets/components/jquery/jquery.js - About 5 hrs to fix

          Function convert_tree_to_html has 102 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          function convert_tree_to_html( tree, references, options ) {
            var i;
            options = options || {};
          
            // shallow clone
          Severity: Major
          Found in app/assets/components/bootstrap-markdown/js/markdown.js - About 4 hrs to fix

            Function parse has 101 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            parse: function parse(input) {
                var self = this, stack = [0], vstack = [null], lstack = [], table = this.table, yytext = "", yylineno = 0, yyleng = 0, recovering = 0, TERROR = 2, EOF = 1;
                this.lexer.setInput(input);
                this.lexer.yy = this.yy;
                this.yy.lexer = this.lexer;
            Severity: Major
            Found in public/api/lib/handlebars-1.0.rc.1.js - About 4 hrs to fix

              Function CustomSelect has a Cognitive Complexity of 27 (exceeds 5 allowed). Consider refactoring.
              Open

              ColumnView.prototype.CustomSelect = (function() {
                "use strict";
              
                var indexOf = Array.prototype.indexOf;
              
              
              Severity: Minor
              Found in app/assets/components/column-view/all.js - About 3 hrs 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 defaultPrefilter has 95 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              function defaultPrefilter( elem, props, opts ) {
                      var index, prop, value, length, dataShow, toggle, tween, hooks, oldfire,
                              anim = this,
                              style = elem.style,
                              orig = {},
              Severity: Major
              Found in app/assets/components/jquery/jquery.js - About 3 hrs to fix

                Function submitOperation has 94 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    OperationView.prototype.submitOperation = function(e) {
                      var bodyParam, error_free, form, headerParams, invocationUrl, isFileUpload, map, o, obj, param, paramContentTypeField, responseContentTypeField, _i, _j, _k, _len, _len1, _len2, _ref, _ref1, _ref2,
                        _this = this;
                      if (e != null) {
                        e.preventDefault();
                Severity: Major
                Found in public/api/swagger-ui.js - About 3 hrs to fix

                  Function trigger has 93 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                          trigger: function( event, data, elem, onlyHandlers ) {
                                  // Don't do events on text and comment nodes
                                  if ( elem && (elem.nodeType === 3 || elem.nodeType === 8) ) {
                                          return;
                                  }
                  Severity: Major
                  Found in app/assets/components/jquery/jquery.js - About 3 hrs to fix

                    Function send has 90 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                                                    send: function( headers, complete ) {
                    
                                                            // Get a new xhr
                                                            var handle, i,
                                                                    xhr = s.xhr();
                    Severity: Major
                    Found in app/assets/components/jquery/jquery.js - About 3 hrs to fix

                      Function Layouter has 90 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                      var Layouter = (function () {
                          function Layouter(options) {
                              _classCallCheck(this, Layouter);
                      
                              this.startHour = options.startHour;
                      Severity: Major
                      Found in react_renderer/build/layoutday.js - About 3 hrs to fix

                        Function anonymous has 89 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                        performAction: function anonymous(yytext,yyleng,yylineno,yy,yystate,$$,_$) {
                        
                        var $0 = $$.length - 1;
                        switch (yystate) {
                        case 1: return $$[$0-1]; 
                        Severity: Major
                        Found in public/api/lib/handlebars-1.0.rc.1.js - About 3 hrs to fix

                          Function showEditor has 88 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                            , showEditor: function() {
                                var instance = this,
                                    textarea,
                                    ns = this.$ns,
                                    container = this.$element,
                          Severity: Major
                          Found in app/assets/components/bootstrap-markdown/js/bootstrap-markdown.js - About 3 hrs to fix

                            Function clean has 86 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                    clean: function( elems, context, fragment, scripts ) {
                                            var i, j, elem, tag, wrap, depth, div, hasBody, tbody, len, handleScript, jsTags,
                                                    safe = context === document && safeFragment,
                                                    ret = [];
                            
                            
                            Severity: Major
                            Found in app/assets/components/jquery/jquery.js - About 3 hrs to fix

                              Class Event has 28 methods (exceeds 20 allowed). Consider refactoring.
                              Open

                              class Event < ActiveRecord::Base
                                include PgSearch
                                include ActionView::Helpers::TextHelper
                                include ActionView::Helpers::UrlHelper
                              
                              
                              Severity: Minor
                              Found in app/models/event.rb - About 3 hrs to fix

                                Function Animation has 77 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                function Animation( elem, properties, options ) {
                                        var result,
                                                index = 0,
                                                tweenerIndex = 0,
                                                length = animationPrefilters.length,
                                Severity: Major
                                Found in app/assets/components/jquery/jquery.js - About 3 hrs to fix

                                  Function _renderCalendar has 75 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                        _renderCalendar : function() {
                                  
                                           var $calendarContainer, calendarNavHtml, calendarHeaderHtml, calendarBodyHtml, $weekDayColumns;
                                           var self = this;
                                           var options = this.options;
                                  Severity: Major
                                  Found in lib/assets/weekcalendar/jquery.weekcalendar.js - About 3 hrs to fix

                                    Function SwaggerOperation has 73 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        function SwaggerOperation(nickname, path, httpMethod, parameters, summary, notes, responseClass, errorResponses, resource, supportedContentTypes) {
                                          var parameter, v, _i, _j, _len, _len1, _ref, _ref1, _ref2,
                                            _this = this;
                                          this.nickname = nickname;
                                          this.path = path;
                                    Severity: Major
                                    Found in public/api/lib/swagger.js - About 2 hrs to fix
                                      Severity
                                      Category
                                      Status
                                      Source
                                      Language