Created
January 13, 2023 18:52
-
-
Save packrat386/34612ac856d965419ac368018da91910 to your computer and use it in GitHub Desktop.
run rubocop on diff
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
#!/usr/bin/env bash | |
bundle exec rubocop --force-exclusion --only-recognized-file-types -A $(git diff --name-only $(git merge-base develop HEAD) | xargs -I _ bash -c 'if test -f _; then echo _; fi') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment