Showing 222 of 222 total issues
Function open
has 82 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
open : function (target, ajax_settings) {
var self = this,
modal;
if (target) {
Function open
has 82 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
open : function (target, ajax_settings) {
var self = this,
modal;
if (target) {
Method import_secondary_corporations_from
has a Cognitive Complexity of 23 (exceeds 5 allowed). Consider refactoring. Open
Open
def import_secondary_corporations_from( netenv_user )
last_date_of_joining = netenv_user.aktivmeldungsdatum
netenv_user.secondary_corporations.each do |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
Method rights_for_local_admins
has 81 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def rights_for_local_admins
can :index, PublicActivity::Activity
can :index, Issue
if not read_only_mode?
Function events
has 78 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
events : function (instance) {
var self = this,
S = self.S;
self.create(this.S(instance));
Function events
has 78 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
events : function () {
var self = this,
S = self.S,
move_class = '',
right_postfix = '',
Function events
has 78 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
events : function (instance) {
var self = this,
S = self.S;
self.create(this.S(instance));
Function events
has 78 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
events : function () {
var self = this,
S = self.S,
move_class = '',
right_postfix = '',
Function toggle_active_tab
has 77 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
toggle_active_tab : function (tab, location_hash) {
var self = this,
S = self.S,
tabs = tab.closest('[' + this.attr_name() + ']'),
tab_link = tab.find('a'),
Function toggle_active_tab
has 77 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
toggle_active_tab : function (tab, location_hash) {
var self = this,
S = self.S,
tabs = tab.closest('[' + this.attr_name() + ']'),
tab_link = tab.find('a'),
Function show
has 73 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
show : function (init, is_prev) {
var $timer = null;
// are we paused?
if (this.settings.$li === undefined || ($.inArray(this.settings.$li.index(), this.settings.pause_after) === -1)) {
Function show
has 73 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
show : function (init, is_prev) {
var $timer = null;
// are we paused?
if (this.settings.$li === undefined || ($.inArray(this.settings.$li.index(), this.settings.pause_after) === -1)) {
Function init
has 72 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
self.init = function () {
self.build_markup();
if (settings.timer) {
timer = self.create_timer();
Foundation.utils.image_loaded(this.slides().children('img'), timer.start);
Function init
has 72 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
self.init = function () {
self.build_markup();
if (settings.timer) {
timer = self.create_timer();
Foundation.utils.image_loaded(this.slides().children('img'), timer.start);
Class User
has 25 methods (exceeds 20 allowed). Consider refactoring. Open
Open
class User
# Allgemeine Attribute
# =======================================================================
File foundation.tooltip.js
has 278 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
;(function ($, window, document, undefined) {
'use strict';
Foundation.libs.tooltip = {
name : 'tooltip',
Method import_exit_events_from
has a Cognitive Complexity of 18 (exceeds 5 allowed). Consider refactoring. Open
Open
def import_exit_events_from( netenv_user )
netenv_user.former_corporations.each do |corporation|
reason = netenv_user.reason_for_exit(corporation) || "ausgetreten"
date = netenv_user.date_of_exit(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
Function pos_default
has 60 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
pos_default : function (init) {
var $nub = this.settings.$next_tip.find('.joyride-nub'),
nub_width = Math.ceil($nub.outerWidth() / 2),
nub_height = Math.ceil($nub.outerHeight() / 2),
toggle = init || false;
Function pos_default
has 60 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
pos_default : function (init) {
var $nub = this.settings.$next_tip.find('.joyride-nub'),
nub_width = Math.ceil($nub.outerWidth() / 2),
nub_height = Math.ceil($nub.outerHeight() / 2),
toggle = init || false;
File foundation.interchange.js
has 265 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
;(function ($, window, document, undefined) {
'use strict';
Foundation.libs.interchange = {
name : 'interchange',