Showing 50 of 103 total issues
File jquery.fancybox-1.3.4.js
has 844 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*
* FancyBox - jQuery Plugin
* Simple and fancy lightbox alternative
*
* Examples and documentation at: http://fancybox.net
File simple_modal.js
has 582 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*
* SimpleModal @VERSION - jQuery Plugin
* http://simplemodal.com/
* Copyright (c) 2013 Eric Martin
* Licensed under MIT and GPL
File jquery-ui-timepicker-addon.js
has 570 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*
* jQuery timepicker addon
* By: Trent Richardson [http://trentrichardson.com]
* Version 0.9
* Last Modified: 11/29/2010
File phd.js
has 504 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
const PHASE_ONE_ID = 1;
const PHASE_TWO_ID = 2;
var TIME_LIMIT_IN_MINUTES = 7;
var INTERVAL_IN_SECONDS_OF_HOW_OFTEN_TO_SHOW_OTHER_STUDENT_ACTIONS = 60; // one minute
var TIMEOUT_FOR_OTHER_PARTICIPANTS = 15 * 1000;
Function _injectTimePicker
has 184 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_injectTimePicker: function() {
var $dp = this.inst.dpDiv,
o = this._defaults,
tp_inst = this,
// Added by Peter Medeiros:
Function _start
has 160 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_start = function() {
var obj = selectedArray[ selectedIndex ],
href,
type,
title,
Function fixIE
has 140 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
fixIE: function() {
var s = this,
p = s.o.position;
// simulate fixed position - adapted from BlockUI
Function _show
has 106 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_show = function() {
var pos, equal;
loading.hide();
Function diffString
has a Cognitive Complexity of 27 (exceeds 5 allowed). Consider refactoring. Open
Open
function diffString(o, n) {
o = o.replace(/\s+$/, "");
n = n.replace(/\s+$/, "");
var out = diff(
- 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 generate_box
has 88 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function generate_box(span) {
var is_quota = span.className.match(/quota/i) != null
? true
: false;
if (is_quota && window.__show_quota_items) {
Function create
has 70 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
create: function(data) {
var s = this;
// get the window properties
s.getDimensions();
Function setContainerDimensions
has 65 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
setContainerDimensions: function() {
var s = this,
badIE = browser.ie6 || browser.ie7;
// get the dimensions for the container and data
Function _process_title
has 57 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_process_title = function() {
titleStr = currentOpts.title || '';
titleHeight = 0;
title
Method analyze
has 55 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def analyze
{
id: id,
group: group,
data_id: participant_id,
Function close
has 53 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.fancybox.close = function() {
if (busy || wrap.is(':hidden')) {
return;
}
Function diffString2
has 49 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function diffString2(o, n) {
o = o.replace(/\s+$/, "");
n = n.replace(/\s+$/, "");
var out = diff(
Function diff
has a Cognitive Complexity of 15 (exceeds 5 allowed). Consider refactoring. Open
Open
function diff(o, n) {
var ns = new Object();
var os = new Object();
for (var i = 0; i < n.length; i++) {
- 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 init
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.fancybox.init = function() {
if ($("#fancybox-wrap").length) {
return;
}
Function diffString
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function diffString(o, n) {
o = o.replace(/\s+$/, "");
n = n.replace(/\s+$/, "");
var out = diff(
Function diff
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function diff(o, n) {
var ns = new Object();
var os = new Object();
for (var i = 0; i < n.length; i++) {