Skip to content

Commit e6ee880

Browse files
committed
Re-add default git pre-commit hook
Related commit: b273849.
1 parent 0be0e2a commit e6ee880

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#! /bin/bash
2+
set -euxo pipefail
3+
4+
# yarn lint
5+
# yarn test
6+
# yarn test:all
7+
8+
# bundle exec rubocop
9+
# bundle exec rspec
10+
# bundle exec brakeman --run-all-checks --exit-on-warn --exit-on-error --rails7 --no-pager --quiet
11+
# bundle exec rails_best_practices . -c config/rails_best_practices.yml
12+
13+
# TODO: uncomment the above lines and remove the below line
14+
echo "⚠️ Edit or remove the .git/hooks/pre-commit file"

files/gitconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
[color]
2121
interactive = true
2222
[init]
23+
templatedir = ~/.dotfiles/files/git_template
2324
defaultBranch = main
2425
[credential]
2526
helper = osxkeychain

0 commit comments

Comments
 (0)