-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlefthook.yml
30 lines (26 loc) · 839 Bytes
/
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
---
# EXAMPLE USAGE
# Refer for explanation to following link:
# https://github.com/evilmartians/lefthook/blob/master/docs/full_guide.md
#
# ⚡ Install go get github.com/evilmartians/lefthook
# ⚡ Use install: go install github.com/evilmartians/lefthook@master
# This will run the key security checks that will have redacted secrets on output
extends:
- lefthook.secrets.yml
- lefthook.semver.yml
pre-commit:
parallel: true
tags: go lint
commands:
markdownlint:
tags: docker
name: markdownlint-autofix
glob: '**/*/*.md'
run: docker run -i --rm -v ${PWD}:/work tmknom/markdownlint:latest --fix {files}
shellcheck:
tags: gotool
name: shellcheck
files: git ls-files -m
glob: '*.sh'
run: docker run --rm -v ${PWD}:/mnt koalaman/shellcheck:stable --format=json {files}