marcelobarreto/postgrest-rb

View on GitHub
lib/postgrest/version.rb

Summary

Maintainability
A
0 mins
Test Coverage

Freeze mutable objects assigned to constants.
Open

  VERSION = '0.2.0'
Severity: Minor
Found in lib/postgrest/version.rb by rubocop

This cop checks whether some constant value isn't a mutable literal (e.g. array or hash).

Example:

# bad
CONST = [1, 2, 3]

# good
CONST = [1, 2, 3].freeze

# good
CONST = <<~TESTING.freeze
This is a heredoc
TESTING

There are no issues that match your filters.

Category
Status