Jupiterrr/Vorlesungsverzeichnis

View on GitHub

Showing 474 of 474 total issues

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

  $.fn.dropdown = function (option) {
    return this.each(function () {
      var $this = $(this)
        , data = $this.data('dropdown')
      if (!data) $this.data('dropdown', (data = new Dropdown(this)))
Severity: Major
Found in app/assets/javascripts/twitter/bootstrap-dropdown.js and 2 other locations - About 3 hrs to fix
app/assets/components/bootstrap-css/js/bootstrap.js on lines 132..139
app/assets/components/bootstrap-css/js/bootstrap.js on lines 767..774

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

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

  $.fn.alert = function (option) {
    return this.each(function () {
      var $this = $(this)
        , data = $this.data('alert')
      if (!data) $this.data('alert', (data = new Alert(this)))
Severity: Major
Found in app/assets/components/bootstrap-css/js/bootstrap.js and 2 other locations - About 3 hrs to fix
app/assets/components/bootstrap-css/js/bootstrap.js on lines 767..774
app/assets/javascripts/twitter/bootstrap-dropdown.js on lines 129..136

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

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

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

                , toggle: function (e) {
                    var $this = $(this)
                      , $parent
                      , isActive
              
              
              Severity: Major
              Found in app/assets/components/bootstrap-css/js/bootstrap.js and 1 other location - About 3 hrs to fix
              app/assets/javascripts/twitter/bootstrap-dropdown.js on lines 40..60

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

              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

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

                , toggle: function (e) {
                    var $this = $(this)
                      , $parent
                      , isActive
              
              
              Severity: Major
              Found in app/assets/javascripts/twitter/bootstrap-dropdown.js and 1 other location - About 3 hrs to fix
              app/assets/components/bootstrap-css/js/bootstrap.js on lines 674..694

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

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

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

                      , next: function (event) {
                          var active = this.$menu.find('.active').removeClass('active')
                            , next = active.next()
                    
                          if (!next.length) {
                    Severity: Major
                    Found in app/assets/components/bootstrap-css/js/bootstrap.js and 1 other location - About 3 hrs to fix
                    app/assets/javascripts/twitter/bootstrap-typeahead.js on lines 168..177

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

                    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

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

                          function removeWithAnimation() {
                            var timeout = setTimeout(function () {
                              $tip.off($.support.transition.end).detach()
                            }, 500)
                    
                    
                    Severity: Major
                    Found in app/assets/components/bootstrap-css/js/bootstrap.js and 1 other location - About 3 hrs to fix
                    app/assets/javascripts/twitter/bootstrap-tooltip.js on lines 167..176

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

                    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

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

                      , next: function (event) {
                          var active = this.$menu.find('.active').removeClass('active')
                            , next = active.next()
                    
                          if (!next.length) {
                    Severity: Major
                    Found in app/assets/javascripts/twitter/bootstrap-typeahead.js and 1 other location - About 3 hrs to fix
                    app/assets/components/bootstrap-css/js/bootstrap.js on lines 1975..1984

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

                    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

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

                          function removeWithAnimation() {
                            var timeout = setTimeout(function () {
                              $tip.off($.support.transition.end).detach()
                            }, 500)
                    
                    
                    Severity: Major
                    Found in app/assets/javascripts/twitter/bootstrap-tooltip.js and 1 other location - About 3 hrs to fix
                    app/assets/components/bootstrap-css/js/bootstrap.js on lines 1278..1287

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

                    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

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

                      , prev: function (event) {
                          var active = this.$menu.find('.active').removeClass('active')
                            , prev = active.prev()
                    
                          if (!prev.length) {
                    Severity: Major
                    Found in app/assets/javascripts/twitter/bootstrap-typeahead.js and 1 other location - About 3 hrs to fix
                    app/assets/components/bootstrap-css/js/bootstrap.js on lines 1986..1995

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

                    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

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

                      , prev: function (event) {
                          var active = this.$menu.find('.active').removeClass('active')
                            , prev = active.prev()
                    
                          if (!prev.length) {
                    Severity: Major
                    Found in app/assets/components/bootstrap-css/js/bootstrap.js and 1 other location - About 3 hrs to fix
                    app/assets/javascripts/twitter/bootstrap-typeahead.js on lines 179..188

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

                    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 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
                      Severity
                      Category
                      Status
                      Source
                      Language