app/models/concerns/verification.rb

Summary

Maintainability
A
0 mins
Test Coverage

Line is too long. [193/100] (https://github.com/bbatsov/ruby-style-guide#80-character-limits)
Open

    scope :level_two_verified, -> { where("users.level_two_verified_at IS NOT NULL OR (users.confirmed_phone IS NOT NULL AND users.residence_verified_at IS NOT NULL) AND verified_at IS NULL") }
Severity: Minor
Found in app/models/concerns/verification.rb by rubocop

Line is too long. [211/100] (https://github.com/bbatsov/ruby-style-guide#80-character-limits)
Open

    scope :level_two_or_three_verified, -> { where("users.verified_at IS NOT NULL OR users.level_two_verified_at IS NOT NULL OR (users.confirmed_phone IS NOT NULL AND users.residence_verified_at IS NOT NULL)") }
Severity: Minor
Found in app/models/concerns/verification.rb by rubocop

Line is too long. [181/100] (https://github.com/bbatsov/ruby-style-guide#80-character-limits)
Open

    scope :unverified, -> { where("users.verified_at IS NULL AND (users.level_two_verified_at IS NULL AND (users.residence_verified_at IS NULL OR users.confirmed_phone IS NULL))") }
Severity: Minor
Found in app/models/concerns/verification.rb by rubocop

Line is too long. [248/100] (https://github.com/bbatsov/ruby-style-guide#80-character-limits)
Open

    scope :incomplete_verification, -> { where("(users.residence_verified_at IS NULL AND users.failed_census_calls_count > ?) OR (users.residence_verified_at IS NOT NULL AND (users.unconfirmed_phone IS NULL OR users.confirmed_phone IS NULL))", 0) }
Severity: Minor
Found in app/models/concerns/verification.rb by rubocop

There are no issues that match your filters.

Category
Status