app/mailers/user_mailer.rb
Unnecessary utf-8 encoding comment. (https://github.com/bbatsov/ruby-style-guide#utf-8) Open
Open
# coding: utf-8
- Create a ticketCreate a ticket
- Exclude checks
Add an empty line after magic comments. (https://github.com/bbatsov/ruby-style-guide#separate-magic-comments-from-code) Open
Open
class UserMailer < ApplicationMailer
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
Checks for a newline after the final magic comment.
Example:
# good
# frozen_string_literal: true
# Some documentation for Person
class Person
# Some code
end
# bad
# frozen_string_literal: true
# Some documentation for Person
class Person
# Some code
end