Showing 282 of 417 total issues
Function stop
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
stop: function( type, clearQueue, gotoEnd ) {
if ( typeof type !== "string" ) {
gotoEnd = clearQueue;
clearQueue = type;
type = undefined;
Function style
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
svg.Element.style = function(node) {
this.base = svg.Element.ElementBase;
this.base(node);
// text, or spaces then CDATA
Function load
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
load: function( url, params, callback ) {
if ( typeof url !== "string" && _load ) {
return _load.apply( this, arguments );
// Don't do a request if no elements are being requested
Function data
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
data: function( key, value ) {
var parts, attr, name,
data = null;
if ( typeof key === "undefined" ) {
Function buildRadial
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
d3.phylogram.buildRadial = function(selector, nodes, options) {
options = options || {}
var w = options.width || d3.select(selector).style('width') || d3.select(selector).attr('width'),
r = w / 2,
labelWidth = options.skipLabels ? 10 : options.labelWidth || 120;
Consider simplifying this complex logical expression. Open
Open
if ((circle.lat != null) && (circle.lng != null)) {
newCircle = new google.maps.Circle({
center: this.createLatLng(circle.lat, circle.lng),
strokeColor: circle.strokeColor || this.circles_conf.strokeColor,
strokeOpacity: circle.strokeOpacity || this.circles_conf.strokeOpacity,
Function createClusterer
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Gmaps4RailsOpenlayers.prototype.createClusterer = function(markers_array) {
var clusters, funcs, options, strategy, style;
options = {
pointRadius: "${radius}",
fillColor: "#ffcc66",
Function image
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
svg.Element.image = function(node) {
this.base = svg.Element.RenderedElementBase;
this.base(node);
var href = this.attribute('xlink:href').value;
Function on
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
on: function( types, selector, data, fn, /*INTERNAL*/ one ) {
var origFn, type;
// Types can be a map of types/handlers
if ( typeof types === "object" ) {
Function extend
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
jQuery.extend = jQuery.fn.extend = function() {
var options, name, src, copy, copyIsArray, clone,
target = arguments[0] || {},
i = 1,
length = arguments.length,
Function val
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
val: function( value ) {
var hooks, ret, isFunction,
elem = this[0];
if ( !arguments.length ) {
Function draw
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var draw = function() {
svg.ViewPort.Clear();
if (ctx.canvas.parentNode) svg.ViewPort.SetCurrent(ctx.canvas.parentNode.clientWidth, ctx.canvas.parentNode.clientHeight);
if (svg.opts['ignoreDimensions'] != true) {
Method supported_submit_values_multiple
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def supported_submit_values_multiple
@ling = current_group.lings.find(params[:id])
stale_values = @ling.lings_properties.find(:all, conditions: {property_id: params[:property_id]})
collection_authorize! :manage, stale_values if stale_values
Function createMarker
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Gmaps4RailsGoogle.prototype.createMarker = function(args) {
var defaultOptions, imageAnchorPosition, markerImage, markerLatLng, mergedOptions, shadowAnchorPosition, shadowImage;
markerLatLng = this.createLatLng(args.Lat, args.Lng);
if (args.marker_picture === "" && args.rich_marker === null) {
defaultOptions = {
Function when
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
when: function( firstParam ) {
var args = sliceDeferred.call( arguments, 0 ),
i = 0,
length = args.length,
pValues = new Array( length ),
Function createMarker
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Gmaps4RailsOpenlayers.prototype.createMarker = function(args) {
var marker, style_mark;
style_mark = OpenLayers.Util.extend({}, OpenLayers.Feature.Vector.style['default']);
style_mark.fillOpacity = 1;
if (this.markersLayer === null) {
Function Mouse
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
svg.Mouse = new (function() {
this.events = [];
this.hasEvents = function() { return this.events.length != 0; }
this.onclick = function(x, y) {
Method display_style_example
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def display_style_example(style_id)
result = "<table class='show-table table table-bordered table-striped table-hover'>"
case style_id
when 0
result += "<tr>
Function getWH
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function getWH( elem, name, extra ) {
// Start with offset property
var val = name === "width" ? elem.offsetWidth : elem.offsetHeight,
which = name === "width" ? cssWidth : cssHeight,
Method supported_submit_values
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def supported_submit_values
@ling = current_group.lings.find(params[:id])
fresh_vals = LingsProperty.find(:all,
:conditions => {ling_id: @ling.id, property_id: params[:property_id]})
if fresh_vals.count > 1