Showing 63 of 611 total issues
File i18n.js
has 570 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
// export default class I18n {
// static set locale(locale) {
// 'yo'
// }
//
Function render
has 137 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const {
onLinkClick, userLoggedIn, form, afterResponse, formId
} = this.props
Function render
has 92 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const {
model, attribute, submodel, errors, value, min, max,
noLabel, inlineLabel, formId, className
} = this.props
Function render
has 70 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const { asSubmodel, labelContent } = this.props
return(
<div>
Function render
has 61 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const { formData, isSubmitting, handleResponse, afterResponse, isAlreadySigned } = this.props
return isAlreadySigned ? <PledgeSignedMessage /> : (
<Form
Function render
has 56 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const { controls } = this.props
const isOpen = controls ? this.state.isOpen : true
Function strftime
has 55 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
I18n.strftime = function(date, format) {
var options = this.lookup("date")
, meridianOptions = I18n.meridian()
;
Function render
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const { state, initiator, amount, deadline, signatures_count } = this.props
const remainingDays = daysTill(deadline)
Function mergeProps
has 53 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const mergeProps = function(stateProps, dispatchProps, ownProps) {
const { originalImage, crop, attrs } = stateProps
const {
formId, attribute, submodel, scaleToX, scaleToY, aspectRatio,
formObjectClass
Function render
has 52 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const {
title, content, amount, who, requirement, location, deadline, locale,
description, image, aasm_state, signatures_count, created_at, user, tags
} = this.props
Function render
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const { pledge, showControls } = this.props
const initiator = pledge.initiator
const initiatorName = initiator.organization || initiator.name
const avatarUrl = initiator.avatar.url
Function render
has 49 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const {
imageState, originalImage, originalImageWidth, originalImageHeight, filename,
crop, croppedImageUrl, previewArea, onDropFile, handleChangeCrop,
handleFinishCrop, onCancelClick, onRemoveFileClick, className, type
Function render
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
return (
<div className='c-pledge-form'>
<div className="c-pledge-form__group1">
Function render
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const { pledge, user, forms } = this.props
return (
<Provider store={store}>
Function imageInputs
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function imageInputs(state={}, action) {
let originalImage, aspect, crop
if (state.id !== action.id) {
return state
Function render
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const { currentUser, onLoginClick, isVisible, onProfileLinkClick } = this.props
let button
if (currentUser) {
Function render
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const { state, remainingDays, urgent } = this.props
const className = `c-pledge-state${urgent ? ' c-pledge-state--urgent' : ''}`
let stateElement = null
Function toNumber
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
I18n.toNumber = function(number, options) {
options = this.prepareOptions(
options
, this.lookup("number.format")
, NUMBER_FORMAT
Function render
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const { currentUser, onLinkClick } = this.props
return(
<div>
Function render
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const { pledge, avatarPath } = this.props
const initiator = pledge.initiator
const initiatorName = initiator.organization || initiator.name