You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We recently enabled PendingWithoutReason but it appears to miss usages of xcontext or xit inside certain blocks, i.e.:
RSpec.describeSomeClassdoxcontext'this is a violation'do# ...endshared_examples'description here'doxcontext'this is not a violation'do# ...endend# helper block from papertrail gemwith_versioningdoxit'this is not a violation either'do# ...endendend
Thanks for reporting.
Regarding shared groups, we miss a check of the parent here.
Speaking of third-party helpers, see this doc on how third-party gems can augment our RSpec DSL conf, and this doc on how to configure it for your project.
Would you like to send a PR to fix the shared example false negative?
Thanks for reporting. Regarding shared groups, we miss a check of the parent here.
Speaking of third-party helpers, see this doc on how third-party gems can augment our RSpec DSL conf, and this doc on how to configure it for your project.
Would you like to send a PR to fix the shared example false negative?
Thanks for the quick reply @pirj! I've submitted #1757 to fix the shared example false negative, and I've confirmed that this additional YML config makes that same fix work for the Papertrail gem's with_versioning helper:
We recently enabled
PendingWithoutReason
but it appears to miss usages ofxcontext
orxit
inside certain blocks, i.e.:The output of
rubocop -V
is below:The text was updated successfully, but these errors were encountered: