-
-
Notifications
You must be signed in to change notification settings - Fork 276
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 new RSpec/RedundantPredicateMatcher
cop
#1694
Conversation
0a8e830
to
83c8388
Compare
83c8388
to
497cfb7
Compare
RSpec/BuiltinMatcher
copRSpec/RedundantPredicateMatcher
cop
381ed44
to
43a0666
Compare
43a0666
to
c0054a3
Compare
ea4c936
to
ceea042
Compare
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.
Fantastic! Thank you!
Broke on: expect(json[:submissions]).to be_all do |ss|
ss.key?("submission_history") && ss["submission_history"].empty?
end with:
Wondering why |
Otherwise:
🎉 False positive?
module Gitlab
class ZoomLinkExtractor
# ...
def match?
ZOOM_REGEXP.match?(@text)
end Notes for future cops: expect(json.count).to be_equal 1
expect(json[0]["group_submissions"]).to be_equal nil
expect(effective_paths.size).to be_eql(1) |
f619d04
to
398ce54
Compare
Sorry for the delay. I updated this PR with the following corrections: |
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.
Thank you!
398ce54
to
75f3975
Compare
Fix: #1689
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).If you have created a new cop:
config/default.yml
.Enabled: pending
inconfig/default.yml
.Enabled: true
in.rubocop.yml
.VersionAdded: "<<next>>"
indefault/config.yml
.