Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Freeze mutable objects assigned to constants
Fixes cookstyle complaint: Calling `DidYouMean::SPELL_CHECKERS.merge!(error_name => spell_checker)' has been deprecated. Please call `DidYouMean.correct_error(error_name, spell_checker)' instead. Inspecting 597 files ...............................................................C..................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................... Offenses: cookbooks/db/recipes/master.rb:87:22: C: [Correctable] Style/MutableConstant: Freeze mutable objects assigned to constants. CGIMAP_PERMISSIONS = { ... ^ cookbooks/db/recipes/master.rb:122:26: C: [Correctable] Style/MutableConstant: Freeze mutable objects assigned to constants. PLANETDUMP_PERMISSIONS = { ... ^ cookbooks/db/recipes/master.rb:128:26: C: [Correctable] Style/MutableConstant: Freeze mutable objects assigned to constants. PLANETDIFF_PERMISSIONS = { ... ^ 597 files inspected, 3 offenses detected, 3 offenses auto-correctable
- Loading branch information