glitch-soc/mastodon

View on GitHub

Showing 1,287 of 4,903 total issues

Avoid too many return statements within this method.
Open

    return @account if @account&.local? || gone_from_origin? || !webfinger_update_due?
Severity: Major
Found in app/services/resolve_account_service.rb - About 30 mins to fix

    Avoid too many return statements within this method.
    Open

          return nil if discoveries > DISCOVERIES_PER_REQUEST
    Severity: Major
    Found in app/services/activitypub/fetch_remote_status_service.rb - About 30 mins to fix

      Avoid too many return statements within this method.
      Open

          return if actor.nil? || actor.suspended?
      Severity: Major
      Found in app/services/activitypub/fetch_remote_status_service.rb - About 30 mins to fix

        Avoid too many return statements within this method.
        Open

            return :filter if check_for_blocks.any? { |target_account_id| crutches[:blocking][target_account_id] || crutches[:muting][target_account_id] }
        Severity: Major
        Found in app/lib/feed_manager.rb - About 30 mins to fix

          Avoid too many return statements within this method.
          Open

              return :filter if crutches[:blocked_by][status.account_id]
          Severity: Major
          Found in app/lib/feed_manager.rb - About 30 mins to fix

            Avoid too many return statements within this function.
            Open

                return state.setIn(
                  [action.payload.id, action.payload.locked ? 'requested' : 'following'],
                  false,
                );
            Severity: Major
            Found in app/javascript/flavours/glitch/reducers/relationships.ts - About 30 mins to fix

              Avoid too many return statements within this function.
              Open

                return [sourceNumber, DECIMAL_UNITS.ONE, 0];
              Severity: Major
              Found in app/javascript/flavours/glitch/utils/numbers.ts - About 30 mins to fix

                Avoid too many return statements within this function.
                Open

                  else return state;
                Severity: Major
                Found in app/javascript/flavours/glitch/reducers/accounts.ts - About 30 mins to fix

                  Avoid too many return statements within this function.
                  Open

                      return state.setIn([action.payload.id, 'following'], false);
                  Severity: Major
                  Found in app/javascript/flavours/glitch/reducers/relationships.ts - About 30 mins to fix

                    Avoid too many return statements within this function.
                    Open

                        return normalizeRelationship(state, action.payload.relationship);
                    Severity: Major
                    Found in app/javascript/flavours/glitch/reducers/relationships.ts - About 30 mins to fix

                      Avoid too many return statements within this function.
                      Open

                        else return state;
                      Severity: Major
                      Found in app/javascript/flavours/glitch/reducers/modal.ts - About 30 mins to fix

                        Avoid too many return statements within this function.
                        Open

                            return normalizeRelationships(state, action.payload.relationships);
                        Severity: Major
                        Found in app/javascript/flavours/glitch/reducers/relationships.ts - About 30 mins to fix

                          Avoid too many return statements within this function.
                          Open

                            else return state;
                          Severity: Major
                          Found in app/javascript/flavours/glitch/reducers/relationships.ts - About 30 mins to fix

                            Avoid too many return statements within this function.
                            Open

                                return setDomainBlocking(state, action.payload.accounts, false);
                            Severity: Major
                            Found in app/javascript/flavours/glitch/reducers/relationships.ts - About 30 mins to fix

                              Avoid too many return statements within this function.
                              Open

                                  return setDomainBlocking(state, action.payload.accounts, true);
                              Severity: Major
                              Found in app/javascript/flavours/glitch/reducers/relationships.ts - About 30 mins to fix

                                Avoid too many return statements within this function.
                                Open

                                    return state.setIn([action.payload.id, 'following'], true);
                                Severity: Major
                                Found in app/javascript/flavours/glitch/reducers/relationships.ts - About 30 mins to fix

                                  Avoid too many return statements within this function.
                                  Open

                                    return [sourceNumber, DECIMAL_UNITS.ONE, 0];
                                  Severity: Major
                                  Found in app/javascript/mastodon/utils/numbers.ts - About 30 mins to fix

                                    Avoid too many return statements within this function.
                                    Open

                                        return state.setIn(
                                          [action.payload.id, action.payload.locked ? 'requested' : 'following'],
                                          false,
                                        );
                                    Severity: Major
                                    Found in app/javascript/mastodon/reducers/relationships.ts - About 30 mins to fix

                                      Avoid too many return statements within this function.
                                      Open

                                          return normalizeRelationships(state, action.payload.relationships);
                                      Severity: Major
                                      Found in app/javascript/mastodon/reducers/relationships.ts - About 30 mins to fix

                                        Avoid too many return statements within this function.
                                        Open

                                            return setDomainBlocking(state, action.payload.accounts, true);
                                        Severity: Major
                                        Found in app/javascript/mastodon/reducers/relationships.ts - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language