We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0be0e2a commit e6ee880Copy full SHA for e6ee880
files/git_template/hooks/pre-commit
@@ -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
@@ -20,6 +20,7 @@
20
[color]
21
interactive = true
22
[init]
23
+ templatedir = ~/.dotfiles/files/git_template
24
defaultBranch = main
25
[credential]
26
helper = osxkeychain
0 commit comments