-
Notifications
You must be signed in to change notification settings - Fork 12
/
precious.toml
73 lines (67 loc) · 1.84 KB
/
precious.toml
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
exclude = [
".build/**/*",
"DateTime-Locale-*/**/*",
"blib/**/*",
"lib/DateTime/Locale/Conflicts.pm",
"lib/DateTime/Locale/*.pod",
"share/**/*",
"source-data/**/*",
"tools/template/pod",
"t/00-*",
"t/author-*",
"t/release-*",
"t/zzz-*",
"xt/**/*",
]
[commands.omegasort-gitignore]
type = "both"
include = "**/.gitignore"
cmd = [ "omegasort", "--sort=path", "--unique" ]
lint_flags = "--check"
tidy_flags = "--in-place"
ok_exit_codes = 0
lint_failure_exit_codes = 1
expect_stderr = true
[commands.omegasort-stopwords]
type = "both"
include = ".stopwords"
cmd = [ "omegasort", "--sort", "text", "--case-insensitive", "--locale", "en-US", "--unique" ]
lint_flags = "--check"
tidy_flags = "--in-place"
ok_exit_codes = 0
lint_failure_exit_codes = 1
expect_stderr = true
[commands.perlcritic]
type = "lint"
include = [ "**/*.{pl,pm,t,psgi}" ]
exclude = [
"lib/DateTime/Locale/Base.pm",
"lib/DateTime/Locale/Data.pm",
]
cmd = [ "perlcritic", "--profile=$PRECIOUS_ROOT/perlcriticrc" ]
ok_exit_codes = 0
lint_failure_exit_codes = 2
[commands.perltidy]
type = "both"
include = [ "**/*.{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
expect_stderr = true
[commands.podchecker]
type = "lint"
include = [ "**/*.{pl,pm,pod}" ]
exclude = "tools/templates/*.pod"
cmd = [ "podchecker", "--warnings", "--warnings" ]
ok_exit_codes = [ 0, 2 ]
lint_failure_exit_codes = 1
expect_stderr = true
[commands.podtidy]
type = "tidy"
include = [ "**/*.{pl,pm,pod}" ]
exclude = "tools/templates/*.pod"
cmd = [ "podtidy", "--columns", "80", "--inplace", "--nobackup" ]
ok_exit_codes = 0
lint_failure_exit_codes = 1