mirror of
https://github.com/MorizzG/tool-default-configs.git
synced 2025-12-06 01:22:41 +00:00
some updates
This commit is contained in:
parent
7ea1b2bada
commit
61064c3aa3
3 changed files with 18 additions and 4 deletions
|
|
@ -1,5 +1,5 @@
|
||||||
---
|
---
|
||||||
Checks: '
|
Checks: [
|
||||||
bugprone-*,
|
bugprone-*,
|
||||||
clang-analyzer-*,
|
clang-analyzer-*,
|
||||||
clang-diagnostic-*,
|
clang-diagnostic-*,
|
||||||
|
|
@ -19,6 +19,8 @@ Checks: '
|
||||||
-google-objc-function-naming,
|
-google-objc-function-naming,
|
||||||
-google-readability-todo,
|
-google-readability-todo,
|
||||||
|
|
||||||
|
-llvm-header-guard,
|
||||||
|
|
||||||
-misc-no-recursion,
|
-misc-no-recursion,
|
||||||
-modernize-use-nodiscard,
|
-modernize-use-nodiscard,
|
||||||
-modernize-use-trailing-return-type,
|
-modernize-use-trailing-return-type,
|
||||||
|
|
@ -28,7 +30,8 @@ Checks: '
|
||||||
-readability-else-after-return,
|
-readability-else-after-return,
|
||||||
-readability-identifier-length,
|
-readability-identifier-length,
|
||||||
-readability-magic-numbers,
|
-readability-magic-numbers,
|
||||||
'
|
-readability-math-missing-parentheses,
|
||||||
|
]
|
||||||
|
|
||||||
WarningsAsErrors: '*'
|
WarningsAsErrors: '*'
|
||||||
...
|
...
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ sections = "FUTURE,TYPING,STDLIB,THIRDPARTY,FIRSTPARTY,LOCALFOLDER"
|
||||||
# skip_glob = [""] # files/folders/... to skip
|
# skip_glob = [""] # files/folders/... to skip
|
||||||
# known_first_party = [""] # packages that are forced as first party
|
# known_first_party = [""] # packages that are forced as first party
|
||||||
# src_paths = [""] # files inside these paths are treated as first party
|
# src_paths = [""] # files inside these paths are treated as first party
|
||||||
multi_line_output = 5
|
# multi_line_output = 5
|
||||||
float_to_top = true
|
float_to_top = true
|
||||||
group_by_package = true
|
group_by_package = true
|
||||||
combine_as_imports = true
|
combine_as_imports = true
|
||||||
|
|
|
||||||
11
rustfmt.toml
11
rustfmt.toml
|
|
@ -1,2 +1,13 @@
|
||||||
imports_granularity = "Module"
|
imports_granularity = "Module"
|
||||||
group_imports = "StdExternalCrate"
|
group_imports = "StdExternalCrate"
|
||||||
|
|
||||||
|
# Activation of features, almost objectively better ;)
|
||||||
|
use_try_shorthand = true
|
||||||
|
use_field_init_shorthand = true
|
||||||
|
|
||||||
|
# Nightly only. Will not run in CI, but please format with these locally
|
||||||
|
wrap_comments = true
|
||||||
|
normalize_comments = true
|
||||||
|
comment_width = 100
|
||||||
|
|
||||||
|
condense_wildcard_suffixes = true
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue