forked from keep-network/keep-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
41 lines (41 loc) · 1.46 KB
/
.pre-commit-config.yaml
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
repos:
- repo: https://github.com/keep-network/pre-commit-golang.git
rev: 4cc73f21101f9da1208719b02bbbe0a4c491497e
hooks:
- id: go-imports
- id: go-vet
- id: go-lint
- repo: https://github.com/keep-network/pre-commit-hooks.git
rev: 63e729f
hooks:
- id: check-added-large-files
- repo: local
hooks:
- id: solium
name: Solidity linter
language: node
entry: solium
files: '\.sol$'
args:
- --dir=solidity/contracts/
- --config=solidity/.soliumrc.json
additional_dependencies:
- id: lint-js
name: 'lint solidity js'
entry: /usr/bin/env bash -c "cd solidity && npm run lint:js"
files: 'solidity\/.*\/\.js$'
language: script
description: "Checks JS code according to the package's linter configuration"
- id: lint-dashboard-js
name: 'lint dashboard js'
entry: /usr/bin/env bash -c "cd solidity/dashboard && npm run js:lint"
files: 'solidity\/dashboard\/.*\/\.js$'
language: script
description: "Checks JS code according to the package's linter configuration"
- id: lint-faucet-js
name: 'lint faucet js'
entry: /usr/bin/env bash -c "cd infrastructure/gcp/keep-test/google-functions/keep-faucet && npm run lint:js"
files: 'infrastructure\/gcp\/keep-test\/google-functions\/keep-faucet\/.*\.js$'
language: script
description: "Checks JS code according to the package's linter configuration"