app/mailers/mailer.rb

Summary

Maintainability
A
35 mins
Test Coverage

Method email_verification has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

  def email_verification(user, recipient, token, document_type, document_number)
Severity: Minor
Found in app/mailers/mailer.rb - About 35 mins to fix

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

          mail(to: @email_to, subject: t('mailers.budget_investment_unfeasible.subject', code: @investment.code))
    Severity: Minor
    Found in app/mailers/mailer.rb by rubocop

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

          mail(to: @email_to, subject: t('mailers.budget_investment_unselected.subject', code: @investment.code))
    Severity: Minor
    Found in app/mailers/mailer.rb by rubocop

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

          mail(to: @email_to, subject: t('mailers.unfeasible_spending_proposal.subject', code: @spending_proposal.code))
    Severity: Minor
    Found in app/mailers/mailer.rb by rubocop

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

          mail(to: @email_to, subject: t('mailers.budget_investment_selected.subject', code: @investment.code))
    Severity: Minor
    Found in app/mailers/mailer.rb by rubocop

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

          mail(to: @email_to, subject: t('mailers.proposal_notification_digest.title', org_name: Setting['org_name']))
    Severity: Minor
    Found in app/mailers/mailer.rb by rubocop

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

          mail(to: @email_to, subject: t('mailers.reply.subject')) if @commentable.present? && @recipient.present?
    Severity: Minor
    Found in app/mailers/mailer.rb by rubocop

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

          subject = t('mailers.comment.subject', commentable: t("activerecord.models.#{@commentable.class.name.underscore}", count: 1).downcase)
    Severity: Minor
    Found in app/mailers/mailer.rb by rubocop

    There are no issues that match your filters.

    Category
    Status