Showing 282 of 417 total issues
File jquery.js
has 6373 lines of code (exceeds 250 allowed). Consider refactoring. Open
/*!
* jQuery JavaScript Library v1.7.1
* http://jquery.com/
*
* Copyright 2011, John Resig
Function build
has 2112 lines of code (exceeds 25 allowed). Consider refactoring. Open
function build() {
var svg = { };
svg.FRAMERATE = 30;
svg.MAX_VIRTUAL_PIXELS = 30000;
Method validate!
has a Cognitive Complexity of 304 (exceeds 5 allowed). Consider refactoring. Open
def validate!
reset = "\r\e[0K"
@check_users = true
- 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
File canvg.js
has 2164 lines of code (exceeds 250 allowed). Consider refactoring. Open
/*
* canvg.js - Javascript SVG parser and renderer on Canvas
* MIT Licensed
* Gabe Lerner (gabelerner@gmail.com)
* http://code.google.com/p/canvg/
Function jQuery
has 592 lines of code (exceeds 25 allowed). Consider refactoring. Open
var jQuery = (function() {
// Define a local copy of jQuery
var jQuery = function( selector, context ) {
// The jQuery object is actually just the init constructor 'enhanced'
Function Gmaps4Rails
has 475 lines of code (exceeds 25 allowed). Consider refactoring. Open
this.Gmaps4Rails = (function() {
function Gmaps4Rails() {
this.map = null;
this.serviceObject = null;
Function path
has 291 lines of code (exceeds 25 allowed). Consider refactoring. Open
svg.Element.path = function(node) {
this.base = svg.Element.PathElementBase;
this.base(node);
var d = this.attribute('d').value;
Function Gmaps4RailsGoogle
has 278 lines of code (exceeds 25 allowed). Consider refactoring. Open
this.Gmaps4RailsGoogle = (function(_super) {
__extends(Gmaps4RailsGoogle, _super);
function Gmaps4RailsGoogle() {
Method validate!
has 263 lines of code (exceeds 25 allowed). Consider refactoring. Open
def validate!
reset = "\r\e[0K"
@check_users = true
Function RGBColor
has 253 lines of code (exceeds 25 allowed). Consider refactoring. Open
function RGBColor(color_string)
{
this.ok = false;
// strip any leading #
Function ajax
has 242 lines of code (exceeds 25 allowed). Consider refactoring. Open
ajax: function( url, options ) {
// If url is an object, simulate pre-1.5 signature
if ( typeof url === "object" ) {
options = url;
Method import!
has a Cognitive Complexity of 61 (exceeds 5 allowed). Consider refactoring. Open
def import!
# RubyProf.measure_mode = RubyProf::ALLOCATIONS
# RubyProf.start
reset = "\r\e[0K"
- 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
File gmaps4rails.base.js
has 500 lines of code (exceeds 250 allowed). Consider refactoring. Open
(function() {
var Gmaps;
Gmaps = {};
Function Gmaps4RailsOpenlayers
has 183 lines of code (exceeds 25 allowed). Consider refactoring. Open
this.Gmaps4RailsOpenlayers = (function(_super) {
__extends(Gmaps4RailsOpenlayers, _super);
function Gmaps4RailsOpenlayers() {
Function Gmaps4RailsBing
has 179 lines of code (exceeds 25 allowed). Consider refactoring. Open
this.Gmaps4RailsBing = (function(_super) {
__extends(Gmaps4RailsBing, _super);
function Gmaps4RailsBing() {
Method supported_set_values
has a Cognitive Complexity of 45 (exceeds 5 allowed). Consider refactoring. Open
def supported_set_values
@ling = current_group.lings.find(params[:id])
@depth = @ling.depth
@categories = current_group.categories.at_depth(@depth)
session[:category_id] = params[:category_id] if params[:category_id]
- 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 path
has 166 lines of code (exceeds 25 allowed). Consider refactoring. Open
this.path = function(ctx) {
var pp = this.PathParser;
pp.reset();
var bb = new svg.BoundingBox();
Method import!
has 160 lines of code (exceeds 25 allowed). Consider refactoring. Open
def import!
# RubyProf.measure_mode = RubyProf::ALLOCATIONS
# RubyProf.start
reset = "\r\e[0K"
Function support
has 159 lines of code (exceeds 25 allowed). Consider refactoring. Open
jQuery.support = (function() {
var support,
all,
a,
Function Callbacks
has 148 lines of code (exceeds 25 allowed). Consider refactoring. Open
jQuery.Callbacks = function( flags ) {
// Convert flags from String-formatted to Object-formatted
// (we check in cache first)
flags = flags ? ( flagsCache[ flags ] || createFlags( flags ) ) : {};