oneclickorgs/one-click-orgs

View on GitHub
app/controllers/members_controller.rb

Summary

Maintainability
A
2 hrs
Test Coverage

Method index has 30 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  def index
    case co
    when Association
      @page_title = "Members"
      @members = co.members.active
Severity: Minor
Found in app/controllers/members_controller.rb - About 1 hr to fix

    Method generate_csv has 27 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      def generate_csv
        case co
        when Association
          # Only Associations use the 'inducted_at' field.
          headers = ["First name", "Last name", "Email", "Date joined", "Time of last login"]
    Severity: Minor
    Found in app/controllers/members_controller.rb - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status