LearnersGuild/echo

View on GitHub

Showing 127 of 127 total issues

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

export default function RetroSurveyBody(props) {
const {
formName,
surveyFields,
handleSubmit,
Severity: Minor
Found in src/common/components/RetroSurveyForm/RetroSurveyBody.jsx - About 1 hr to fix

    Function groupSurveyQuestions has 46 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    export function groupSurveyQuestions(questions) {
    try {
    const teamQuestionsByQuestionId = new Map()
    const singleSubjectQuestionsBySubjectId = new Map()
     
     
    Severity: Minor
    Found in src/common/util/survey.js - About 1 hr to fix

      Function getUserSummary has 46 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

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

        Function renderFieldInput has 44 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        renderFieldInput(field) {
        const {input: {onChange: handleChange}} = field
        switch (field.type) {
        case FORM_INPUT_TYPES.TEXT:
        return (
        Severity: Minor
        Found in src/common/components/SurveyForm/index.jsx - About 1 hr to fix

          Function questionModel has 43 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          export default function questionModel(thinky) {
          const {r, type: {string, date, boolean, object}} = thinky
           
          return {
          name: 'Question',
          Severity: Minor
          Found in src/server/services/dataService/models/question.js - About 1 hr to fix

            Function getProjectSummary has 43 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

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

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

              render() {
              const {
              handleSubmit,
              submitting,
              invalid,
              Severity: Minor
              Found in src/common/components/InviteCodeForm/index.jsx - About 1 hr to fix

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

                render() {
                const {
                title,
                tabs,
                tableModel,
                Severity: Minor
                Found in src/common/components/TabbedContentTable/index.jsx - About 1 hr to fix

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

                  render() {
                  const {
                  name,
                  title,
                  handleSubmit,
                  Severity: Minor
                  Found in src/common/components/SurveyForm/index.jsx - About 1 hr to fix

                    Function projectModel has 42 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                    export default function projectModel(thinky) {
                    const {r, type: {string, date, array}} = thinky
                     
                    return {
                    name: 'Project',
                    Severity: Minor
                    Found in src/server/services/dataService/models/project.js - About 1 hr to fix

                      Function findRetrospectiveSurveys has 42 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

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

                        Function WorkPlanSurveyForm has 42 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                        export default function WorkPlanSurveyForm(props) {
                        const {
                        surveyShortTitle,
                        formName,
                        surveyGroupIndex,
                        Severity: Minor
                        Found in src/common/components/WorkPlanSurveyForm/index.jsx - About 1 hr to fix

                          Function unlockSurvey has 41 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                          export default function unlockSurvey(memberId, projectId) {
                          return {
                          variables: {memberId, projectId},
                          query: `
                          mutation($memberId: ID!, $projectId: ID!) {
                          Severity: Minor
                          Found in src/common/actions/queries/unlockRetroSurveyForUser.js - About 1 hr to fix

                            Function feedbackTypeModel has 41 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                            export default function feedbackTypeModel(thinky) {
                            const {r, type: {string, date}} = thinky
                             
                            return {
                            name: 'FeedbackType',
                            Severity: Minor
                            Found in src/server/services/dataService/models/feedbackType.js - About 1 hr to fix

                              Function getGraphQLFetcher has 41 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                              export default function getGraphQLFetcher(dispatch, auth, baseUrl = process.env.APP_BASE_URL, throwErrors = true) {
                              dispatch(fetchDataRequest())
                              return graphQLParams => {
                              const options = {
                              method: 'post',
                              Severity: Minor
                              Found in src/common/util/getGraphQLFetcher.js - About 1 hr to fix

                                Function lockSurvey has 41 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                export default function lockSurvey(memberId, projectId) {
                                return {
                                variables: {memberId, projectId},
                                query: `
                                mutation($memberId: ID!, $projectId: ID!) {
                                Severity: Minor
                                Found in src/common/actions/queries/lockRetroSurveyForUser.js - About 1 hr to fix

                                  Function mapStateToProps has a Cognitive Complexity of 13 (exceeds 5 allowed). Consider refactoring.
                                  Open

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

                                  Function surveyBlueprintModel has 39 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                  export default function surveyBlueprintModel(thinky) {
                                  const {r, type: {string, date, array}} = thinky
                                   
                                  return {
                                  name: 'SurveyBlueprint',
                                  Severity: Minor
                                  Found in src/server/services/dataService/models/surveyBlueprint.js - About 1 hr to fix

                                    Function RetroSurveyForm has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                    export default function RetroSurveyForm(props) {
                                    const {
                                    surveyTitle,
                                    surveyShortTitle,
                                    playbookURL,
                                    Severity: Minor
                                    Found in src/common/components/RetroSurveyForm/index.jsx - About 1 hr to fix

                                      Function handleRender has 37 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                      export default function handleRender(req, res) {
                                      try {
                                      // we require() these rather than importing them because (in development)
                                      // we may have flushed the require cache (when files change), but if we
                                      // import them at the top, this module will still be holding references to
                                      Severity: Minor
                                      Found in src/server/render.jsx - About 1 hr to fix
                                        Severity
                                        Category
                                        Status
                                        Source
                                        Language