Showing 282 of 417 total issues
Function cleanData
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
cleanData: function( elems ) {
var data, id,
cache = jQuery.cache,
special = jQuery.event.special,
deleteExpando = jQuery.support.deleteExpando;
Function parse
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
exports.parse = function(s) {
var ancestors = [];
var tree = {};
var tokens = s.split(/\s*(;|\(|\)|,|:)\s*/);
for (var i=0; i<tokens.length; i++) {
Function dirCheck
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function dirCheck( dir, cur, doneName, checkSet, nodeCheck, isXML ) {
for ( var i = 0, l = checkSet.length; i < l; i++ ) {
var elem = checkSet[i];
if ( elem ) {
Function a
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
svg.Element.a = function(node) {
this.base = svg.Element.TextElementBase;
this.base(node);
this.hasText = true;
Function radialGradient
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
svg.Element.radialGradient = function(node) {
this.base = svg.Element.GradientBase;
this.base(node);
this.getGradient = function(ctx, element) {
Function clone
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
clone: function( elem, dataAndEvents, deepDataAndEvents ) {
var srcElements,
destElements,
i,
// IE<=8 does not properly clone detached, unknown element nodes
Function offset
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
jQuery.fn.offset = function( options ) {
var elem = this[0], box;
if ( options ) {
return this.each(function( i ) {
Function promise
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
promise: function( type, object ) {
if ( typeof type !== "string" ) {
object = type;
type = undefined;
}
Function style
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
style: function( elem, name, value, extra ) {
// Don't set styles on text and comment nodes
if ( !elem || elem.nodeType === 3 || elem.nodeType === 8 || !elem.style ) {
return;
}
Function create_direction
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Gmaps4Rails.prototype.create_direction = function() {
var directionsDisplay, directionsService, request;
directionsDisplay = new google.maps.DirectionsRenderer();
directionsService = new google.maps.DirectionsService();
directionsDisplay.setMap(this.serviceObject);
Function Font
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
svg.Font = new (function() {
this.Styles = 'normal|italic|oblique|inherit';
this.Variants = 'normal|small-caps|inherit';
this.Weights = 'normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900|inherit';
Function update
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
this.update = function(delta) {
// set initial value
if (this.initialValue == null) {
this.initialValue = this.getProperty().value;
this.initialUnits = this.getProperty().getUnits();
Function renderChildren
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
this.renderChildren = function(ctx) {
var customFont = this.parent.style('font-family').getDefinition();
if (customFont != null) {
var fontSize = this.parent.style('font-size').numValueOrDefault(svg.Font.Parse(svg.ctx.font).fontSize);
var fontStyle = this.parent.style('font-style').valueOrDefault(svg.Font.Parse(svg.ctx.font).fontStyle);
Function apply
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
this.apply = function(ctx, element) {
// render as temp svg
var bb = element.getBoundingBox();
var x = this.attribute('x').toPixels('x');
var y = this.attribute('y').toPixels('y');
Function font
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
svg.Element.font = function(node) {
this.base = svg.Element.ElementBase;
this.base(node);
this.horizAdvX = this.attribute('horiz-adv-x').numValue();
Function type
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
jQuery.fn[ type ] = function( size ) {
// Get window width or height
var elem = this[0];
if ( !elem ) {
return size == null ? null : this;
Function find
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
find: function( selector ) {
var self = this,
i, l;
if ( typeof selector !== "string" ) {
Function mask
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
svg.Element.mask = function(node) {
this.base = svg.Element.ElementBase;
this.base(node);
this.apply = function(ctx, element) {
Method cluster
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def cluster(distance = :euclidean, linkage = :avg)
@distance_strategy = select_distance_strategy distance
@linkage_strategy = select_linkage_strategy linkage
@clusters = {} # Clusters list
Method create
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def create
@example = Example.new(params[:example]) do |example|
example.group = current_group
example.creator = current_user
end