Showing 2,136 of 3,976 total issues
Function open
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
open: function( dontGiveFocus ) {
// If it’s already open, do nothing.
if ( STATE.open ) return P
Function open
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
open: function( dontGiveFocus ) {
// If it’s already open, do nothing.
if ( STATE.open ) return P
Function _slide
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var _slide = function(params, complete, fade, door) {
var easing = this.getOptions('easing'),
distance = this.getStageWidth(),
from = { left: distance * ( params.rewind ? -1 : 1 ) },
Function open
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
open: function( dontGiveFocus ) {
// If it’s already open, do nothing.
if ( STATE.open ) return P
Function testOptions
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function testOptions ( options ) {
var parsed = {
margin: 0,
limit: 0,
Function ExceptionFormatter
has a Cognitive Complexity of 14 (exceeds 5 allowed). Consider refactoring. Open
Open
getJasmineRequireObj().ExceptionFormatter = function() {
function ExceptionFormatter() {
this.message = function(error) {
var message = '';
- 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 MockDate
has a Cognitive Complexity of 14 (exceeds 5 allowed). Consider refactoring. Open
Open
getJasmineRequireObj().MockDate = function() {
function MockDate(global) {
var self = this;
var currentTime = 0;
- 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 showHide
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function showHide( elements, show ) {
var display, elem, hidden,
values = [],
index = 0,
length = elements.length;
Function position
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
position: function() {
var options = this.options;
var origin = this.el.offsetParent().offset();
var width = this.el.outerWidth();
var height = this.el.outerHeight();
Function lineToken
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Lexer.prototype.lineToken = function() {
var diff, indent, match, noNewlines, size;
if (!(match = MULTI_DENT.exec(this.chunk))) {
return 0;
}
Function spyOn
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
this.spyOn = function(obj, methodName) {
if (j$.util.isUndefined(obj)) {
throw new Error(getErrorMsg('could not find an object to spy upon for ' + methodName + '()'));
}
Function computeStyleTests
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function computeStyleTests() {
var contents, divStyle,
documentElement = document.documentElement;
// Setup
Function wrapCompare
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Expectation.prototype.wrapCompare = function(name, matcherFactory) {
return function() {
var args = Array.prototype.slice.call(arguments, 0),
expected = args.slice(0),
message = '';
Function defaults
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
DatePicker.defaults = (function( prefix ) {
return {
// The title label to use for the month nav buttons
Function parallax
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.fn.parallax = function () {
var window_width = $(window).width();
// Parallax Scripts
return this.each(function(i) {
var $this = $(this);
Function name
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.fn[ name ] = function( options ) {
var isMethodCall = typeof options === "string",
args = widget_slice.call( arguments, 1 ),
returnValue = this;
Function name
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.fn[ name ] = function( options ) {
var isMethodCall = typeof options === "string",
args = widget_slice.call( arguments, 1 ),
returnValue = this;
Function name
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.fn[ name ] = function( options ) {
var isMethodCall = typeof options === "string",
args = widget_slice.call( arguments, 1 ),
returnValue = this;
Function name
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.fn[ name ] = function( options ) {
var isMethodCall = typeof options === "string",
args = widget_slice.call( arguments, 1 ),
returnValue = this;
Function name
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.fn[ name ] = function( options ) {
var isMethodCall = typeof options === "string",
args = widget_slice.call( arguments, 1 ),
returnValue = this;