Skip to content

Commit 391ed66

Browse files
committed
Update precious config and tidy all files
1 parent 3d02d30 commit 391ed66

File tree

3 files changed

+37
-20
lines changed

3 files changed

+37
-20
lines changed

.stopwords

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,6 @@ Sint
111111
SL
112112
Sri
113113
Starman
114-
Starman
115114
Storable
116115
Subclass
117116
subclasses
@@ -131,7 +130,6 @@ TT
131130
Turkiye
132131
TW
133132
TZ
134-
TZ
135133
UA
136134
UG
137135
UIs

lib/DateTime/TimeZone/OffsetOnly.pm

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,10 @@ used.
113113
114114
=head2 $tz->name()
115115
116+
This returns the offset string form.
117+
116118
=head2 $tz->short_name_for_datetime()
117119
118-
Both of these methods return the offset in string form.
120+
This returns the offset string form.
119121
120122
=cut

precious.toml

Lines changed: 34 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -18,51 +18,68 @@ exclude = [
1818
[commands.omegasort-gitignore]
1919
type = "both"
2020
include = "**/.gitignore"
21-
cmd = [ "omegasort", "--sort=path" ]
21+
cmd = ["omegasort", "--sort=path", "--unique"]
2222
lint_flags = "--check"
2323
tidy_flags = "--in-place"
2424
ok_exit_codes = 0
2525
lint_failure_exit_codes = 1
26-
expect_stderr = true
2726

2827
[commands.omegasort-stopwords]
2928
type = "both"
3029
include = ".stopwords"
31-
cmd = [ "omegasort", "--sort=text", "--case-insensitive" ]
30+
cmd = ["omegasort", "--sort=text", "--case-insensitive", "--unique"]
3231
lint_flags = "--check"
3332
tidy_flags = "--in-place"
3433
ok_exit_codes = 0
3534
lint_failure_exit_codes = 1
36-
expect_stderr = true
3735

3836
[commands.perlcritic]
3937
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"]
4240
ok_exit_codes = 0
4341
lint_failure_exit_codes = 2
4442

4543
[commands.perltidy]
4644
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=/"]
5149
ok_exit_codes = 0
5250
lint_failure_exit_codes = 2
53-
expect_stderr = true
51+
ignore_stderr = "Begin Error Output Stream"
5452

5553
[commands.podchecker]
5654
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]
6058
lint_failure_exit_codes = 1
61-
expect_stderr = true
59+
ignore_stderr = [".+ pod syntax OK", ".+ does not contain any pod commands"]
6260

6361
[commands.podtidy]
6462
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"]
6765
ok_exit_codes = 0
6866
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

Comments
 (0)