-
-
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
Fix .rubocop_todo.yml #1263
Fix .rubocop_todo.yml #1263
Conversation
Max: 106 | ||
|
||
RSpec/ExampleLength: | ||
Exclude: |
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.
Doesn't seem to cause any trouble anymore
@@ -129,17 +128,13 @@ def message(offense) | |||
end | |||
|
|||
def scope_change?(node) | |||
scope_changing_syntax?(node) || |
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.
Styling
@@ -152,6 +147,7 @@ def offensive?(node) | |||
|
|||
def offensive_described_class?(node) | |||
return unless node.const_type? | |||
|
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.
Styling. I found it hard to understand what guard statement this comment relates to.
# rubocop:disable InternalAffairs/NodeDestructuring | ||
namespace, name = *node | ||
# rubocop:enable InternalAffairs/NodeDestructuring | ||
namespace, name = *node # rubocop:disable InternalAffairs/NodeDestructuring |
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.
Styling.
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 had completely forgotten about #982. I still think it makes sense to extract the logic instead of just “inline methods and remove line breaks” as this PR seems to do. Or to follow @Darhazer’s advice and look towards rubocop-ast (and perhaps move some logic from our repository to their repository).
Makes total sense. Especially since the cop is on alerting 100% usage of allowed lines. I can handle this refactoring separately in #982. |
4cdd2b2
to
648e5ff
Compare
Take a shortcut compared to #982
My apologies it took me nearly two years 😄
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).