-
-
Notifications
You must be signed in to change notification settings - Fork 93
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Add RuboCop RSpec support #138
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 tasks
pirj
added a commit
to pirj/test-prof
that referenced
this pull request
Nov 9, 2020
Previously, RuboCop RSpec failed to detect RSpec aliases. A number of cops were failing false offences, and some cops were unable to lint, as they were skipping locally defined RSpec aliases taking them for arbitrary blocks and method calls. See: - rubocop/rubocop-rspec#1077 - rubocop/rubocop-rspec#956 Sibling pull requests: - palkan/action_policy#138
2 tasks
pirj
added a commit
to pirj/test-prof
that referenced
this pull request
Nov 9, 2020
Previously, RuboCop RSpec failed to detect RSpec aliases. A number of cops were failing false offences, and some cops were unable to lint, as they were skipping locally defined RSpec aliases taking them for arbitrary blocks and method calls. See: - rubocop/rubocop-rspec#1077 - rubocop/rubocop-rspec#956 Sibling pull requests: - palkan/action_policy#138
pirj
added a commit
to pirj/test-prof
that referenced
this pull request
Nov 9, 2020
Previously, RuboCop RSpec failed to detect RSpec aliases. A number of cops were failing false offences, and some cops were unable to lint, as they were skipping locally defined RSpec aliases taking them for arbitrary blocks and method calls. See: - rubocop/rubocop-rspec#1077 - rubocop/rubocop-rspec#956 Sibling pull requests: - palkan/action_policy#138
This was referenced Nov 9, 2020
palkan
requested changes
Nov 17, 2020
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.
Awesome! Thanks!
Just one request: let's move the config file into the config/rubocop-rspec.yml
or anything else, just not the project's root folder.
Sounds good, will move in both PRs 👍 |
Previously, RuboCop RSpec failed to detect RSpec aliases. A number of cops were failing false offences, and some cops were unable to lint, as they were skipping locally defined RSpec aliases taking them for arbitrary blocks and method calls. See: - rubocop/rubocop-rspec#1077 - rubocop/rubocop-rspec#956 - palkan#103
d818314
to
fad3b5b
Compare
pirj
added a commit
to pirj/test-prof
that referenced
this pull request
Nov 17, 2020
Previously, RuboCop RSpec failed to detect RSpec aliases. A number of cops were failing false offences, and some cops were unable to lint, as they were skipping locally defined RSpec aliases taking them for arbitrary blocks and method calls. See: - rubocop/rubocop-rspec#1077 - rubocop/rubocop-rspec#956 Sibling pull requests: - palkan/action_policy#138
Moved the config and tested again, works. |
Thanks! |
pirj
added a commit
to pirj/test-prof
that referenced
this pull request
Nov 18, 2020
Previously, RuboCop RSpec failed to detect RSpec aliases. A number of cops were failing false offences, and some cops were unable to lint, as they were skipping locally defined RSpec aliases taking them for arbitrary blocks and method calls. See: - rubocop/rubocop-rspec#1077 - rubocop/rubocop-rspec#956 Sibling pull requests: - palkan/action_policy#138
palkan
pushed a commit
to test-prof/test-prof
that referenced
this pull request
Nov 18, 2020
Previously, RuboCop RSpec failed to detect RSpec aliases. A number of cops were failing false offences, and some cops were unable to lint, as they were skipping locally defined RSpec aliases taking them for arbitrary blocks and method calls. See: - rubocop/rubocop-rspec#1077 - rubocop/rubocop-rspec#956 Sibling pull requests: - palkan/action_policy#138
This was referenced Oct 3, 2021
6 tasks
3 tasks
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What is the purpose of this pull request?
Previously, RuboCop RSpec failed to detect RSpec aliases. A number of cops were failing false offences, and some cops were unable to lint, as they were skipping locally defined RSpec aliases taking them for arbitrary blocks and method calls.
See:
Example project:
Gemfile
:.rubocop.yml
:spec/policies/a_policy_spec.rb
:Before
After
What changes did you make? (overview)
Is there anything you'd like reviewers to focus on?
I don't have any real projects using Action Policy handy. Please test this change on a real project.
Should I through in some spec that uses
describe_rule
/succeed
/... aliases so thatLint Ruby
build job checked them withrubocop-rspec
and made sure there are no offences?PR checklist: