Showing 63 of 611 total issues
Function swipeDetect
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function swipeDetect(el, callback) {
var touchsurface = el,
swipedir,
startX,
startY,
Function render
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const { imagePath, name, large, className } = this.props
let avatarName
if (name) {
Function render
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const { width, src, crop, onComplete, handleFinishCrop, onCancelClick } = this.props
return (
<div className="c-image-input__crop-tool" >
Function render
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const { state } = this.props
let awesomeName, className
switch(state) {
Function render
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const { pledgeId, showEditButton, showDeleteButton, showRequestButton,
deleteConfirmationMessage } = this.props
console.log('showRequestButton', showRequestButton)
Function Schemas
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const Schemas = new function() {
this.pledge =
new Schema('pledges', {
idAttribute: 'id'
})
Function calculateDefaultCrop
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function calculateDefaultCrop(imgWidth, imgHeight, cropAspectRatio) {
let cropWidth, cropHeight, cropX, cropY
const imageAspectRatio = imgWidth / imgHeight
if (imgWidth > imgHeight) {
Function render
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const {
state, initiatorName, initiatorImage, title, deadline, signatures_count,
signatures_total, path, tags, className
} = this.props
Function render
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const { formData, id, isSubmitting, handleResponse, afterResponse, wasSubmitted } = this.props
let formOrMessage
if (wasSubmitted) {
Function render
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const { type, onDropFile, onRemoveFileClick, filename, isServerImage } = this.props
let modalElement
if (filename || isServerImage) {
Function mapStateToProps
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const mapStateToProps = (state, ownProps) => {
const pledge = ownProps.pledge
const aasm_state = pledge.aasm_state
const currentUserId = state.currentUser
Function render
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const currentPage = `${this.props.controller}#${this.props.action}`
return (
<ul className="c-off-canvas-menu__inner">
Function render
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const {
initiatorName, initiatorImage, content, amount, who, requirement, path,
className, locale
} = this.props
Function render
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const { signatures, showPrivateData } = this.props
let signeeListOrText
if (signatures.length > 0) {
Function parseDate
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
I18n.parseDate = function(date) {
var matches, convertedDate, fraction;
// we have a date, so just return it.
if (typeof(date) == "object") {
return date;
Method show
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def show
@pledge = Pledge.includes(:initiator).find(params[:id])
authorize @pledge
Function render
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const { formData } = this.props
return(
<Form {...formData} formObjectClass={SignInFormObject}>
Function render
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const {
formData, isSubmitting, handleResponse, afterResponse, wasSubmitted
} = this.props
Function render
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const {
pledge_id, comments, forms, userCanAskQuestions, userCanAnswer, questionFormId
} = this.props
const { questionForm, answerForm } = forms
Function render
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const { pledgeId, activateAction } = this.props
return (
<div className="c-preview c-preview--draft">