Replace '_indent' with 'indent_style'

This commit is contained in:
topecongiro 2017-11-13 16:09:59 +09:00
parent 8a27a2da62
commit 96f3c36c04
79 changed files with 82 additions and 98 deletions

View File

@ -6,13 +6,10 @@ fn_brace_style = "SameLineWhere"
fn_return_indent = "WithArgs"
fn_args_paren_newline = true
fn_args_density = "Tall"
fn_args_indent = "Visual"
where_density = "Tall"
where_layout = "Vertical"
where_pred_indent = "Visual"
generics_indent = "Visual"
trailing_comma = "Vertical"
struct_lit_indent = "Block"
indent_style = "Block"
report_todo = "Always"
report_fixme = "Never"
reorder_imports = false

View File

@ -1,7 +1,4 @@
// rustfmt-fn_args_indent: Block
// rustfmt-fn_call_indent: Block
// rustfmt-generics_indent: Block
// rustfmt-where_style: Rfc
// rustfmt-indent_style: Block
// #1357
impl<

View File

@ -1,4 +1,4 @@
// rustfmt-fn_call_indent: Block
// rustfmt-indent_style: Block
// #1547
fuzz_target!(|data: &[u8]| if let Some(first) = data.first() {

View File

@ -1,5 +1,5 @@
// rustfmt-array_horizontal_layout_threshold: 1000
// rustfmt-array_indent: Visual
// rustfmt-indent_style: Visual
const ARRAY: [u8; 2048] =
[99, 72, 48, 104, 44, 112, 38, 62, 40, 93, 23, 24, 32, 21, 102, 76, 65, 29, 116,

View File

@ -1,4 +1,4 @@
// rustfmt-array_indent: Block
// rustfmt-indent_style: Block
// Array layout
fn main() {

View File

@ -1,4 +1,4 @@
// rustfmt-array_indent: Visual
// rustfmt-indent_style: Visual
// Array layout
fn main() {

View File

@ -1,4 +1,4 @@
// rustfmt-fn_args_indent: Block
// rustfmt-indent_style: Block
// Function arguments layout
fn lorem() {}

View File

@ -1,4 +1,4 @@
// rustfmt-fn_args_indent: Visual
// rustfmt-indent_style: Visual
// Function arguments layout
fn lorem() {}

View File

@ -1,5 +1,5 @@
// rustfmt-error_on_line_overflow: false
// rustfmt-fn_call_indent: Block
// rustfmt-indent_style: Block
// rustfmt should not add trailing comma when rewriting macro. See #1528.
fn a() {

View File

@ -1,4 +1,4 @@
// rustfmt-fn_call_indent: Block
// rustfmt-indent_style: Block
// Function call style
fn main() {

View File

@ -1,5 +1,5 @@
// rustfmt-error_on_line_overflow: false
// rustfmt-fn_call_indent: Visual
// rustfmt-indent_style: Visual
// rustfmt should not add trailing comma when rewriting macro. See #1528.
fn a() {

View File

@ -1,4 +1,4 @@
// rustfmt-fn_call_indent: Visual
// rustfmt-indent_style: Visual
// Function call style
fn main() {

View File

@ -1,5 +1,5 @@
// rustfmt-fn_call_width: 0
// rustfmt-fn_call_indent: block
// rustfmt-indent_style: block
// #1508
fn a() {

View File

@ -1,4 +1,4 @@
// rustfmt-generics_indent: Block
// rustfmt-indent_style: Block
// Generics indent
fn lorem<Ipsum: Eq = usize, Dolor: Eq = usize, Sit: Eq = usize, Amet: Eq = usize, Adipiscing: Eq = usize, Consectetur: Eq = usize, Elit: Eq = usize>(ipsum: Ipsum, dolor: Dolor, sit: Sit, amet: Amet, adipiscing: Adipiscing, consectetur: Consectetur, elit: Elit) -> T {

View File

@ -1,4 +1,4 @@
// rustfmt-generics_indent: Visual
// rustfmt-indent_style: Visual
// Generics indent
fn lorem<Ipsum: Eq = usize, Dolor: Eq = usize, Sit: Eq = usize, Amet: Eq = usize, Adipiscing: Eq = usize, Consectetur: Eq = usize, Elit: Eq = usize>(ipsum: Ipsum, dolor: Dolor, sit: Sit, amet: Amet, adipiscing: Adipiscing, consectetur: Consectetur, elit: Elit) -> T {

View File

@ -1,4 +1,4 @@
// rustfmt-struct_lit_indent: Block
// rustfmt-indent_style: Block
// Struct literal-style
fn main() {

View File

@ -1,4 +1,4 @@
// rustfmt-struct_lit_indent: Visual
// rustfmt-indent_style: Visual
// Struct literal-style
fn main() {

View File

@ -1,6 +1,6 @@
// rustfmt-tab_spaces: 2
// rustfmt-max_width: 30
// rustfmt-array_indent: Block
// rustfmt-indent_style: Block
// Tab spaces
fn lorem() {

View File

@ -1,6 +1,6 @@
// rustfmt-tab_spaces: 4
// rustfmt-max_width: 30
// rustfmt-array_indent: Block
// rustfmt-indent_style: Block
// Tab spaces
fn lorem() {

View File

@ -1,4 +1,4 @@
// rustfmt-where_pred_indent: Block
// rustfmt-indent_style: Block
// Where predicate indent
fn lorem<Ipsum, Dolor, Sit, Amet>() -> T where Ipsum: Eq, Dolor: Eq, Sit: Eq, Amet: Eq {

View File

@ -1,4 +1,4 @@
// rustfmt-where_pred_indent: Visual
// rustfmt-indent_style: Visual
// Where predicate indent
fn lorem<Ipsum, Dolor, Sit, Amet>() -> T where Ipsum: Eq, Dolor: Eq, Sit: Eq, Amet: Eq {

View File

@ -1,4 +1,4 @@
// rustfmt-where_style: Legacy
// rustfmt-indent_style: Legacy
// Where style
fn lorem<Ipsum, Dolor, Sit, Amet>() -> T where Ipsum: Eq, Dolor: Eq, Sit: Eq, Amet: Eq {

View File

@ -1,4 +1,4 @@
// rustfmt-where_style: Rfc
// rustfmt-indent_style: Rfc
// Where style
fn lorem<Ipsum, Dolor, Sit, Amet>() -> T where Ipsum: Eq, Dolor: Eq, Sit: Eq, Amet: Eq {

View File

@ -1,6 +1,4 @@
// rustfmt-array_indent: Block
// rustfmt-fn_call_indent: Block
// rustfmt-control_style: Rfc
// rustfmt-indent_style: Block
// Test expressions with block formatting.
fn arrays() {

View File

@ -1,5 +1,4 @@
// rustfmt-fn_args_indent: Block
// rustfmt-generics_indent: Block
// rustfmt-indent_style: Block
// rustfmt-where_layout: Mixed
// Test different indents.

View File

@ -1,5 +1,4 @@
// rustfmt-fn_args_indent: Block
// rustfmt-generics_indent: Block
// rustfmt-indent_style: Block
// rustfmt-where_layout: HorizontalVertical
// Test different indents.

View File

@ -1,4 +1,4 @@
// rustfmt-where_pred_indent: Block
// rustfmt-indent_style: Block
// rustfmt-where_density: Compressed
// Test different indents.

View File

@ -1,4 +1,4 @@
// rustfmt-fn_args_indent: Block
// rustfmt-indent_style: Block
// rustfmt-fn_brace_style: PreferSameLine
// Test different indents.

View File

@ -1,5 +1,5 @@
// rustfmt-normalize_comments: true
// rustfmt-fn_args_indent: Block
// rustfmt-indent_style: Block
// rustfmt-fn_args_density: Vertical
// rustfmt-fn_brace_style: AlwaysNextLine

View File

@ -1,4 +1,4 @@
// rustfmt-fn_args_indent: Block
// rustfmt-indent_style: Block
// rustfmt-fn_brace_style: PreferSameLine
// Test different indents.

View File

@ -1,5 +1,5 @@
// rustfmt-normalize_comments: true
// rustfmt-fn_args_indent: Block
// rustfmt-indent_style: Block
fn foo() {
foo();

View File

@ -1,4 +1,4 @@
// rustfmt-fn_args_indent = "block"
// rustfmt-indent_style = "block"
#![feature(pub_restricted)]

View File

@ -1,6 +1,6 @@
// rustfmt-normalize_comments: true
// rustfmt-wrap_comments: true
// rustfmt-struct_lit_indent: Visual
// rustfmt-indent_style: Visual
// rustfmt-error_on_line_overflow: false
// Struct literal expressions.

View File

@ -1,6 +1,6 @@
// rustfmt-normalize_comments: true
// rustfmt-wrap_comments: true
// rustfmt-struct_lit_indent: Visual
// rustfmt-indent_style: Visual
// rustfmt-struct_lit_multiline_style: ForceMulti
// rustfmt-error_on_line_overflow: false

View File

@ -1,7 +1,7 @@
// rustfmt-normalize_comments: true
// rustfmt-wrap_comments: true
// rustfmt-error_on_line_overflow: false
// rustfmt-struct_lit_indent: Visual
// rustfmt-indent_style: Visual
fn foo() {
Fooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo(f(), b());

View File

@ -1,5 +1,4 @@
// rustfmt-fn_args_indent: Block
// rustfmt-where_style: Rfc
// rustfmt-indent_style: Block
fn reflow_list_node_with_rule(node: &CompoundNode, rule: &Rule, args: &[Arg], shape: &Shape) where T: FOo, U: Bar {
let mut effects = HashMap::new();

View File

@ -1,7 +1,7 @@
// rustfmt-fn_args_indent: Block
// rustfmt-fn_call_indent: Block
// rustfmt-generics_indent: Block
// rustfmt-where_style: Rfc
// rustfmt-indent_style: Block
// rustfmt-indent_style: Block
// rustfmt-indent_style: Block
// rustfmt-indent_style: Rfc
// #1357
impl<'a, Select, From, Distinct, Where, Order, Limit, Offset, Groupby, DB> InternalBoxedDsl<'a, DB>

View File

@ -1,4 +1,4 @@
// rustfmt-fn_call_indent: Block
// rustfmt-indent_style: Block
// #1547
fuzz_target!(|data: &[u8]| if let Some(first) = data.first() {

View File

@ -1,5 +1,5 @@
// rustfmt-array_horizontal_layout_threshold: 1000
// rustfmt-array_indent: Visual
// rustfmt-indent_style: Visual
const ARRAY: [u8; 2048] =
[99, 72, 48, 104, 44, 112, 38, 62, 40, 93, 23, 24, 32, 21, 102, 76, 65, 29, 116, 21, 18, 37,

View File

@ -1,4 +1,4 @@
// rustfmt-array_indent: Block
// rustfmt-indent_style: Block
// Array layout
fn main() {

View File

@ -1,4 +1,4 @@
// rustfmt-array_indent: Visual
// rustfmt-indent_style: Visual
// Array layout
fn main() {

View File

@ -1,4 +1,4 @@
// rustfmt-fn_call_indent: Block
// rustfmt-indent_style: Block
// rustfmt-combine_control_expr: false
// Combining openings and closings. See https://github.com/rust-lang-nursery/fmt-rfcs/issues/61.

View File

@ -1,4 +1,4 @@
// rustfmt-fn_call_indent: Block
// rustfmt-indent_style: Block
// rustfmt-combine_control_expr: true
// Combining openings and closings. See https://github.com/rust-lang-nursery/fmt-rfcs/issues/61.

View File

@ -1,4 +1,4 @@
// rustfmt-control_style: Rfc
// rustfmt-indent_style: Rfc
// #1618
fn main() {

View File

@ -1,4 +1,4 @@
// rustfmt-fn_args_indent: Block
// rustfmt-indent_style: Block
// Function arguments layout
fn lorem() {}

View File

@ -1,4 +1,4 @@
// rustfmt-fn_args_indent: Visual
// rustfmt-indent_style: Visual
// Function arguments layout
fn lorem() {}

View File

@ -1,4 +1,4 @@
// rustfmt-fn_call_indent: Block
// rustfmt-indent_style: Block
// rustfmt-max_width: 80
// rustfmt-tab_spaces: 2

View File

@ -1,5 +1,5 @@
// rustfmt-error_on_line_overflow: false
// rustfmt-fn_call_indent: Block
// rustfmt-indent_style: Block
// rustfmt should not add trailing comma when rewriting macro. See #1528.
fn a() {

View File

@ -1,4 +1,4 @@
// rustfmt-fn_call_indent: Block
// rustfmt-indent_style: Block
// Function call style
fn main() {

View File

@ -1,5 +1,5 @@
// rustfmt-error_on_line_overflow: false
// rustfmt-fn_call_indent: Visual
// rustfmt-indent_style: Visual
// rustfmt should not add trailing comma when rewriting macro. See #1528.
fn a() {

View File

@ -1,4 +1,4 @@
// rustfmt-fn_call_indent: Visual
// rustfmt-indent_style: Visual
// Function call style
fn main() {

View File

@ -1,5 +1,5 @@
// rustfmt-fn_call_width: 0
// rustfmt-fn_call_indent: block
// rustfmt-indent_style: block
// #1508
fn a() {

View File

@ -1,4 +1,4 @@
// rustfmt-generics_indent: Block
// rustfmt-indent_style: Block
// Generics indent
fn lorem<

View File

@ -1,4 +1,4 @@
// rustfmt-generics_indent: Visual
// rustfmt-indent_style: Visual
// Generics indent
fn lorem<Ipsum: Eq = usize,

View File

@ -1,4 +1,4 @@
// rustfmt-imports_indent: Block
// rustfmt-indent_style: Block
use lists::{
definitive_tactic, itemize_list, shape_for_tactic, struct_lit_formatting, struct_lit_shape,

View File

@ -1,4 +1,4 @@
// rustfmt-imports_indent: Block
// rustfmt-indent_style: Block
// rustfmt-imports_layout: HorizontalVertical
use comment::{contains_comment, recover_comment_removed, rewrite_comment, FindUncommented};

View File

@ -1,4 +1,4 @@
// rustfmt-imports_indent: Block
// rustfmt-indent_style: Block
// rustfmt-imports_layout: Mixed
use comment::{contains_comment, recover_comment_removed, rewrite_comment, FindUncommented};

View File

@ -1,4 +1,4 @@
// rustfmt-struct_lit_indent: Block
// rustfmt-indent_style: Block
// Struct literal-style
fn main() {

View File

@ -1,4 +1,4 @@
// rustfmt-struct_lit_indent: Visual
// rustfmt-indent_style: Visual
// Struct literal-style
fn main() {

View File

@ -1,6 +1,6 @@
// rustfmt-tab_spaces: 2
// rustfmt-max_width: 30
// rustfmt-array_indent: Block
// rustfmt-indent_style: Block
// Tab spaces
fn lorem() {

View File

@ -1,6 +1,6 @@
// rustfmt-tab_spaces: 4
// rustfmt-max_width: 30
// rustfmt-array_indent: Block
// rustfmt-indent_style: Block
// Tab spaces
fn lorem() {

View File

@ -1,4 +1,4 @@
// rustfmt-where_pred_indent: Block
// rustfmt-indent_style: Block
// Where predicate indent
fn lorem<Ipsum, Dolor, Sit, Amet>() -> T

View File

@ -1,4 +1,4 @@
// rustfmt-where_pred_indent: Visual
// rustfmt-indent_style: Visual
// Where predicate indent
fn lorem<Ipsum, Dolor, Sit, Amet>() -> T

View File

@ -1,4 +1,4 @@
// rustfmt-where_style: Legacy
// rustfmt-indent_style: Legacy
// Where style
fn lorem<Ipsum, Dolor, Sit, Amet>() -> T

View File

@ -1,4 +1,4 @@
// rustfmt-where_style: Rfc
// rustfmt-indent_style: Rfc
// Where style
fn lorem<Ipsum, Dolor, Sit, Amet>() -> T

View File

@ -1,6 +1,4 @@
// rustfmt-array_indent: Block
// rustfmt-fn_call_indent: Block
// rustfmt-control_style: Rfc
// rustfmt-indent_style: Block
// Test expressions with block formatting.
fn arrays() {

View File

@ -1,5 +1,4 @@
// rustfmt-fn_args_indent: Block
// rustfmt-generics_indent: Block
// rustfmt-indent_style: Block
// rustfmt-where_layout: Mixed
// Test different indents.

View File

@ -1,5 +1,4 @@
// rustfmt-fn_args_indent: Block
// rustfmt-generics_indent: Block
// rustfmt-indent_style: Block
// rustfmt-where_layout: HorizontalVertical
// Test different indents.

View File

@ -1,4 +1,4 @@
// rustfmt-where_pred_indent: Block
// rustfmt-indent_style: Block
// rustfmt-where_density: Compressed
// Test different indents.

View File

@ -1,4 +1,4 @@
// rustfmt-fn_args_indent: Block
// rustfmt-indent_style: Block
// rustfmt-fn_brace_style: PreferSameLine
// Test different indents.

View File

@ -1,5 +1,5 @@
// rustfmt-normalize_comments: true
// rustfmt-fn_args_indent: Block
// rustfmt-indent_style: Block
// rustfmt-fn_args_density: Vertical
// rustfmt-fn_brace_style: AlwaysNextLine

View File

@ -1,4 +1,4 @@
// rustfmt-fn_args_indent: Block
// rustfmt-indent_style: Block
// rustfmt-fn_brace_style: PreferSameLine
// Test different indents.

View File

@ -1,5 +1,5 @@
// rustfmt-normalize_comments: true
// rustfmt-fn_args_indent: Block
// rustfmt-indent_style: Block
fn foo() {
foo();

View File

@ -1,4 +1,4 @@
// rustfmt-fn_args_indent = "block"
// rustfmt-indent_style = "block"
#![feature(pub_restricted)]

View File

@ -1,4 +1,4 @@
// rustfmt-fn_args_indent: Block
// rustfmt-indent_style: Block
// rustfmt-fn_args_paren_newline: false
// #1624

View File

@ -1,6 +1,6 @@
// rustfmt-normalize_comments: true
// rustfmt-wrap_comments: true
// rustfmt-struct_lit_indent: Visual
// rustfmt-indent_style: Visual
// rustfmt-error_on_line_overflow: false
// Struct literal expressions.

View File

@ -1,6 +1,6 @@
// rustfmt-normalize_comments: true
// rustfmt-wrap_comments: true
// rustfmt-struct_lit_indent: Visual
// rustfmt-indent_style: Visual
// rustfmt-struct_lit_multiline_style: ForceMulti
// rustfmt-error_on_line_overflow: false

View File

@ -1,7 +1,7 @@
// rustfmt-normalize_comments: true
// rustfmt-wrap_comments: true
// rustfmt-error_on_line_overflow: false
// rustfmt-struct_lit_indent: Visual
// rustfmt-indent_style: Visual
fn foo() {
Fooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo(f(), b());

View File

@ -1,5 +1,4 @@
// rustfmt-fn_args_indent: Block
// rustfmt-where_style: Rfc
// rustfmt-indent_style: Block
fn reflow_list_node_with_rule(node: &CompoundNode, rule: &Rule, args: &[Arg], shape: &Shape)
where