Showing 180 of 222 total issues
Function reposition
has 52 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
reposition : function (target, tip, classes) {
var width, nub, nubHeight, nubWidth, column, objPos;
tip.css('visibility', 'hidden').show();
Function events
has 52 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
events : function (scope) {
var self = this,
form = self.S(scope).attr('novalidate', 'novalidate'),
settings = form.data(this.attr_name(true) + '-init') || {};
Function events
has 52 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
events : function () {
var self = this;
$(this.scope)
.off('.joyride')
Function _goto
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
self._goto = function (next_idx, start_timer) {
// if (locked) {return false;}
if (next_idx === idx) {return false;}
if (typeof timer === 'object') {timer.restart();}
var slides = self.slides();
Function _goto
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
self._goto = function (next_idx, start_timer) {
// if (locked) {return false;}
if (next_idx === idx) {return false;}
if (typeof timer === 'object') {timer.restart();}
var slides = self.slides();
Consider simplifying this complex logical expression. Open
Open
if not read_only_mode?
can :update, Group do |group|
group.admins_of_self_and_ancestors.include?(user)
end
can :update, Corporation do |group|
Function un_expose
has 48 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
un_expose : function () {
var exposeId,
el,
expose,
origCSS,
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 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 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 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;