Skip to content

Commit 0815d6a

Browse files
committed
tools: Update tidy.sh and related configs
1 parent ae03570 commit 0815d6a

File tree

3 files changed

+426
-198
lines changed

3 files changed

+426
-198
lines changed

.cspell.json

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,24 +27,25 @@
2727
"ignoreRegExpList": [
2828
// Copyright notice
2929
"Copyright .*",
30+
"SPDX-(File|Snippet)CopyrightText: .*",
3031
// GHA actions/workflows
31-
"uses: .+@",
32+
"uses: .+@[\\w_.-]+",
3233
// GHA context (repo name, owner name, etc.)
33-
"github.\\w+ (=|!)= '.+'",
34+
"github.[\\w_.-]+ (=|!)= '[^']+'",
3435
// GH username
3536
"( |\\[)@[\\w_-]+",
3637
// Git config username
37-
"git config user.name .*",
38-
// Username in todo comment
38+
"git config( --[^ ]+)? user.name .*",
39+
// Username in TODO|FIXME comment
3940
"(TODO|FIXME)\\([\\w_., -]+\\)",
4041
// Cargo.toml authors
41-
"authors *= *\\[.*\\]",
42-
"\".* <[\\w_.+-]+@[\\w.-]+>\""
42+
"authors *= *\\[[^\\]]*\\]",
43+
"\"[^\"]* <[\\w_.+-]+@[\\w.-]+>\""
4344
],
4445
"languageSettings": [
4546
{
4647
"languageId": ["*"],
47-
"dictionaries": ["bash", "rust"]
48+
"dictionaries": ["bash", "cpp-refined", "rust"]
4849
}
4950
],
5051
"ignorePaths": ["tests/fixtures/*.json", "tests/fixtures/coverage-reports/**"]

.editorconfig

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,16 @@ indent_style = space
1111
insert_final_newline = true
1212
trim_trailing_whitespace = true
1313

14-
[*.{json,md,rb,sh,yml,yaml}]
14+
[*.{css,html,json,md,rb,sh,yml,yaml}]
1515
indent_size = 2
1616

1717
[*.{js,yml,yaml}]
1818
quote_type = single
1919

2020
[*.sh]
21+
# https://google.github.io/styleguide/shellguide.html#s5.3-pipelines
2122
binary_next_line = true
23+
# https://google.github.io/styleguide/shellguide.html#s5.5-case-statement
2224
switch_case_indent = true
2325

2426
[**/coverage-reports/**]

0 commit comments

Comments
 (0)