some updates

This commit is contained in:
Moritz Gmeiner 2024-10-20 02:09:59 +02:00
commit 61064c3aa3
3 changed files with 18 additions and 4 deletions

View file

@ -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: '*'
... ...

View file

@ -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

View file

@ -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