Respect tab-size setting in formatter (#8006)

This commit is contained in:
Micha Reiser 2023-10-19 08:48:14 +09:00 committed by GitHub
parent 46d5db56cc
commit 4786abac7a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 33 additions and 10 deletions

View file

@ -363,7 +363,11 @@ pub struct Options {
)]
pub line_length: Option<LineLength>,
/// The tabulation size to calculate line length.
/// The number of spaces a tab is equal to when enforcing long-line violations (like `E501`)
/// or formatting code with the formatter.
///
/// This option changes the number of spaces inserted by the formatter when
/// using soft-tabs (`indent-style = space`).
#[option(
default = "4",
value_type = "int",