mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-29 21:35:58 +00:00
Remove tab-size setting (#12835)
Co-authored-by: Alex Waygood <alex.waygood@gmail.com> Closes https://github.com/astral-sh/ruff/issues/12041
This commit is contained in:
parent
89a82158a1
commit
d1e15f6246
4 changed files with 7 additions and 33 deletions
|
@ -415,17 +415,6 @@ pub struct Options {
|
|||
)]
|
||||
pub indent_width: Option<IndentWidth>,
|
||||
|
||||
/// 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`).
|
||||
#[deprecated(
|
||||
since = "0.1.2",
|
||||
note = "The `tab-size` option has been renamed to `indent-width` to emphasize that it configures the indentation used by the formatter as well as the tab width. Please update your configuration to use `indent-width = <value>` instead."
|
||||
)]
|
||||
pub tab_size: Option<IndentWidth>,
|
||||
|
||||
#[option_group]
|
||||
pub lint: Option<LintOptions>,
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue