dkarter/capybara_error_intel

View on GitHub

Showing 1 of 1 total issue

Freeze mutable objects assigned to constants.
Open

  VERSION = '2.0.0'
Severity: Minor
Found in lib/capybara_error_intel/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
Severity
Category
Status
Source
Language