Showing 127 of 127 total issues
Function render
has 106 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() { const { pristine, handleSubmit, submitting,
Function render
has 90 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() { const { pristine, handleSubmit, submitting,
Function render
has 87 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() { const { handleSubmit, submitting, onSaveChapter,
Function formFieldsForQuestionGroup
has 87 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function formFieldsForQuestionGroup(questionGroup) { try { if (!questionGroup) { return null }
Function mapStateToProps
has 71 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function mapStateToProps(state) { const { surveys: { isBusy, isSubmitting,
File index.jsx
has 281 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/* global window */ import React, {Component, PropTypes} from 'react'import {connect} from 'react-redux'import {push} from 'react-router-redux'
Function start
has 66 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function start() { // capture unhandled exceptions raven.patchGlobal(config.server.sentryDSN) const app = new Express()
File index.jsx
has 276 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/* global window *//** * RetroSurvey * Controls the following: * - fetching of survey data
Function renderSidebar
has 64 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
renderSidebar() { const {user, currentUser, defaultAvatarURL, onClickEdit} = this.props const emailLink = user.email ? ( <a href={`mailto:${user.email}`} target="_blank" rel="noopener noreferrer">
Function mapStateToProps
has 62 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function mapStateToProps(state) { const {app, phaseSummaries} = state const {phaseSummaries: phaseSummariesByPhaseId} = phaseSummaries const phaseSummaryList = Object.values(phaseSummariesByPhaseId)
Function renderNavigation
has 61 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
renderNavigation() { const {auth: {currentUser = {}}} = this.props const avatar = <Avatar><img src={currentUser.avatarUrl || process.env.LOGO_SHORT_URL}/></Avatar> return ( <div className={styles.nav}>
Function mapStateToProps
has 61 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function mapStateToProps(state) { const { surveys: { isBusy, isSubmitting,
Function surveys
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function surveys(state = initialState, action) { switch (action.type) { case SET_SURVEY_GROUP: return Object.assign({}, state, {groupIndex: action.groupIndex})
Function _itBuildsTheSurveyProperly
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
async function _itBuildsTheSurveyProperly(projects, questions, opts = null) { const options = opts || {shouldIncludeRelativeContribution: true} const teamQuestionFilter = options.shouldIncludeRelativeContribution ? question => question.subjectType === 'team' :
Function tableSources
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const tableSources = phaseSummaryList.map((phaseSummary, i) => { const projectsByMemberId = phaseSummary.currentProjects.reduce((result, project) => { project.memberIds.forEach(memberId => { result[memberId] = project })
Function render
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() { const { showSurvey, showProjects, projects,
Function getWorkPlanSurvey
has 49 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function getWorkPlanSurvey(projectName) { return { variables: {projectName}, query: ` query($projectName:String) {
Function getRetrospectiveSurvey
has 49 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function getRetrospectiveSurvey(projectName) { return { variables: {projectName}, query: ` query($projectName:String) {
Function renderDetails
has 48 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
renderDetails() { const {project = {}, projectUserSummaries} = this.props const {chapter, cycle, phase} = project const memberList = projectUserSummaries.map((projectUserSummary, index) => {
Function render
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() { const { showSurvey, showNoWorkPlan, surveyTitle,