-
Notifications
You must be signed in to change notification settings - Fork 94
Expand file tree
/
Copy pathprecious.toml
More file actions
94 lines (86 loc) · 1.97 KB
/
precious.toml
File metadata and controls
94 lines (86 loc) · 1.97 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
89
90
91
92
93
94
excludes = [
".build/**",
"blib/**",
"target",
]
[commands.perlimports]
type = "both"
include = [
"bin/new-article",
"**/*.{pl,pm,t,psgi}",
]
cmd = ["perlimports"]
lint-flags = ["--lint"]
tidy-flags = ["-i"]
ok-exit-codes = 0
expect-stderr = true
[commands.perlcritic]
type = "lint"
include = [
"bin/new-article",
"**/*.{pl,pm,t,psgi}",
]
cmd = ["perlcritic", "--profile=$PRECIOUS_ROOT/perlcriticrc"]
ok-exit-codes = 0
lint-failure-exit-codes = 2
[commands.perltidy]
type = "both"
include = [
"bin/new-article",
"**/*.{pl,pm,t,psgi}",
]
cmd = ["perltidy", "--profile=$PRECIOUS_ROOT/perltidyrc"]
lint-flags = ["--assert-tidy", "--no-standard-output", "--outfile=/dev/null"]
tidy-flags = ["--backup-and-modify-in-place", "--backup-file-extension=/"]
ok-exit-codes = 0
lint-failure-exit-codes = 2
ignore-stderr = "Begin Error Output Stream"
[commands.podchecker]
type = "lint"
include = [
"bin/new-article",
"**/*.{pl,pm,t,psgi}",
]
cmd = ["podchecker", "--warnings", "--warnings"]
ok-exit-codes = [0, 2]
lint-failure-exit-codes = 1
ignore-stderr = [".+ pod syntax OK", ".+ does not contain any pod commands"]
# [commands.podtidy]
# type = "tidy"
# include = [
# "bin/new-article",
# "**/*.{pl,pm,t,psgi}",
# ]
# cmd = ["podtidy", "--columns", "100", "--inplace", "--nobackup"]
# ok-exit-codes = 0
# lint-failure-exit-codes = 1
[commands.shellcheck]
type = "lint"
include = "**/*.sh"
cmd = "shellcheck"
ok_exit_codes = 0
lint_failure_exit_codes = 1
[commands.shfmt]
type = "both"
include = "**/*.sh"
cmd = ["shfmt", "--simplify", "--indent", "4"]
lint_flags = "--diff"
tidy_flags = "--write"
ok_exit_codes = 0
lint_failure_exit_codes = 1
[commands.prettier-markdown]
type = "both"
include = "**/*.md"
cmd = [
"./node_modules/.bin/prettier",
"--no-config",
"--print-width",
"80",
"--prose-wrap",
"always",
]
lint-flags = "--check"
tidy-flags = "--write"
ok-exit-codes = 0
lint-failure-exit-codes = 1
ignore-stderr = ["Code style issues"]