Skip to content
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 RSpec Hook to PreCommit, Add Applicable files if set #813

Closed
wants to merge 4 commits into from

Conversation

quorauk
Copy link
Contributor

@quorauk quorauk commented Aug 25, 2023

We recently added this functionality to one of our own Repos and thought we should share.

This change requires the 'include' parameter to be set before it uses the 'applicable_files' function. Is this the correct way to do this? Should we create a new parameter for this behaviour?

Referenced Issue: #703

quorauk and others added 4 commits August 25, 2023 11:43
* Create shared r_spec hook from previous hook in pre_push
* Create hook in pre_commit including shared hook
* Update hook in pre_push to use shared hook
* If 'include' is set on Rspec pass those files to be run by rspec
* Check performed to maintain backwards compatibility
@sds
Copy link
Owner

sds commented Feb 25, 2024

Thanks for the contribution! Sorry for the delay in merging. Fixed RuboCop errors and merged in #842.

@sds sds closed this Feb 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants