Showing 64 of 163 total issues
File foundation.joyride.js
has 690 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
;(function ($, window, document, undefined) {
'use strict';
var Modernizr = Modernizr || false;
Function Orbit
has 250 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;
}
File foundation.clearing.js
has 433 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
;(function ($, window, document, undefined) {
'use strict';
Foundation.libs.clearing = {
name : 'clearing',
File foundation.orbit.js
has 403 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
;(function ($, window, document, undefined) {
'use strict';
var noop = function() {};
Function UGTheme_tiles
has 132 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function UGTheme_tiles(){
var t = this;
var g_gallery = new UniteGalleryMain(), g_objGallery, g_objects, g_objWrapper;
var g_tiles = new UGTiles(), g_lightbox = new UGLightbox(), g_objPreloader, g_objTilesWrapper;
Function UGTheme_tiles
has 132 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function UGTheme_tiles(){
var t = this;
var g_gallery = new UniteGalleryMain(), g_objGallery, g_objects, g_objWrapper;
var g_tiles = new UGTiles(), g_lightbox = new UGLightbox(), g_objPreloader, g_objTilesWrapper;
File foundation.js
has 376 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 formatters.py
has 348 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import sys
import os
import cStringIO
import django
from django.db.models.loading import get_models
File foundation.reveal.js
has 343 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 341 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
;(function ($, window, document, undefined) {
'use strict';
Foundation.libs.topbar = {
name : 'topbar',
Function events
has 97 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
events : function (bar) {
var self = this,
S = this.S;
S(this.scope)
Function show
has 68 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
Function init
has 67 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 events
has 67 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
events : function (scope) {
var self = this,
S = self.S;
S(this.scope)
Function UGTheme_tiles
has a Cognitive Complexity of 18 (exceeds 5 allowed). Consider refactoring. Open
Open
function UGTheme_tiles(){
var t = this;
var g_gallery = new UniteGalleryMain(), g_objGallery, g_objects, g_objWrapper;
var g_tiles = new UGTiles(), g_lightbox = new UGLightbox(), g_objPreloader, g_objTilesWrapper;
- 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 UGTheme_tiles
has a Cognitive Complexity of 18 (exceeds 5 allowed). Consider refactoring. Open
Open
function UGTheme_tiles(){
var t = this;
var g_gallery = new UniteGalleryMain(), g_objGallery, g_objects, g_objWrapper;
var g_tiles = new UGTiles(), g_lightbox = new UGLightbox(), g_objPreloader, g_objTilesWrapper;
- 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 open
has 57 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
open : function (target, ajax_settings) {
var self = this,
modal;
if (target) {
Function toggle
has 56 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
toggle: function (toggleEl) {
var self = this,
topbar;
if (toggleEl) {
Function events
has 53 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
events : function (scope) {
var self = this,
S = self.S;
S(this.scope)