Takumon/mean-blog

View on GitHub

Showing 100 of 340 total issues

Avoid too many return statements within this function.
Open

      return adapter.removeOne(action.payload.article._id, {
        ...state,
        loading: false
      });
Severity: Major
Found in src/app/state/article.reducer.ts - About 30 mins to fix

    Avoid too many return statements within this function.
    Open

      return Date.parse(dateFrom) <= Date.parse(dateTo);
    Severity: Major
    Found in server/routes/search-condition.ts - About 30 mins to fix

      Avoid too many return statements within this function.
      Open

            return adapter.removeMany(action.payload.ids, state);
      Severity: Major
      Found in src/app/drafts/state/draft.reducer.ts - About 30 mins to fix

        Avoid too many return statements within this function.
        Open

              return Object.assign({}, {...state });
        Severity: Major
        Found in src/app/state/article.reducer.ts - About 30 mins to fix

          Avoid too many return statements within this function.
          Open

                return Object.assign({}, {...state, loading: true});
          Severity: Major
          Found in src/app/state/article.reducer.ts - About 30 mins to fix

            Avoid too many return statements within this function.
            Open

                  return Object.assign({}, {...state, loadingVote: false} );
            Severity: Major
            Found in src/app/state/article.reducer.ts - About 30 mins to fix

              Avoid too many return statements within this function.
              Open

                    return adapter.updateMany(action.payload.drafts, state);
              Severity: Major
              Found in src/app/drafts/state/draft.reducer.ts - About 30 mins to fix

                Avoid too many return statements within this function.
                Open

                      return Object.assign({}, {...state, loading: false} );
                Severity: Major
                Found in src/app/state/article.reducer.ts - About 30 mins to fix

                  Avoid too many return statements within this function.
                  Open

                        return {
                          dateFrom: lastMonthStart.toDate(),
                          dateTo  : lastMonthEnd.toDate()
                        };
                  Severity: Major
                  Found in src/app/shared/enum/date-range-pattern.enum.ts - About 30 mins to fix

                    Avoid too many return statements within this function.
                    Open

                          return adapter.updateOne({
                            id: action.payload._idOfArticle,
                            changes: {
                              vote: action.payload.vote
                            }
                    Severity: Major
                    Found in src/app/state/article.reducer.ts - About 30 mins to fix

                      Avoid too many return statements within this function.
                      Open

                            return d.getUTCHours() + '時間前';
                      Severity: Major
                      Found in src/app/shared/pipes/fromnow.pipe.ts - About 30 mins to fix

                        Avoid too many return statements within this function.
                        Open

                              return Object.assign({}, {
                                ...state,
                                article: action.payload.article,
                                loadingArticle: false,
                              });
                        Severity: Major
                        Found in src/app/state/article.reducer.ts - About 30 mins to fix

                          Avoid too many return statements within this function.
                          Open

                                return adapter.removeMany(action.payload.ids, state);
                          Severity: Major
                          Found in src/app/state/article.reducer.ts - About 30 mins to fix

                            Avoid too many return statements within this function.
                            Open

                                  return state;
                            Severity: Major
                            Found in src/app/drafts/state/draft.reducer.ts - About 30 mins to fix

                              Avoid too many return statements within this function.
                              Open

                                    return Object.assign({}, {...state, loading: false} );
                              Severity: Major
                              Found in src/app/state/article.reducer.ts - About 30 mins to fix

                                Avoid too many return statements within this function.
                                Open

                                      return Object.assign({}, {...state, loading: true });
                                Severity: Major
                                Found in src/app/state/article.reducer.ts - About 30 mins to fix

                                  Avoid too many return statements within this function.
                                  Open

                                        return d.getUTCMinutes() + '分前';
                                  Severity: Major
                                  Found in src/app/shared/pipes/fromnow.pipe.ts - About 30 mins to fix

                                    Avoid too many return statements within this function.
                                    Open

                                          return Object.assign({}, {...state, loading: true} );
                                    Severity: Major
                                    Found in src/app/drafts/state/draft.reducer.ts - About 30 mins to fix

                                      Avoid too many return statements within this function.
                                      Open

                                            return Object.assign({}, {...state, loading: false} );
                                      Severity: Major
                                      Found in src/app/drafts/state/draft.reducer.ts - About 30 mins to fix

                                        Avoid too many return statements within this function.
                                        Open

                                              return adapter.updateOne({
                                                id: action.payload._idOfArticle,
                                                changes: {
                                                  vote: action.payload.vote
                                                }
                                        Severity: Major
                                        Found in src/app/state/article.reducer.ts - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language