Skip to content

Commit

Permalink
tools: Update tidy.sh and related configs
Browse files Browse the repository at this point in the history
  • Loading branch information
taiki-e committed Feb 2, 2025
1 parent b53e102 commit 7295567
Show file tree
Hide file tree
Showing 3 changed files with 416 additions and 195 deletions.
15 changes: 8 additions & 7 deletions .cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,24 +27,25 @@
"ignoreRegExpList": [
// Copyright notice
"Copyright .*",
"SPDX-(File|Snippet)CopyrightText: .*",
// GHA actions/workflows
"uses: .+@",
"uses: .+@[\\w_.-]+",
// GHA context (repo name, owner name, etc.)
"github.\\w+ (=|!)= '.+'",
"github.[\\w_.-]+ (=|!)= '[^']+'",
// GH username
"( |\\[)@[\\w_-]+",
// Git config username
"git config user.name .*",
// Username in todo comment
"git config( --[^ ]+)? user.name .*",
// Username in TODO|FIXME comment
"(TODO|FIXME)\\([\\w_., -]+\\)",
// Cargo.toml authors
"authors *= *\\[.*\\]",
"\".* <[\\w_.+-]+@[\\w.-]+>\""
"authors *= *\\[[^\\]]*\\]",
"\"[^\"]* <[\\w_.+-]+@[\\w.-]+>\""
],
"languageSettings": [
{
"languageId": ["*"],
"dictionaries": ["bash", "rust"]
"dictionaries": ["bash", "cpp-refined", "rust"]
}
],
"ignorePaths": []
Expand Down
4 changes: 3 additions & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,14 @@ indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true

[*.{json,md,rb,sh,yml,yaml}]
[*.{css,html,json,md,rb,sh,yml,yaml}]
indent_size = 2

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

[*.sh]
# https://google.github.io/styleguide/shellguide.html#s5.3-pipelines
binary_next_line = true
# https://google.github.io/styleguide/shellguide.html#s5.5-case-statement
switch_case_indent = true
Loading

0 comments on commit 7295567

Please sign in to comment.