lib/hello/version.rb
Add an empty line after magic comments. Open
Open
module Hello
- 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
Do not freeze immutable objects, as freezing them has no effect. Open
Open
VERSION = '0.5.0'.freeze
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
This cop check for uses of Object#freeze on immutable objects.
Example:
# bad
CONST = 1.freeze
# good
CONST = 1