Skip to content

Commit c545002

Browse files
committed
chore: add lefthook pre-commit hook for cookstyle and rspec
1 parent eb5831e commit c545002

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

lefthook.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
pre-commit:
2+
parallel: true
3+
commands:
4+
cookstyle:
5+
glob: "*.rb"
6+
run: chef exec cookstyle --format simple {staged_files}
7+
rspec:
8+
glob: "*.rb"
9+
run: chef exec rspec --format progress

0 commit comments

Comments
 (0)