Showing 3,976 of 3,976 total issues
Function fgSegHtml
has 55 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
fgSegHtml: function(seg, disableResizing) {
var view = this.view;
var event = seg.event;
var isDraggable = view.isEventDraggable(event);
var isResizableFromStart = !disableResizing && seg.isStart && view.isEventResizableFromStart(event);
Function transition
has 55 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
transition: function(forced) {
var
elementClass = $module.attr('class'),
tagName = $module.prop('tagName'),
animation = settings.animation,
Function CallTracker
has 55 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
getJasmineRequireObj().CallTracker = function(j$) {
function CallTracker() {
var calls = [];
var opts = {};
Function _setOption
has 55 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_setOption: function( key, value ) {
var i,
valsLength = 0;
if ( key === "range" && this.options.range === true ) {
Function add
has 55 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
add: function(handleObj) {
var getCoords = function(e) {
if ( e.touches && e.touches.length ) {
var touch = e.touches[0];
Function _setOption
has 55 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_setOption: function( key, value ) {
var i,
valsLength = 0;
if ( key === "range" && this.options.range === true ) {
Class DogsController
has 21 methods (exceeds 20 allowed). Consider refactoring. Open
Open
class DogsController < ApplicationController
require 'dog_form_filler'
before_filter :current_user
Function showModal
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
showModal: function(callback) {
callback = $.isFunction(callback)
? callback
: function(){}
;
Function invoke
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
invoke: function(query, passedArguments, context) {
var
object = instance,
maxDepth,
found,
Function init
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
init = jQuery.fn.init = function( selector, context, root ) {
var match, elem;
// HANDLE: $(""), $(null), $(undefined), $(false)
if ( !selector ) {
Function remove
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
remove: function( elem, types, handler, selector, mappedTypes ) {
var j, handleObj, tmp,
origCount, t, events,
special, handlers, type,
namespaces, origType,
Function _mouseStart
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_mouseStart: function(event) {
var that = this,
options = this.options;
this.opos = [ event.pageX, event.pageY ];
Function keydown
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
keydown: function( event ) {
var preventDefault = true;
switch ( event.keyCode ) {
case $.ui.keyCode.TAB:
case $.ui.keyCode.ESCAPE:
Function generateSpread
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function generateSpread ( density, mode, group ) {
var originalSpectrumDirection = scope_Spectrum.direction,
indexes = {},
firstInRange = scope_Spectrum.xVal[0],
Function keydown
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
keydown: function( event ) {
var preventDefault = true;
switch ( event.keyCode ) {
case $.ui.keyCode.TAB:
case $.ui.keyCode.ESCAPE:
Function _mouseStart
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_mouseStart: function(event) {
var that = this,
options = this.options;
this.opos = [ event.pageX, event.pageY ];
Assignment Branch Condition size for to_json is too high. [19/15] Open
Open
def to_json
return {
:id => self.id,
:name => self.name,
:dob => self.dob.year,
- Read upRead up
- Exclude checks
This cop checks that the ABC size of methods is not higher than the configured maximum. The ABC size is based on assignments, branches (method calls), and conditions. See http://c2.com/cgi/wiki?AbcMetric
Method has too many lines. [14/10] Open
Open
def update
@form_filler = DogViewHelper.new(nil, nil, false)
@dog = Dog.find(params[:id])
@pictures = @dog.pictures
if not @is_admin and @dog.user != @current_user
- Read upRead up
- Exclude checks
This cop checks if the length of a method exceeds some maximum value. Comment lines can optionally be ignored. The maximum allowed length is configurable.
Method has too many lines. [14/10] Open
Open
def info
id = params[:id]
if !Dog.exists?(id)
render :json => {
"success" => false,
- Read upRead up
- Exclude checks
This cop checks if the length of a method exceeds some maximum value. Comment lines can optionally be ignored. The maximum allowed length is configurable.
Assignment Branch Condition size for attributes_list is too high. [19.44/15] Open
Open
def attributes_list(dog_attributes)
## Return hash with new dog values to create new dog/update existing dog
new_attrs = {
:mixes => get_mix_array(dog_attributes['mixes']),
:size => dog_attributes['size'] && dog_attributes['size'].length != 0 ? Size.find(dog_attributes['size']): nil,
- Read upRead up
- Exclude checks
This cop checks that the ABC size of methods is not higher than the configured maximum. The ABC size is based on assignments, branches (method calls), and conditions. See http://c2.com/cgi/wiki?AbcMetric