diff --git a/crates/ruff_workspace/src/options.rs b/crates/ruff_workspace/src/options.rs index 9bb1ddc8407b8..cc77cd250ab7f 100644 --- a/crates/ruff_workspace/src/options.rs +++ b/crates/ruff_workspace/src/options.rs @@ -388,6 +388,10 @@ pub struct Options { pub format: Option, } +/// Experimental section to configure Ruff's linting. This new section will eventually +/// replace the top-level linting options. +/// +/// Options specified in the `lint` section take precedence over the top-level settings. #[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[derive(Debug, PartialEq, Eq, Default, OptionsMetadata, Serialize, Deserialize)] #[serde(deny_unknown_fields, rename_all = "kebab-case")] @@ -433,10 +437,6 @@ pub struct LintOptions { // Note: This struct should be inlined into [`LintOptions`] once support for the top-level lint settings // is removed. -/// Experimental section to configure Ruff's linting. This new section will eventually -/// replace the top-level linting options. -/// -/// Options specified in the `lint` section take precedence over the top-level settings. #[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[derive( Debug, PartialEq, Eq, Default, OptionsMetadata, CombineOptions, Serialize, Deserialize, diff --git a/ruff.schema.json b/ruff.schema.json index 40429ce33b1ba..e93a69609a23a 100644 --- a/ruff.schema.json +++ b/ruff.schema.json @@ -1,7 +1,6 @@ { "$schema": "http://json-schema.org/draft-07/schema#", "title": "Options", - "description": "Experimental section to configure Ruff's linting. This new section will eventually replace the top-level linting options.\n\nOptions specified in the `lint` section take precedence over the top-level settings.", "type": "object", "properties": { "allowed-confusables": {