]> git.openstreetmap.org Git - chef.git/commit
Freeze mutable objects assigned to constants
authorGuillaume Rischard <git@stereo.lu>
Fri, 6 Oct 2023 21:00:57 +0000 (17:00 -0400)
committerGitHub <noreply@github.com>
Fri, 6 Oct 2023 21:00:57 +0000 (17:00 -0400)
commit74471499e60ed3fd72356eafd63ebc8118e138d7
tree42cd228925cfb4ae6b92bea028f6fe348cfe6336
parent8ee7a7b1bedbd7772b663fcd9d5507c8cd8d578b
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
cookbooks/db/recipes/master.rb