BathHacked/energy-sparks

View on GitHub
app/models/user.rb

Summary

Maintainability
A
3 hrs
Test Coverage
A
94%

Class User has 24 methods (exceeds 20 allowed). Consider refactoring.
Open

class User < ApplicationRecord
  encrypts :pupil_password

  belongs_to :school, optional: true
  belongs_to :staff_role, optional: true
Severity: Minor
Found in app/models/user.rb - About 2 hrs to fix

    Method admin_user_export_csv has 28 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      def self.admin_user_export_csv
        CSV.generate do |csv|
          csv << [
            'School Group',
            'School',
    Severity: Minor
    Found in app/models/user.rb - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status