mirror of
https://github.com/alacritty/alacritty.git
synced 2024-10-27 05:32:54 -04:00
f90dd12efd
In this change I went through all current rustfmt configuration options and expanded our existing configuration with overrides whenever deemed appropriate. The `normalize_doc_attributes` option is still unstable, but seems to work without any issues. Even when passing macros like `include_str!` that is recognized properly and not normalized. So while this wasn't an issue anywhere in the code, it should make sure it never will be. When it comes to imports there are two new major additions. The `imports_granularity` and `group_imports` options. Both mostly just incorporate unwritten rules that have existed in Alacritty for a long time. Unfortunately since `alacritty_terminal` imports in `alacritty` are supposed to be separate blocks, the `group_imports` option cannot be used.
15 lines
421 B
TOML
15 lines
421 B
TOML
format_code_in_doc_comments = true
|
|
match_block_trailing_comma = true
|
|
condense_wildcard_suffixes = true
|
|
use_field_init_shorthand = true
|
|
normalize_doc_attributes = true
|
|
overflow_delimited_expr = true
|
|
imports_granularity = "Module"
|
|
use_small_heuristics = "Max"
|
|
normalize_comments = true
|
|
reorder_impl_items = true
|
|
use_try_shorthand = true
|
|
newline_style = "Unix"
|
|
format_strings = true
|
|
wrap_comments = true
|
|
comment_width = 100
|