hello-gem/hello

View on GitHub
lib/hello/version.rb

Summary

Maintainability
A
0 mins
Test Coverage

Add an empty line after magic comments.
Open

module Hello
Severity: Minor
Found in lib/hello/version.rb by rubocop

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

  VERSION = '0.5.0'.freeze
Severity: Minor
Found in lib/hello/version.rb by rubocop

This cop check for uses of Object#freeze on immutable objects.

Example:

# bad
CONST = 1.freeze

# good
CONST = 1

There are no issues that match your filters.

Category
Status