-
-
Notifications
You must be signed in to change notification settings - Fork 277
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
Add style guide references #1225
Conversation
29d7fc6
to
45359c3
Compare
45359c3
to
0e81581
Compare
0e81581
to
a26e98f
Compare
config/default.yml
Outdated
|
||
RSpec/AnyInstance: | ||
Description: Check that instances are not being stubbed globally. | ||
Enabled: true | ||
VersionAdded: '1.4' | ||
StyleGuide: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/AnyInstance | ||
StyleGuide: "#any_instance_of" |
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.
I could only find 23 cops that enforce style guide guidelines.
Green 🍏 |
@bquorning @Darhazer WDYT? |
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.
Fine with me. @Darhazer ?
a26e98f
to
7b4fcfe
Compare
@@ -104,6 +104,7 @@ end | |||
|
|||
=== References | |||
|
|||
* https://rubystyle.guide#any_instance_of |
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.
Those are generated with the wrong domain
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.
I see other extensions are not using short links: https://github.com/rubocop/rubocop-rails/blob/0a902551d34f192ea3b24d7bdbbc90349d1eb9ef/config/default.yml#L63. Let me fix it real quick.
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.
Fixed, thanks for noticing 👍
bf4ebd5
to
f51d12c
Compare
f51d12c
to
0e7beb6
Compare
partially addressesfixes #1101. I believe #1101 raised the bar too high, and this PR is sufficient to a desired state.☣️⚠️ This will affect the list of cops that RuboCop will run with
--only-guide-cops
option.Before submitting the PR make sure the following are checked:
master
(if not - rebase it).CHANGELOG.md
if 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).