@@ -18,51 +18,68 @@ exclude = [
18
18
[commands .omegasort-gitignore ]
19
19
type = " both"
20
20
include = " **/.gitignore"
21
- cmd = [ " omegasort" , " --sort=path" ]
21
+ cmd = [" omegasort" , " --sort=path" , " --unique " ]
22
22
lint_flags = " --check"
23
23
tidy_flags = " --in-place"
24
24
ok_exit_codes = 0
25
25
lint_failure_exit_codes = 1
26
- expect_stderr = true
27
26
28
27
[commands .omegasort-stopwords ]
29
28
type = " both"
30
29
include = " .stopwords"
31
- cmd = [ " omegasort" , " --sort=text" , " --case-insensitive" ]
30
+ cmd = [" omegasort" , " --sort=text" , " --case-insensitive" , " --unique " ]
32
31
lint_flags = " --check"
33
32
tidy_flags = " --in-place"
34
33
ok_exit_codes = 0
35
34
lint_failure_exit_codes = 1
36
- expect_stderr = true
37
35
38
36
[commands .perlcritic ]
39
37
type = " lint"
40
- include = [ " **/*.{pl,pm,t,psgi}" ]
41
- cmd = [ " perlcritic" , " --profile=$PRECIOUS_ROOT/perlcriticrc" ]
38
+ include = [" **/*.{pl,pm,t,psgi}" ]
39
+ cmd = [" perlcritic" , " --profile=$PRECIOUS_ROOT/perlcriticrc" ]
42
40
ok_exit_codes = 0
43
41
lint_failure_exit_codes = 2
44
42
45
43
[commands .perltidy ]
46
44
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=/" ]
45
+ include = [" **/*.{pl,pm,t,psgi}" ]
46
+ cmd = [" perltidy" , " --profile=$PRECIOUS_ROOT/perltidyrc" ]
47
+ lint_flags = [" --assert-tidy" , " --no-standard-output" , " --outfile=/dev/null" ]
48
+ tidy_flags = [" --backup-and-modify-in-place" , " --backup-file-extension=/" ]
51
49
ok_exit_codes = 0
52
50
lint_failure_exit_codes = 2
53
- expect_stderr = true
51
+ ignore_stderr = " Begin Error Output Stream "
54
52
55
53
[commands .podchecker ]
56
54
type = " lint"
57
- include = [ " **/*.{pl,pm,pod}" ]
58
- cmd = [ " podchecker" , " --warnings" , " --warnings" ]
59
- ok_exit_codes = [ 0 , 2 ]
55
+ include = [" **/*.{pl,pm,pod}" ]
56
+ cmd = [" podchecker" , " --warnings" , " --warnings" ]
57
+ ok_exit_codes = [0 , 2 ]
60
58
lint_failure_exit_codes = 1
61
- expect_stderr = true
59
+ ignore_stderr = [ " .+ pod syntax OK " , " .+ does not contain any pod commands " ]
62
60
63
61
[commands .podtidy ]
64
62
type = " tidy"
65
- include = [ " **/*.{pl,pm,pod}" ]
66
- cmd = [ " podtidy" , " --columns" , " 80" , " --inplace" , " --nobackup" ]
63
+ include = [" **/*.{pl,pm,pod}" ]
64
+ cmd = [" podtidy" , " --columns" , " 80" , " --inplace" , " --nobackup" ]
67
65
ok_exit_codes = 0
68
66
lint_failure_exit_codes = 1
67
+
68
+ [commands .prettier ]
69
+ type = " both"
70
+ include = [" **/*.yml" ]
71
+ cmd = [" prettier" , " --no-config" , " --prose-wrap" , " always" , " --print-width" , " 100" ]
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 .taplo ]
79
+ type = " both"
80
+ include = " **/*.toml"
81
+ cmd = [" taplo" , " format" , " --option" , " indent_string= " , " --option" , " column_width=100" ]
82
+ lint_flags = " --check"
83
+ ok_exit_codes = 0
84
+ lint_failure_exit_codes = 1
85
+ ignore_stderr = " INFO taplo.+"
0 commit comments