mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-30 13:51:37 +00:00
Fix Options
JSON schema description (#8081)
This commit is contained in:
parent
a525f09008
commit
1dd264b019
2 changed files with 4 additions and 5 deletions
|
@ -388,6 +388,10 @@ pub struct Options {
|
||||||
pub format: Option<FormatOptions>,
|
pub format: Option<FormatOptions>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// 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))]
|
#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))]
|
||||||
#[derive(Debug, PartialEq, Eq, Default, OptionsMetadata, Serialize, Deserialize)]
|
#[derive(Debug, PartialEq, Eq, Default, OptionsMetadata, Serialize, Deserialize)]
|
||||||
#[serde(deny_unknown_fields, rename_all = "kebab-case")]
|
#[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
|
// Note: This struct should be inlined into [`LintOptions`] once support for the top-level lint settings
|
||||||
// is removed.
|
// 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))]
|
#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))]
|
||||||
#[derive(
|
#[derive(
|
||||||
Debug, PartialEq, Eq, Default, OptionsMetadata, CombineOptions, Serialize, Deserialize,
|
Debug, PartialEq, Eq, Default, OptionsMetadata, CombineOptions, Serialize, Deserialize,
|
||||||
|
|
1
ruff.schema.json
generated
1
ruff.schema.json
generated
|
@ -1,7 +1,6 @@
|
||||||
{
|
{
|
||||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||||
"title": "Options",
|
"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",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
"allowed-confusables": {
|
"allowed-confusables": {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue