-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change Style/RedundantFreeze
message
#3761
Change Style/RedundantFreeze
message
#3761
Conversation
@@ -14,7 +14,7 @@ module Style | |||
class RedundantFreeze < Cop | |||
include FrozenStringLiteral | |||
|
|||
MSG = 'Freezing immutable objects is pointless.'.freeze | |||
MSG = "Do not freeze immutable objects.".freeze |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about:
Freezing immutable objects has no effect.
That explains the why as well as giving the instruction.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Or "Do not freeze immutable objects, as freezing them has no effect.".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👌 for making this less aggressive.
2759415
to
1acdb86
Compare
@bbatsov Message updated. |
You've broken the build by changing the style of the string quotes. You'll also need to rebase. |
1acdb86
to
da7d5d8
Compare
The build is still failing. |
da7d5d8
to
990ad58
Compare
990ad58
to
3627cf3
Compare
This commit changes the message for
Style/RedundantFreeze
. The new message is less aggressive and is more uniform with other messages in the code base, likeLint/HandleExceptions
.Before submitting the PR make sure the following are checked:
[Fix #issue-number]
(if the related issue exists).master
(if not - rebase it).and description in grammatically correct, complete sentences.
rake generate_cops_documentation
(required only when you've added a new cop or changed the configuration/documentation of an existing cop).