Repository navigation
Expand file tree
/
Copy pathprek.toml
More file actions
88 lines (80 loc) · 2.48 KB
/
Copy pathprek.toml
File metadata and controls
88 lines (80 loc) · 2.48 KB
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
# meta
[[repos]]
# https://prek.j178.dev/reference/configuration/#repo-meta
# https://pre-commit.com/#meta-hooks
repo = "meta"
hooks = [
{ id = "check-useless-excludes", name = "meta: check-useless-excludes" },
]
# builtin
[[repos]]
# https://prek.j178.dev/reference/built-in-hooks/
repo = "builtin"
hooks = [
# Entries order (ids) based on:
# https://prek.j178.dev/reference/built-in-hooks/
# Hook option order based on:
# https://prek.j178.dev/reference/configuration/#common-hook-options
{ id = "trailing-whitespace", name = "builtin: trailing-whitespace" },
{ id = "check-added-large-files", name = "builtin: check-added-large-files" },
{ id = "check-case-conflict", name = "builtin: check-case-conflict" },
{
id = "check-illegal-windows-names",
name = "builtin: check-illegal-windows-names",
},
{ id = "end-of-file-fixer", name = "builtin: end-of-file-fixer" },
{ id = "fix-byte-order-marker", name = "builtin: fix-byte-order-marker" },
{ id = "forbid-new-submodules", name = "builtin: forbid-new-submodules" },
{ id = "check-toml", name = "builtin: check-toml" },
{ id = "check-yaml", name = "builtin: check-yaml" },
{
id = "deny-filename-pattern",
name = "builtin: deny-filename-pattern (spaces)",
args = [ "\\s" ],
},
{ id = "check-symlinks", name = "builtin: check-symlinks" },
{ id = "check-merge-conflict", name = "builtin: check-merge-conflict" },
{
id = "check-executables-have-shebangs",
name = "builtin: check-executables-have-shebangs"
},
]
# hadolint (Dockerfiles)
# https://github.com/hadolint/hadolint
[[repos]]
repo = "local"
hooks = [
# based on:
# https://github.com/hadolint/hadolint/blob/master/.pre-commit-hooks.yaml
# Hook option order based on:
# https://prek.j178.dev/reference/configuration/#common-hook-options
{
id = "hadolint",
name = "hadolint (Lint Dockerfiles)",
entry = "hadolint",
language = "system",
args = [
"--failure-threshold", "warning",
"--info", "DL3008",
],
types = [ "dockerfile" ],
description = "Runs hadolint to lint Dockerfiles",
},
]
# shellcheck
# https://github.com/koalaman/shellcheck
[[repos]]
repo = "local"
hooks = [
# Hook option order based on:
# https://prek.j178.dev/reference/configuration/#common-hook-options
{
id = "shellcheck",
name = "shellcheck",
entry = "shellcheck",
language = "system",
types = [ "shell" ],
description = "Runs shellcheck to lint shell files",
},
]
# vim: tabstop=2 shiftwidth=2