Skip to content

Commit

Permalink
[Fix rubocop#9328] Add co-author, simple documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
thearjunmdas committed Aug 22, 2021
1 parent 4a13649 commit a89c08b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
@@ -1 +1 @@
* [#9328](https://github.com/rubocop/rubocop/issues/9328): Recognize shareable_constant_value magic comment. ([@thearjunmdas][])
* [#9328](https://github.com/rubocop/rubocop/issues/9328): Recognize shareable_constant_value magic comment. ([@thearjunmdas][], [@caalberts][])
5 changes: 5 additions & 0 deletions lib/rubocop/cop/style/mutable_constant.rb
Expand Up @@ -14,6 +14,11 @@ module Style
# positives. Luckily, there is no harm in freezing an already
# frozen object.
#
# From Ruby 3.0, this cop honours the magic comment
# 'shareable_constant_value'. When this magic comment is set to any
# acceptable value other than none, it will suppress the offenses
# raised by this cop. It enforces frozen state.
#
# NOTE: Regexp and Range literals are frozen objects since Ruby 3.0.
#
# @example EnforcedStyle: literals (default)
Expand Down

0 comments on commit a89c08b

Please sign in to comment.