Showing 419 of 859 total issues
File jquery-ui-custom-1.10.3.js
has 9969 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*! jQuery UI - v1.10.3 - 2013-05-22
* http://jqueryui.com
* Includes: jquery.ui.core.js, jquery.ui.widget.js, jquery.ui.mouse.js, jquery.ui.position.js, jquery.ui.draggable.js, jquery.ui.droppable.js, jquery.ui.resizable.js, jquery.ui.selectable.js, jquery.ui.sortable.js, jquery.ui.accordion.js, jquery.ui.autocomplete.js, jquery.ui.button.js, jquery.ui.datepicker.js, jquery.ui.dialog.js, jquery.ui.menu.js, jquery.ui.progressbar.js, jquery.ui.slider.js, jquery.ui.spinner.js, jquery.ui.tabs.js, jquery.ui.tooltip.js
* Copyright 2013 jQuery Foundation and other contributors Licensed MIT */
File handlebars-1.0.0.js
has 1714 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*
Copyright (C) 2011 by Yehuda Katz
Permission is hereby granted, free of charge, to any person obtaining a copy
File moment.js
has 1041 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
// moment.js
// version : 2.0.0
// author : Tim Wood
// license : MIT
// momentjs.com
Function handlebars
has 459 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var handlebars = (function(){
var parser = {trace: function trace() { },
yy: {},
symbols_: {"error":2,"root":3,"program":4,"EOF":5,"simpleInverse":6,"statements":7,"statement":8,"openInverse":9,"closeBlock":10,"openBlock":11,"mustache":12,"partial":13,"CONTENT":14,"COMMENT":15,"OPEN_BLOCK":16,"inMustache":17,"CLOSE":18,"OPEN_INVERSE":19,"OPEN_ENDBLOCK":20,"path":21,"OPEN":22,"OPEN_UNESCAPED":23,"CLOSE_UNESCAPED":24,"OPEN_PARTIAL":25,"partialName":26,"params":27,"hash":28,"dataName":29,"param":30,"STRING":31,"INTEGER":32,"BOOLEAN":33,"hashSegments":34,"hashSegment":35,"ID":36,"EQUALS":37,"DATA":38,"pathSegments":39,"SEP":40,"$accept":0,"$end":1},
terminals_: {2:"error",5:"EOF",14:"CONTENT",15:"COMMENT",16:"OPEN_BLOCK",18:"CLOSE",19:"OPEN_INVERSE",20:"OPEN_ENDBLOCK",22:"OPEN",23:"OPEN_UNESCAPED",24:"CLOSE_UNESCAPED",25:"OPEN_PARTIAL",31:"STRING",32:"INTEGER",33:"BOOLEAN",36:"ID",37:"EQUALS",38:"DATA",40:"SEP"},
File backbone-1.0.0.js
has 929 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
// Backbone.js 1.0.0
// (c) 2010-2013 Jeremy Ashkenas, DocumentCloud Inc.
// Backbone may be freely distributed under the MIT license.
// For all details and documentation:
File underscore-1.4.4.js
has 848 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
// Underscore.js 1.4.4
// ===================
// > http://underscorejs.org
// > (c) 2009-2013 Jeremy Ashkenas, DocumentCloud Inc.
Function lexer
has 235 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var lexer = (function(){
var lexer = ({EOF:1,
parseError:function parseError(str, hash) {
if (this.yy.parser) {
this.yy.parser.parseError(str, hash);
File jstorage.js
has 534 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*
* ----------------------------- JSTORAGE -------------------------------------
* Simple local storage wrapper to save data on the browser side, supporting
* all major browsers - IE6+, Firefox2+, Safari4+, Chrome4+ and Opera 10.5+
*
File multiselect.js
has 505 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/* jshint forin:true, noarg:true, noempty:true, eqeqeq:true, boss:true, undef:true, curly:true, browser:true, jquery:true */
/*
* jQuery MultiSelect UI Widget 1.14pre
* Copyright (c) 2012 Eric Hynds
*
Function _create
has 197 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_create: function() {
// Some browsers only repeat keydown events, not keypress events,
// so we use the suppressKeyPress flag to determine if we've already
// handled the keydown event. #7269
// Unfortunately the code for & in keypress is the same as the up arrow,
File flipsnap.js
has 490 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/**
* flipsnap.js
*
* @version 0.6.0
* @url http://pxgrid.github.com/js-flipsnap/
File flipsnap.js
has 490 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/**
* flipsnap.js
*
* @version 0.6.0
* @url http://pxgrid.github.com/js-flipsnap/
File api_v1.rb
has 479 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
class API_v1 < Grape::API
version 'v1', using: :path, format: :json, vendor: 'hummingbird'
formatter :json, lambda {|object, env| MultiJson.dump(object) }
rescue_from ActiveRecord::RecordNotFound
Function _generateHTML
has 169 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_generateHTML: function(inst) {
var maxDraw, prevText, prev, nextText, next, currentText, gotoDate,
controls, buttonPanel, firstDay, showWeek, dayNames, dayNamesMin,
monthNames, monthNamesShort, beforeShowDay, showOtherMonths,
selectOtherMonths, defaultDate, html, dow, row, group, col, selectedDate,
File hogan-2.0.0.js
has 436 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*
* Copyright 2011 Twitter, Inc.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
Method filter_new
has a Cognitive Complexity of 41 (exceeds 5 allowed). Consider refactoring. Open
Open
def filter_new
@filter_years = %w(Upcoming 2010s 2000s 1990s 1980s 1970s Older)
respond_to do |format|
format.html do
- 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 _iCheck
has 153 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.fn[_iCheck] = function(options, fire) {
// Walker
var handle = ':' + _checkbox + ', :' + _radio,
stack = $(),
Function parseDate
has 148 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
parseDate: function (format, value, settings) {
if (format == null || value == null) {
throw "Invalid arguments";
}
Function autosize
has 148 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.fn.autosize = function (options) {
if (!this.length) {
return this;
}
Function position
has 147 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.fn.position = function( options ) {
if ( !options || !options.of ) {
return _position.apply( this, arguments );
}