LearnersGuild/echo

View on GitHub

Showing 127 of 127 total issues

Function render has 106 lines of code (exceeds 25 allowed). Consider refactoring.
Open

render() {
const {
pristine,
handleSubmit,
submitting,
Severity: Major
Found in src/common/components/UserForm/index.jsx - About 4 hrs to fix

    Function render has 90 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    render() {
    const {
    pristine,
    handleSubmit,
    submitting,
    Severity: Major
    Found in src/common/components/ProjectForm/index.jsx - About 3 hrs to fix

      Function render has 87 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      render() {
      const {
      handleSubmit,
      submitting,
      onSaveChapter,
      Severity: Major
      Found in src/common/components/ChapterForm/index.jsx - About 3 hrs to fix

        Function formFieldsForQuestionGroup has 87 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        export function formFieldsForQuestionGroup(questionGroup) {
        try {
        if (!questionGroup) {
        return null
        }
        Severity: Major
        Found in src/common/util/survey.js - About 3 hrs to fix

          Function mapStateToProps has 71 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          function mapStateToProps(state) {
          const {
          surveys: {
          isBusy,
          isSubmitting,
          Severity: Major
          Found in src/common/containers/WorkPlanSurvey/index.jsx - About 2 hrs to fix

            File index.jsx has 281 lines of code (exceeds 250 allowed). Consider refactoring.
            Open

            /* global window */
             
            import React, {Component, PropTypes} from 'react'
            import {connect} from 'react-redux'
            import {push} from 'react-router-redux'
            Severity: Minor
            Found in src/common/containers/WorkPlanSurvey/index.jsx - About 2 hrs to fix

              Function start has 66 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              export function start() {
              // capture unhandled exceptions
              raven.patchGlobal(config.server.sentryDSN)
               
              const app = new Express()
              Severity: Major
              Found in src/server/server.js - About 2 hrs to fix

                File index.jsx has 276 lines of code (exceeds 250 allowed). Consider refactoring.
                Open

                /* global window */
                /**
                * RetroSurvey
                * Controls the following:
                * - fetching of survey data
                Severity: Minor
                Found in src/common/containers/RetroSurvey/index.jsx - About 2 hrs to fix

                  Function renderSidebar has 64 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                  renderSidebar() {
                  const {user, currentUser, defaultAvatarURL, onClickEdit} = this.props
                   
                  const emailLink = user.email ? (
                  <a href={`mailto:${user.email}`} target="_blank" rel="noopener noreferrer">
                  Severity: Major
                  Found in src/common/components/UserDetail/index.jsx - About 2 hrs to fix

                    Function mapStateToProps has 62 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                    function mapStateToProps(state) {
                    const {app, phaseSummaries} = state
                    const {phaseSummaries: phaseSummariesByPhaseId} = phaseSummaries
                     
                    const phaseSummaryList = Object.values(phaseSummariesByPhaseId)
                    Severity: Major
                    Found in src/common/containers/Phases/index.jsx - About 2 hrs to fix

                      Function renderNavigation has 61 lines of code (exceeds 25 allowed). Consider refactoring.
                      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}>
                      Severity: Major
                      Found in src/common/containers/App/index.jsx - About 2 hrs to fix

                        Function mapStateToProps has 61 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                        function mapStateToProps(state) {
                        const {
                        surveys: {
                        isBusy,
                        isSubmitting,
                        Severity: Major
                        Found in src/common/containers/RetroSurvey/index.jsx - About 2 hrs to fix

                          Function surveys has 51 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                          export default function surveys(state = initialState, action) {
                          switch (action.type) {
                          case SET_SURVEY_GROUP:
                          return Object.assign({}, state, {groupIndex: action.groupIndex})
                           
                           
                          Severity: Major
                          Found in src/common/reducers/surveys.js - About 2 hrs to fix

                            Function _itBuildsTheSurveyProperly has 50 lines of code (exceeds 25 allowed). Consider refactoring.
                            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

                              const tableSources = phaseSummaryList.map((phaseSummary, i) => {
                              const projectsByMemberId = phaseSummary.currentProjects.reduce((result, project) => {
                              project.memberIds.forEach(memberId => {
                              result[memberId] = project
                              })
                              Severity: Minor
                              Found in src/common/containers/Phases/index.jsx - About 2 hrs to fix

                                Function render has 50 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                render() {
                                const {
                                showSurvey,
                                showProjects,
                                projects,
                                Severity: Minor
                                Found in src/common/containers/RetroSurvey/index.jsx - About 2 hrs to fix

                                  Function getWorkPlanSurvey has 49 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                  export default function getWorkPlanSurvey(projectName) {
                                  return {
                                  variables: {projectName},
                                  query: `
                                  query($projectName:String) {
                                  Severity: Minor
                                  Found in src/common/actions/queries/getWorkPlanSurvey.js - About 1 hr to fix

                                    Function getRetrospectiveSurvey has 49 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                    export default function getRetrospectiveSurvey(projectName) {
                                    return {
                                    variables: {projectName},
                                    query: `
                                    query($projectName:String) {
                                    Severity: Minor
                                    Found in src/common/actions/queries/getRetrospectiveSurvey.js - About 1 hr to fix

                                      Function renderDetails has 48 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                      renderDetails() {
                                      const {project = {}, projectUserSummaries} = this.props
                                      const {chapter, cycle, phase} = project
                                       
                                      const memberList = projectUserSummaries.map((projectUserSummary, index) => {
                                      Severity: Minor
                                      Found in src/common/components/ProjectDetail/index.jsx - About 1 hr to fix

                                        Function render has 47 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                        render() {
                                        const {
                                        showSurvey,
                                        showNoWorkPlan,
                                        surveyTitle,
                                        Severity: Minor
                                        Found in src/common/containers/WorkPlanSurvey/index.jsx - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language