Debian Codegraph @

precious.toml

raw
1 exclude = [
2 ".build/**/*",
3 "DateTime-TimeZone-*/**/*",
4 "META.yml",
5 "MYMETA.yml",
6 "blib/**/*",
7 "lib/DateTime/TimeZone/Catalog.pm",
8 "lib/DateTime/TimeZone/{Africa,America,Antarctica,Asia,Atlantic,Australia,Europe,Indian,Pacific}/**/*",
9 "lib/DateTime/TimeZone/{CET,CST6CDT,EET,EST5EDT,EST,HST,MET,MST7MDT,MST,PST8PDT,WET}.pm",
10 "t/00-*",
11 "t/author-*",
12 "t/release-*",
13 "t/zd_*",
14 "t/zzz-*",
15 "xt/**/*",
16 ]
17
18 [commands.omegasort-gitignore]
19 type = "both"
20 include = "**/.gitignore"
21 cmd = ["omegasort", "--sort", "path", "--unique"]
22 lint_flags = "--check"
23 tidy_flags = "--in-place"
24 ok_exit_codes = 0
25 lint_failure_exit_codes = 1
26 ignore-stderr = ["The .+ file is not sorted", "The .+ file is not unique"]
27
28 [commands.omegasort-stopwords]
29 type = "both"
30 include = ".stopwords"
31 cmd = ["omegasort", "--sort", "text", "--case-insensitive", "--unique"]
32 lint_flags = "--check"
33 tidy_flags = "--in-place"
34 ok_exit_codes = 0
35 lint_failure_exit_codes = 1
36 ignore-stderr = ["The .+ file is not sorted", "The .+ file is not unique"]
37
38 [commands.perlcritic]
39 type = "lint"
40 include = ["**/*.{pl,pm,t,psgi}"]
41 cmd = ["perlcritic", "--profile=$PRECIOUS_ROOT/perlcriticrc"]
42 ok_exit_codes = 0
43 lint_failure_exit_codes = 2
44
45 [commands.perltidy]
46 type = "both"
47 include = ["**/*.{pl,pm,t,psgi}"]
48 cmd = ["perltidy", "--profile=$PRECIOUS_ROOT/perltidyrc"]
49 lint_flags = ["--assert-tidy", "--no-standard-output", "--outfile=/dev/null"]
50 tidy_flags = ["--backup-and-modify-in-place", "--backup-file-extension=/"]
51 ok_exit_codes = 0
52 lint_failure_exit_codes = 2
53 ignore_stderr = "Begin Error Output Stream"
54
55 [commands.podchecker]
56 type = "lint"
57 include = ["**/*.{pl,pm,pod}"]
58 cmd = ["podchecker", "--warnings", "--warnings"]
59 ok_exit_codes = [0, 2]
60 lint_failure_exit_codes = 1
61 ignore_stderr = [
62 ".+ pod syntax OK",
63 ".+ does not contain any pod commands",
64 '\*\*\* WARNING: multiple occurrences \(\d+\) of link target .+',
65 '\*\*\* WARNING: empty section in previous paragraph .+',
66 ]
67
68 [commands.podtidy]
69 type = "tidy"
70 include = ["**/*.{pl,pm,pod}"]
71 cmd = ["podtidy", "--columns", "80", "--inplace", "--nobackup"]
72 ok_exit_codes = 0
73 lint_failure_exit_codes = 1
74
75 [commands.oxfmt]
76 type = "both"
77 include = ["**/*.yml", "**/*.toml"]
78 cmd = ["oxfmt"]
79 lint-flags = "--check"
80 tidy-flags = "--write"
81 ok-exit-codes = 0
82 lint-failure-exit-codes = 1
83
84 [commands.typos]
85 type = "both"
86 include = "**/*"
87 exclude = [".stopwords"]
88 cmd = "typos"
89 tidy_flags = "--write-changes"
90 invoke = "once"
91 ok-exit-codes = 0
92 lint-failure-exit-codes = 2