phlegx/redlics

View on GitHub
lib/redlics/time_frame.rb

Summary

Maintainability
A
3 hrs
Test Coverage

Avoid too many return statements within this method.
Open

          return 1.month.ago.beginning_of_month, 1.month.ago.end_of_month
Severity: Major
Found in lib/redlics/time_frame.rb - About 30 mins to fix

    Avoid too many return statements within this method.
    Open

              return Time.now.beginning_of_year, Time.now
    Severity: Major
    Found in lib/redlics/time_frame.rb - About 30 mins to fix

      Avoid too many return statements within this method.
      Open

                return 1.week.ago.beginning_of_week, 1.week.ago.end_of_week
      Severity: Major
      Found in lib/redlics/time_frame.rb - About 30 mins to fix

        Avoid too many return statements within this method.
        Open

                  return default(context), Time.now
        Severity: Major
        Found in lib/redlics/time_frame.rb - About 30 mins to fix

          Avoid too many return statements within this method.
          Open

                    return 1.year.ago.beginning_of_year, 1.year.ago.end_of_year
          Severity: Major
          Found in lib/redlics/time_frame.rb - About 30 mins to fix

            Avoid too many return statements within this method.
            Open

                      return Time.now.beginning_of_month, Time.now
            Severity: Major
            Found in lib/redlics/time_frame.rb - About 30 mins to fix

              There are no issues that match your filters.

              Category
              Status