Showing 700 of 1,230 total issues
File sortable.js
has 2871 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/**!
* Sortable 1.10.2
* @author RubaXa <trash@rubaxa.org>
* @author owenm <owen23355@gmail.com>
* @license MIT
File spectrum.js
has 1808 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
// Spectrum Colorpicker v1.8.0
// https://github.com/bgrins/spectrum
// Author: Brian Grinstead
// License: MIT
Function spectrum
has 625 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function spectrum(element, o) {
var opts = instanceOptions(o, element),
flat = opts.flat,
showSelectionPalette = opts.showSelectionPalette,
Function MultiDragPlugin
has 463 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function MultiDragPlugin() {
function MultiDrag(sortable) {
// Bind all private methods
for (var fn in this) {
if (fn.charAt(0) === '_' && typeof this[fn] === 'function') {
File kassi.js
has 757 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
// Custom Javascript functions for Sharetribe
// Add custom validation methods
function add_validator_methods() {
File application_helper.rb
has 693 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
module ApplicationHelper
# Removes whitespaces from HAML expressions
# if you add two elements on two lines; the white space creates a space between the elements (in some browsers)
def one_line_for_html_safe_content(&block)
Function imageUploader
has 295 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
window.ST.imageUploader = function(listings, opts) {
var elementManager = ST.imageUploadElementManager($("#image-uploader-container"));
var directUploadToS3 = !!opts.s3Fields && !!opts.s3UploadPath;
var extraPlaceholders = 2;
File example_data.rb
has 574 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
module CustomLandingPage
# rubocop:disable Metrics/ModuleLength
module ExampleData
# TODO Document the expected JSON structure here
Method admin_links_for
has 234 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def admin_links_for(community)
links = [
{
:topic => :general,
:text => t("admin.communities.getting_started.getting_started"),
Class PaymentSettingsPresenter
has 63 methods (exceeds 20 allowed). Consider refactoring. Open
Open
class Person::PaymentSettingsPresenter
include Person::PaymentSettingsCommon
private
File googlemaps.js
has 547 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
var directionsDisplay;
var directionsService;
var marker;
var geocoder;
var map;
Class Person
has 59 methods (exceeds 20 allowed). Consider refactoring. Open
Open
class Person < ApplicationRecord
include ErrorsHelper
include ApplicationHelper
include DeletePerson
Method build_default_test_actions
has 203 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def build_default_test_actions
identity = -> (val, _) { val }
{
get_express_checkout_details: PaypalAction.def_action(
Function _onDragOver
has 201 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_onDragOver: function _onDragOver(
/**Event*/
evt) {
var el = this.el,
target = evt.target,
Function initializeManageMembers
has 198 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
window.ST.initializeManageMembers = function() {
var DELAY = 800;
function createCheckboxAjaxRequest(streams, url, allowedKey, disallowedKey) {
var ajaxRequest = Bacon.combineAsArray(streams).changes().debounce(DELAY).skipDuplicates(_.isEqual).map(function(valueObjects) {
Class Community
has 55 methods (exceeds 20 allowed). Consider refactoring. Open
Open
class Community < ApplicationRecord # rubocop:disable Metrics/ClassLength
require 'compass'
require 'sass/plugin'
Class ListingPresenter
has 53 methods (exceeds 20 allowed). Consider refactoring. Open
Open
class ListingPresenter < MemoisticPresenter
include ListingAvailabilityManage
include Rails.application.routes.url_helpers
attr_accessor :listing, :current_community, :form_path, :params, :current_image, :prev_image_id, :next_image_id
attr_reader :shape, :current_user
File person_mailer.rb
has 478 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
include ApplicationHelper
include ListingsHelper
include TruncateHtmlHelper
# rubocop:enable Style/MixinUsage
Class ApplicationController
has 52 methods (exceeds 20 allowed). Consider refactoring. Open
Open
class ApplicationController < ActionController::Base
module DefaultURLOptions
# Adds locale to all links
def default_url_options
File ipn.rb
has 468 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
module PaypalService
Invnum = PaypalService::API::Invnum
module DataTypes