Skip to content

Commit dea7880

Browse files
committed
Add precious config
1 parent 6b818aa commit dea7880

File tree

1 file changed

+89
-0
lines changed

1 file changed

+89
-0
lines changed

precious.toml

Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
excludes = [
2+
".build/**",
3+
"blib/**",
4+
]
5+
6+
[commands.perlimports]
7+
type = "both"
8+
include = [ "**/*.{pl,pm,t,psgi}" ]
9+
cmd = [ "perlimports" ]
10+
lint-flags = ["--lint" ]
11+
tidy-flags = ["-i" ]
12+
ok-exit-codes = 0
13+
expect-stderr = true
14+
15+
[commands.perlcritic]
16+
type = "lint"
17+
include = [ "**/*.{pl,pm,t,psgi}" ]
18+
cmd = [ "perlcritic", "--profile=$PRECIOUS_ROOT/.perlcriticrc" ]
19+
ok-exit-codes = 0
20+
lint-failure-exit-codes = 2
21+
22+
[commands.perltidy]
23+
type = "both"
24+
include = [ "**/*.{pl,pm,t,psgi}" ]
25+
cmd = [ "perltidy", "--profile=$PRECIOUS_ROOT/.perltidyrc" ]
26+
lint-flags = [ "--assert-tidy", "--no-standard-output", "--outfile=/dev/null" ]
27+
tidy-flags = [ "--backup-and-modify-in-place", "--backup-file-extension=/" ]
28+
ok-exit-codes = 0
29+
lint-failure-exit-codes = 2
30+
ignore-stderr = "Begin Error Output Stream"
31+
32+
[commands.podchecker]
33+
type = "lint"
34+
include = [ "**/*.{pl,pm,pod}" ]
35+
cmd = [ "podchecker", "--warnings", "--warnings" ]
36+
ok-exit-codes = [ 0, 2 ]
37+
lint-failure-exit-codes = 1
38+
ignore-stderr = [
39+
".+ pod syntax OK",
40+
".+ does not contain any pod commands",
41+
]
42+
43+
[commands.podtidy]
44+
type = "tidy"
45+
include = [ "**/*.{pl,pm,pod}" ]
46+
cmd = [ "podtidy", "--columns", "80", "--inplace", "--nobackup" ]
47+
ok-exit-codes = 0
48+
lint-failure-exit-codes = 1
49+
50+
[commands.omegasort-gitignore]
51+
type = "both"
52+
include = "**/.gitignore"
53+
cmd = [ "omegasort", "--sort", "path", "--unique" ]
54+
lint-flags = "--check"
55+
tidy-flags = "--in-place"
56+
ok-exit-codes = 0
57+
lint-failure-exit-codes = 1
58+
ignore-stderr = [
59+
"The .+ file is not sorted",
60+
"The .+ file is not unique",
61+
]
62+
63+
[commands.prettier-markdown]
64+
type = "both"
65+
include = "**/*.md"
66+
cmd = [
67+
"./node_modules/.bin/prettier",
68+
"--no-config",
69+
"--print-width", "100",
70+
"--prose-wrap", "always",
71+
]
72+
lint-flags = "--check"
73+
tidy-flags = "--write"
74+
ok-exit-codes = 0
75+
lint-failure-exit-codes = 1
76+
ignore-stderr = [ "Code style issues" ]
77+
78+
[commands.prettier-yaml]
79+
type = "both"
80+
include = "**/*.yml"
81+
cmd = [
82+
"./node_modules/.bin/prettier",
83+
"--no-config",
84+
]
85+
lint-flags = "--check"
86+
tidy-flags = "--write"
87+
ok-exit-codes = 0
88+
lint-failure-exit-codes = 1
89+
ignore-stderr = [ "Code style issues" ]

0 commit comments

Comments
 (0)