discourse/discourse

View on GitHub

Showing 1,624 of 1,936 total issues

Avoid too many return statements within this method.
Open

    return :auto_silence_regex if matches_auto_silence_regex?(manager)
Severity: Major
Found in lib/new_post_manager.rb - About 30 mins to fix

    Avoid too many return statements within this method.
    Open

        return true if (
    Severity: Major
    Found in lib/guardian/topic_guardian.rb - About 30 mins to fix

      Avoid too many return statements within this method.
      Open

          return true if (
      Severity: Major
      Found in lib/guardian/topic_guardian.rb - About 30 mins to fix

        Avoid too many return statements within this method.
        Open

              return false if is_flag &&
        Severity: Major
        Found in lib/guardian/post_guardian.rb - About 30 mins to fix

          Avoid too many return statements within this method.
          Open

              return false if topic.archived
          Severity: Major
          Found in lib/guardian/topic_guardian.rb - About 30 mins to fix

            Avoid too many return statements within this method.
            Open

                  return !post.edit_time_limit_expired?(@user)
            Severity: Major
            Found in lib/guardian/post_guardian.rb - About 30 mins to fix

              Avoid too many return statements within this method.
              Open

                  return :category if post_needs_approval_in_its_category?(manager)
              Severity: Major
              Found in lib/new_post_manager.rb - About 30 mins to fix

                Avoid too many return statements within this method.
                Open

                    return true if is_admin?
                Severity: Major
                Found in lib/guardian/topic_guardian.rb - About 30 mins to fix

                  Avoid too many return statements within this method.
                  Open

                          return false
                  Severity: Major
                  Found in lib/guardian/post_guardian.rb - About 30 mins to fix

                    Avoid too many return statements within this method.
                    Open

                            return true
                    Severity: Major
                    Found in lib/guardian/post_guardian.rb - About 30 mins to fix

                      Avoid too many return statements within this method.
                      Open

                            return Time.zone.now.beginning_of_week(str.downcase.to_sym)
                      Severity: Major
                      Found in lib/search.rb - About 30 mins to fix

                        Avoid too many return statements within this method.
                        Open

                            return data if path =~ /\.hbs/
                        Severity: Major
                        Found in lib/discourse_iife.rb - About 30 mins to fix

                          Avoid too many return statements within this method.
                          Open

                              return data if path =~ /\.shbrs/
                          Severity: Major
                          Found in lib/discourse_iife.rb - About 30 mins to fix

                            Avoid too many return statements within this method.
                            Open

                                return data if path =~ /discourse-loader/
                            Severity: Major
                            Found in lib/discourse_iife.rb - About 30 mins to fix

                              Avoid too many return statements within this method.
                              Open

                                  return data if (path =~ /\/translations/)
                              Severity: Major
                              Found in lib/discourse_iife.rb - About 30 mins to fix

                                Avoid too many return statements within this method.
                                Open

                                    return data if path =~ /\.handlebars/
                                Severity: Major
                                Found in lib/discourse_iife.rb - About 30 mins to fix

                                  Avoid too many return statements within this method.
                                  Open

                                      return data if path =~ /\.hbrs/
                                  Severity: Major
                                  Found in lib/discourse_iife.rb - About 30 mins to fix

                                    Avoid too many return statements within this method.
                                    Open

                                              return false
                                    Severity: Major
                                    Found in lib/discourse_tagging.rb - About 30 mins to fix

                                      Avoid too many return statements within this method.
                                      Open

                                          return false if stat.likes_given < SiteSetting.tl2_requires_likes_given
                                      Severity: Major
                                      Found in lib/promotion.rb - About 30 mins to fix

                                        Avoid too many return statements within this method.
                                        Open

                                            return false if stat.topic_reply_count < SiteSetting.tl2_requires_topic_reply_count
                                        Severity: Major
                                        Found in lib/promotion.rb - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language