Showing 446 of 1,255 total issues
Function d3_dsv
has 76 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function d3_dsv(delimiter, mimeType) {
function dsv(url, callback) {
d3.text(url, mimeType, function(text) {
callback(text && dsv.parse(text));
});
Function getImage
has 76 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
getImage: function(item, template) {
var guard = 0,
// image load complete handler
File wip.rb
has 293 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
require 'activerecord/uuid'
require 'elasticsearch/model'
class Wip < ActiveRecord::Base
include ActiveRecord::UUID
File product_show.js.jsx
has 292 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
'use strict';
const {List, Map} = require('immutable');
const Avatar = require('../ui/avatar.js.jsx');
const BountyCard = require('../bounty_card.js.jsx');
Function d3_scale_ordinal
has 74 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function d3_scale_ordinal(domain, ranger) {
function scale(x) {
return range[((index.get(x) || index.set(x, domain.push(x))) - 1) % range.length];
}
function steps(start, step) {
Function BsModalMixin
has 72 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var BsModalMixin = (function() {
var handlerProps =
['handleShow', 'handleShown', 'handleHide', 'handleHidden']
var bsModalEvents = {
Function render
has 72 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render: function() {
var bountyFilterProps = _.pick(this.props, 'tags', 'creators', 'workers')
var product = this.props.product
Function render
has 72 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render: function() {
let isOpen = this.props.isOpen;
let header = this.props.header;
let bassClasses = colorbass(this.props.color);
let classes = {
Function d3_svg_area
has 71 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function d3_svg_area(projection) {
function area(data) {
function segment() {
segments.push("M", interpolate(projection(points1), tension), L, interpolateReverse(projection(points0.reverse()), tension), "Z");
}
NewsFeedItem
has 25 functions (exceeds 20 allowed). Consider refactoring. Open
Open
let NewsFeedItem = React.createClass({
propTypes: {
commentable: React.PropTypes.bool,
enableModal: React.PropTypes.bool,
productPage: React.PropTypes.bool,
Bounty
has 25 functions (exceeds 20 allowed). Consider refactoring. Open
Open
let Bounty = React.createClass({
propTypes: {
bounty: React.PropTypes.shape({
user: React.PropTypes.object,
}),
Class BountySerializer
has 25 methods (exceeds 20 allowed). Consider refactoring. Open
Open
class BountySerializer < ApplicationSerializer
include MarkdownHelper
attributes :can_update, :comments_count, :contracts, :flagged, :following,
:description,
Class ChecklistHandler
has 25 methods (exceeds 20 allowed). Consider refactoring. Open
Open
class ChecklistHandler
DEFAULT_TILTING_THRESHOLD = Idea::DEFAULT_TILTING_THRESHOLD
COMMENT_MINIMUM = Idea::COMMENT_MINIMUM
Class WipsController
has 25 methods (exceeds 20 allowed). Consider refactoring. Open
Open
class WipsController < ProductController
respond_to :html, :json
before_filter :set_no_cache, only: [:index, :show]
before_action :authenticate_user!, :except => [:show, :index, :search]
Function render
has 70 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render: function() {
var header
var showcase = this.props.showcase
if (!showcase) {
File people_view.js.jsx
has 281 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
(function() {
var PeopleStore = require('../stores/people_store');
var PeoplePageMixin = require('../mixins/people_page.js.jsx');
Function initGallery
has 68 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
initGallery: function() {
var gSt = mfp.st.gallery,
ns = '.mfp-gallery',
supportsFastClick = Boolean($.fn.mfpFastClick);
Function initGallery
has 68 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
initGallery: function() {
var gSt = mfp.st.gallery,
ns = '.mfp-gallery',
supportsFastClick = Boolean($.fn.mfpFastClick);
Method initialize
has 68 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def initialize(current_user)
can [:read], Product do |product|
if Product::PRIVATE.include?(product.slug)
current_user && product.core_team?(current_user)
else
Function render
has 67 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
let partners = _.sortBy(
_.filter(
this.state.partners,
(m) => { return m.coins > 0}),