Showing 222 of 222 total issues
Function un_expose
has 48 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
un_expose : function () {
var exposeId,
el,
expose,
origCSS,
Function events
has 48 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
events : function () {
var self = this;
$(this.scope)
.off('.slider')
Function un_expose
has 48 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
un_expose : function () {
var exposeId,
el,
expose,
origCSS,
Function events
has 48 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
events : function () {
var self = this;
$(this.scope)
.off('.slider')
Method create_template_profile_fields_where_non_existant
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def create_template_profile_fields_where_non_existant
if self.profile_fields.where(label: :personal_title).count == 0
self.profile_fields.create(label: :personal_title, type: "ProfileFieldTypes::General")
end
Function data_options
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
data_options : function (el, data_attr_name) {
data_attr_name = data_attr_name || 'options';
var opts = {}, ii, p, opts_arr,
data_options = function (el) {
var namespace = Foundation.global.namespace;
Function data_options
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
data_options : function (el, data_attr_name) {
data_attr_name = data_attr_name || 'options';
var opts = {}, ii, p, opts_arr,
data_options = function (el) {
var namespace = Foundation.global.namespace;
Function swipe_events
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
swipe_events : function (scope) {
var self = this,
S = self.S;
S(this.scope)
Function swipe_events
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
swipe_events : function (scope) {
var self = this,
S = self.S;
S(this.scope)
Function Timer
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var Timer = function (el, settings, callback) {
var self = this,
duration = settings.timer_speed,
progress = el.find('.' + settings.timer_progress_class),
start,
Function Timer
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var Timer = function (el, settings, callback) {
var self = this,
duration = settings.timer_speed,
progress = el.find('.' + settings.timer_progress_class),
start,
Method import
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def import
log.head "Wingolfsplattform User Import"
log.section "Import Parameters"
log.info "Import file: #{@filename}"
Function hide
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
hide : function (el, css) {
// is modal
if (css) {
var settings = el.data(this.attr_name(true) + '-init'),
context = this;
Function events
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
events : function (instance) {
var self = this;
var S = this.S;
self.create(this.S(instance));
Function events
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
events : function (scope) {
var self = this,
S = self.S,
$scroll_container = $('.scroll-container');
Function events
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
events : function (scope) {
var self = this,
S = self.S,
$scroll_container = $('.scroll-container');
Function hide
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
hide : function (el, css) {
// is modal
if (css) {
var settings = el.data(this.attr_name(true) + '-init'),
context = this;
Function events
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
events : function (instance) {
var self = this;
var S = this.S;
self.create(this.S(instance));
Method create_template_profile_fields_where_non_existant
has a Cognitive Complexity of 13 (exceeds 5 allowed). Consider refactoring. Open
Open
def create_template_profile_fields_where_non_existant
if self.profile_fields.where(label: :personal_title).count == 0
self.profile_fields.create(label: :personal_title, type: "ProfileFieldTypes::General")
end
- 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 equalize
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
equalize : function (equalizer) {
var isStacked = false,
group = equalizer.data('equalizer'),
settings = equalizer.data(this.attr_name(true)+'-init') || this.settings,
vals,