Skip to content

Commit

Permalink
Change unfrozen constant values to be frozen
Browse files Browse the repository at this point in the history
  • Loading branch information
John Backus committed Oct 5, 2015
1 parent f2e1f98 commit 1f897fb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/yardstick/rules/api_tag.rb
Expand Up @@ -24,7 +24,7 @@ def valid?
# Checks if @api tag is a public, semipublic or private
#
class Inclusion < Rule
VALID_VALUES = %w[public semipublic private].freeze
VALID_VALUES = IceNine.deep_freeze(%w[public semipublic private])

self.description = 'The @api tag must be either public, semipublic or private'.freeze

Expand Down
2 changes: 1 addition & 1 deletion lib/yardstick/rules/summary.rb
Expand Up @@ -69,7 +69,7 @@ def valid?
# Checks that method summary length is exactly one line
#
class SingleLine < Rule
LINE_BREAK_CHARACTER = "\n"
LINE_BREAK_CHARACTER = "\n".freeze

self.description = 'The method summary should be a single line'.freeze

Expand Down

0 comments on commit 1f897fb

Please sign in to comment.