Showing 222 of 222 total issues
Class User
has 54 methods (exceeds 20 allowed). Consider refactoring. Open
class User
prepend UserOverrides
include UserLeibverhaeltnisse
include UserNetenvData
Class Group
has 52 methods (exceeds 20 allowed). Consider refactoring. Open
class Group
include GroupNameConstants
# See also: `important_offiers`
def important_officers_keys
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',
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.
File foundation.orbit.js
has 410 lines of code (exceeds 250 allowed). Consider refactoring. Open
;(function ($, window, document, undefined) {
'use strict';
var noop = function () {};
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',
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',
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',
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)
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)
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
File user.rb
has 343 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.
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)
- Read upRead up
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 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',
Method import
has a Cognitive Complexity of 26 (exceeds 5 allowed). Consider refactoring. Open
def import
log.head "External Corporations Import"
log.section "Import Parameters"
log.info "Import file: #{@filename}"
- Read upRead up
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 events
has 87 lines of code (exceeds 25 allowed). Consider refactoring. Open
events : function (scope) {
var self = this,
S = self.S;
S(this.scope)
Function events
has 87 lines of code (exceeds 25 allowed). Consider refactoring. Open
events : function (scope) {
var self = this,
S = self.S;
S(this.scope)
Method import
has a Cognitive Complexity of 24 (exceeds 5 allowed). Consider refactoring. Open
def import
log.head "Wingolfsplattform User Import"
log.section "Import Parameters"
log.info "Import file: #{@filename}"
- Read upRead up
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 check_validation_and_apply_styles
has 85 lines of code (exceeds 25 allowed). Consider refactoring. Open
check_validation_and_apply_styles : function (el_patterns) {
var i = el_patterns.length,
validations = [],
form = this.S(el_patterns[0][0]).closest('[data-' + this.attr_name(true) + ']'),
settings = form.data(this.attr_name(true) + '-init') || {};
Function check_validation_and_apply_styles
has 85 lines of code (exceeds 25 allowed). Consider refactoring. Open
check_validation_and_apply_styles : function (el_patterns) {
var i = el_patterns.length,
validations = [],
form = this.S(el_patterns[0][0]).closest('[data-' + this.attr_name(true) + ']'),
settings = form.data(this.attr_name(true) + '-init') || {};