Showing 180 of 222 total issues
File foundation.min.js
has 4966 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*
* Foundation Responsive Library
* http://foundation.zurb.com
* Copyright 2014, ZURB
* Free to use under the MIT license.
Class NetenvUser
has 145 methods (exceeds 20 allowed). Consider refactoring. Open
Open
class NetenvUser
# Rohdaten
# =======================================================================
File foundation.joyride.js
has 732 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
;(function ($, window, document, undefined) {
'use strict';
var Modernizr = Modernizr || false;
File netenv_user.rb
has 602 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
class NetenvUser
# Rohdaten
# =======================================================================
Function Orbit
has 257 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var Orbit = function (el, settings) {
// Don't reinitialize plugin
if (el.hasClass(settings.slides_container_class)) {
return this;
}
Function Orbit
has 257 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var Orbit = function (el, settings) {
// Don't reinitialize plugin
if (el.hasClass(settings.slides_container_class)) {
return this;
}
Class User
has 54 methods (exceeds 20 allowed). Consider refactoring. Open
Open
class User
prepend UserOverrides
include UserLeibverhaeltnisse
include UserNetenvData
Class Group
has 52 methods (exceeds 20 allowed). Consider refactoring. Open
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
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
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
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
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
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
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
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
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
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
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
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
Open
;(function ($, window, document, undefined) {
'use strict';
Foundation.libs.abide = {
name : 'abide',