Skip to content

Added overcommit and loosened Rubocop for tests#435

Merged
woodruffw merged 4 commits intoHomebrew:masterfrom
rickmark:rickmark/overcommit
Jan 18, 2022
Merged

Added overcommit and loosened Rubocop for tests#435
woodruffw merged 4 commits intoHomebrew:masterfrom
rickmark:rickmark/overcommit

Conversation

@rickmark
Copy link
Contributor

This adds overcommit to perform local Rubocop before accepting a git commit reducing the amount of PR thrash

It also loosens rules in the test directory to reflect the accepted conventions

Copy link
Contributor Author

@rickmark rickmark left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left some details to shorten the loop

Missing element is setup for overcommit which should be added to README

@woodruffw woodruffw self-requested a review January 16, 2022 03:41
@rickmark
Copy link
Contributor Author

This should override any simplecov as the updates are not to the covered ruby lines

@woodruffw
Copy link
Member

Missing element is setup for overcommit which should be added to README

Mind doing this as part of this PR as well? Otherwise LGTM!

@rickmark
Copy link
Contributor Author

Missing element is setup for overcommit which should be added to README

Mind doing this as part of this PR as well? Otherwise LGTM!

Will do, copying from https://github.com/hack-different/apple-knowledge/blob/main/README.md basically

@woodruffw
Copy link
Member

N.B.: We probably also want the CI rules updated to reflect that the development Gemfile group shouldn't be installed, i.e. something like bundle install <current args> --without development.

@woodruffw
Copy link
Member

Okay, LGTM! I'll take care of the CI in a follow-up.

@woodruffw woodruffw merged commit b955d08 into Homebrew:master Jan 18, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 18, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants