-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathlefthook.yml
67 lines (66 loc) · 1.8 KB
/
lefthook.yml
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# EXAMPLE USAGE:
#
# Refer for explanation to following link:
# https://github.com/evilmartians/lefthook/blob/master/docs/full_guide.md
#
pre-push:
parallel: false
follow: true
scripts:
"remind_i18next_typescript.rb":
runner: ruby
commands:
test-e2e:
tags: e2e backend frontend
run: yarn run ts-node utils/run_e2e.ts
# check-todos:
# tags: janitorial
# run: git grep --no-pager --color "TODO" HEAD
# test-frontend:
# run: yarn --cwd ./co2_client run test --all --watchAll=false --silent
# "check_if_new_expo_for_notifee.js":
# runner: node
# commands:
# gems-audit:
# tags: backend security
# run: bundle audit
# check-validates-timeliness:
# tags: backend
# run: ruby gitscripts/check_validates_timeliness.rb
# packages-audit:
# tags: frontend security
# run: yarn audit
#
pre-commit:
parallel: true
commands:
test-backend:
tags: backend
run: rspec ./spec
rubocop:
tags: backend
run: bundle exec rubocop --fail-level E
brakeman:
tags: security
run: |
bundle exec brakeman -w3 --no-progress --no-pager --skip-files node_modules/,/co2_client/,/co2_native_client/
# lint:
# tags: frontend
# run: npx eslint ./co2_client
# doctor:
# tags: backend
# run: bundle exec rake active_record_doctor
# maybe also --print_report? https://github.com/presidentbeef/brakeman/blob/ecba05cb50e453256ca7a1f6e60704f8ed0cfbe5/lib/brakeman.rb#L46
# eslint:
# glob: "*.{js,ts,jsx,tsx}"
# run: yarn eslint {staged_files}
# 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