fiedl/wingolfsplattform

View on GitHub

Showing 180 of 222 total issues

File foundation.min.js has 4966 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/*
 * Foundation Responsive Library
 * http://foundation.zurb.com
 * Copyright 2014, ZURB
 * Free to use under the MIT license.
Severity: Major
Found in public/commander/foundation-5/js/foundation.min.js - About 2 wks to fix

    Class NetenvUser has 145 methods (exceeds 20 allowed). Consider refactoring.
    Open

    class NetenvUser
    
      # Rohdaten
      # =======================================================================
    
    
    Severity: Major
    Found in lib/importers/models/netenv_user.rb - About 2 days to fix

      File foundation.joyride.js has 732 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      ;(function ($, window, document, undefined) {
        'use strict';
      
        var Modernizr = Modernizr || false;
      
      
      Severity: Major
      Found in public/commander/foundation-5/js/foundation/foundation.joyride.js - About 1 day to fix

        File netenv_user.rb has 602 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        class NetenvUser
        
          # Rohdaten
          # =======================================================================
        
        
        Severity: Major
        Found in lib/importers/models/netenv_user.rb - About 1 day to fix

          Function Orbit has 257 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

            var Orbit = function (el, settings) {
              // Don't reinitialize plugin
              if (el.hasClass(settings.slides_container_class)) {
                return this;
              }
          Severity: Major
          Found in public/commander/foundation-5/js/foundation.min.js - About 1 day to fix

            Function Orbit has 257 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

              var Orbit = function (el, settings) {
                // Don't reinitialize plugin
                if (el.hasClass(settings.slides_container_class)) {
                  return this;
                }
            Severity: Major
            Found in public/commander/foundation-5/js/foundation/foundation.orbit.js - About 1 day to fix

              Class Group has 52 methods (exceeds 20 allowed). Consider refactoring.
              Open

              class Group
                include GroupNameConstants
              
                # See also: `important_offiers`
                def important_officers_keys
              Severity: Major
              Found in app/models/group.rb - About 7 hrs to fix

                Class User has 51 methods (exceeds 20 allowed). Consider refactoring.
                Open

                class User
                  prepend UserOverrides
                  include UserLeibverhaeltnisse
                  include UserNetenvData
                
                
                Severity: Major
                Found in app/models/user.rb - About 7 hrs to fix

                  File foundation.clearing.js has 462 lines of code (exceeds 250 allowed). Consider refactoring.
                  Open

                  ;(function ($, window, document, undefined) {
                    'use strict';
                  
                    Foundation.libs.clearing = {
                      name : 'clearing',
                  Severity: Minor
                  Found in public/commander/foundation-5/js/foundation/foundation.clearing.js - About 7 hrs to fix

                    File foundation.js has 460 lines of code (exceeds 250 allowed). Consider refactoring.
                    Open

                    /*
                     * Foundation Responsive Library
                     * http://foundation.zurb.com
                     * Copyright 2014, ZURB
                     * Free to use under the MIT license.
                    Severity: Minor
                    Found in public/commander/foundation-5/js/foundation/foundation.js - About 7 hrs to fix

                      File foundation.orbit.js has 410 lines of code (exceeds 250 allowed). Consider refactoring.
                      Open

                      ;(function ($, window, document, undefined) {
                        'use strict';
                      
                        var noop = function () {};
                      
                      
                      Severity: Minor
                      Found in public/commander/foundation-5/js/foundation/foundation.orbit.js - About 5 hrs to fix

                        File foundation.reveal.js has 389 lines of code (exceeds 250 allowed). Consider refactoring.
                        Open

                        ;(function ($, window, document, undefined) {
                          'use strict';
                        
                          Foundation.libs.reveal = {
                            name : 'reveal',
                        Severity: Minor
                        Found in public/commander/foundation-5/js/foundation/foundation.reveal.js - About 5 hrs to fix

                          File foundation.topbar.js has 364 lines of code (exceeds 250 allowed). Consider refactoring.
                          Open

                          ;(function ($, window, document, undefined) {
                            'use strict';
                          
                            Foundation.libs.topbar = {
                              name : 'topbar',
                          Severity: Minor
                          Found in public/commander/foundation-5/js/foundation/foundation.topbar.js - About 4 hrs to fix

                            File foundation.dropdown.js has 360 lines of code (exceeds 250 allowed). Consider refactoring.
                            Open

                            ;(function ($, window, document, undefined) {
                              'use strict';
                            
                              Foundation.libs.dropdown = {
                                name : 'dropdown',
                            Severity: Minor
                            Found in public/commander/foundation-5/js/foundation/foundation.dropdown.js - About 4 hrs to fix

                              Function events has 115 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  events : function (bar) {
                                    var self = this,
                                        S = this.S;
                              
                                    S(this.scope)
                              Severity: Major
                              Found in public/commander/foundation-5/js/foundation/foundation.topbar.js - About 4 hrs to fix

                                Function events has 115 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    events : function (bar) {
                                      var self = this,
                                          S = this.S;
                                
                                      S(this.scope)
                                Severity: Major
                                Found in public/commander/foundation-5/js/foundation.min.js - About 4 hrs to fix

                                  File user.rb has 351 lines of code (exceeds 250 allowed). Consider refactoring.
                                  Open

                                  require File.join(Rails.root, 'app/models/user')
                                  require File.join(Rails.root, 'lib/importers/models/group')
                                  
                                  class User
                                    
                                  Severity: Minor
                                  Found in lib/importers/models/user.rb - About 4 hrs to fix

                                    Method import_primary_corporation_from has a Cognitive Complexity of 28 (exceeds 5 allowed). Consider refactoring.
                                    Open

                                      def import_primary_corporation_from( netenv_user )
                                        corporation = netenv_user.primary_corporation
                                        
                                        if netenv_user.ehrenphilister?(corporation)
                                          
                                    Severity: Minor
                                    Found in lib/importers/models/user.rb - About 4 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 user.rb has 331 lines of code (exceeds 250 allowed). Consider refactoring.
                                    Open

                                    require_dependency YourPlatform::Engine.root.join( 'app/models/user' ).to_s
                                    
                                    # This class represents a user of the platform. A user may or may not have an account.
                                    # While the most part of the user class is contained in the your_platform engine,
                                    # this re-opened class contains all wingolf-specific additions to the user model.
                                    Severity: Minor
                                    Found in app/models/user.rb - About 3 hrs to fix

                                      File foundation.abide.js has 325 lines of code (exceeds 250 allowed). Consider refactoring.
                                      Open

                                      ;(function ($, window, document, undefined) {
                                        'use strict';
                                      
                                        Foundation.libs.abide = {
                                          name : 'abide',
                                      Severity: Minor
                                      Found in public/commander/foundation-5/js/foundation/foundation.abide.js - About 3 hrs to fix
                                        Severity
                                        Category
                                        Status
                                        Source
                                        Language