-
-
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
Co-authored-by: Yudai Takada <t.yudai92@gmail.com>
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.