-
-
Notifications
You must be signed in to change notification settings - Fork 285
Add a new cop RSpec/Output
#2129
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
base: master
Are you sure you want to change the base?
Add a new cop RSpec/Output
#2129
Conversation
|
|
|
I did some grepping around the |
|
This is succeeding for me locally with no file changes. I wonder why. |
This is based on the `Rails/Output` cop with three minor changes. 1. Autocorrection is removed as the expectation is that the print statement will be removed by the user. 2. The message is changed. 3. The cop runs only on spec files.
b205673 to
9152c2a
Compare
|
|
||
| module RuboCop | ||
| module Cop | ||
| # NOTE: This is the same as the `Rails/Output` cop with minor changes. |
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.
Could you please delete this comment? It will diverge significantly from the actual Rails/Output cop in the future.
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.
| # NOTE: This is the same as the `Rails/Output` cop with minor changes. | |
| # NOTE: Originally based on the `Rails/Output` cop. |
Maybe something like this. It still shows the history but doesn't indicate that the the changes will stay minor going forward.
Co-authored-by: Yudai Takada <[email protected]>
Closes #2128
This is based on the
Rails/Outputcop with three minor changes.Before submitting the PR make sure the following are checked:
master(if not - rebase it).CHANGELOG.mdif the new code introduces user-observable changes.bundle exec rake) passes (be sure to run this locally, since it may produce updated documentation that you will need to commit).If you have created a new cop:
config/default.yml.Enabled: pendinginconfig/default.yml.Enabled: truein.rubocop.yml.VersionAdded: "<<next>>"indefault/config.yml.If you have modified an existing cop's configuration options:
VersionChanged: "<<next>>"inconfig/default.yml.