-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathlefthook.yml
More file actions
32 lines (32 loc) · 766 Bytes
/
lefthook.yml
File metadata and controls
32 lines (32 loc) · 766 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# EXAMPLE USAGE
# Refer for explanation to following link:
# https://github.com/evilmartians/lefthook/blob/master/docs/full_guide.md
#
pre-push:
commands:
rake-test-task:
tags: regression test
run: bundle exec rake
# gems-audit:
# tags: backend security
# run: bundle audit
#
pre-commit:
parallel: true
commands:
# eslint:
# glob: "*.{js,ts}"
# run: yarn eslint {staged_files}
rubocop:
tags: backend style
run: bundle exec rubocop --auto-correct --force-exclusion {staged_files} && git add
# govet:
# tags: backend style
# files: git ls-files -m
# glob: "*.go"
# run: go vet {files}
# scripts:
# "hello.js":
# runner: node
# "any.go":
# runner: go run