mirror of
https://github.com/lightningdevkit/rust-lightning.git
synced 2025-01-18 13:24:36 +01:00
d5344dc178
We add the previously discussed `rustfmt.toml` and enforce it in CI for any files that are not contained in an exclusion list. To start, we add all current Rust files to this exclusion list. This means that formatter rules will be enforced for any newly introduced files, and we'll then start going through the codebase file-by-file, removing them from the list as we go.
13 lines
402 B
TOML
13 lines
402 B
TOML
use_small_heuristics = "Max"
|
|
fn_args_layout = "Compressed"
|
|
hard_tabs = true
|
|
use_field_init_shorthand = true
|
|
max_width = 100
|
|
match_block_trailing_comma = true
|
|
# UNSTABLE: format_code_in_doc_comments = true
|
|
# UNSTABLE: overflow_delimited_expr = true
|
|
# UNSTABLE: comment_width = 100
|
|
# UNSTABLE: format_macro_matchers = true
|
|
# UNSTABLE: format_strings = true
|
|
# UNSTABLE: group_imports = "StdExternalCrate"
|