-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlefthook.yml
More file actions
30 lines (26 loc) · 826 Bytes
/
lefthook.yml
File metadata and controls
30 lines (26 loc) · 826 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
---
pre-push:
parallel: true
commands:
rubocop:
glob: "**/*.rb"
run: docker compose exec -it blackpearl /bin/sh -c "bundle exec rubocop"
description: "Run Rubocop"
brakeman:
glob: "**/*.rb"
run: docker compose exec -it blackpearl /bin/sh -c "bundle exec brakeman --no-page"
description: "Run Brakeman"
pre-commit:
commands:
rubocop:
glob: "**/*.rb"
run: docker compose exec -it blackpearl /bin/sh -c "bundle exec rubocop"
description: "Run Rubocop"
brakeman:
glob: "**/*.rb"
run: docker compose exec -it blackpearl /bin/sh -c "bundle exec brakeman --no-page"
description: "Run Brakeman"
rspec:
glob: "**/*.rb"
run: docker compose exec -it blackpearl /bin/sh -c "bundle exec rspec"
description: "Run RSpec"