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-*,
|
||||
clang-analyzer-*,
|
||||
clang-diagnostic-*,
|
||||
|
|
@ -19,6 +19,8 @@ Checks: '
|
|||
-google-objc-function-naming,
|
||||
-google-readability-todo,
|
||||
|
||||
-llvm-header-guard,
|
||||
|
||||
-misc-no-recursion,
|
||||
-modernize-use-nodiscard,
|
||||
-modernize-use-trailing-return-type,
|
||||
|
|
@ -28,7 +30,8 @@ Checks: '
|
|||
-readability-else-after-return,
|
||||
-readability-identifier-length,
|
||||
-readability-magic-numbers,
|
||||
'
|
||||
-readability-math-missing-parentheses,
|
||||
]
|
||||
|
||||
WarningsAsErrors: '*'
|
||||
...
|
||||
|
|
|
|||
|
|
@ -6,13 +6,13 @@ line-length = 100
|
|||
[tool.isort]
|
||||
line_length = 100
|
||||
profile = "black"
|
||||
known_typing = "typing" # types,typing_extensions,mypy,mypy_extensions
|
||||
known_typing = "typing" # types,typing_extensions,mypy,mypy_extensions
|
||||
# default: "FUTURE,STDLIB,THIRDPARTY,FIRSTPARTY,LOCALFOLDER"
|
||||
sections = "FUTURE,TYPING,STDLIB,THIRDPARTY,FIRSTPARTY,LOCALFOLDER"
|
||||
# skip_glob = [""] # files/folders/... to skip
|
||||
# known_first_party = [""] # packages that are forced 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
|
||||
group_by_package = true
|
||||
combine_as_imports = true
|
||||
|
|
|
|||
11
rustfmt.toml
11
rustfmt.toml
|
|
@ -1,2 +1,13 @@
|
|||
imports_granularity = "Module"
|
||||
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