mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-28 04:45:01 +00:00
Add deprecation message for top-level lint settings (#9582)
This commit is contained in:
parent
c3b33e9c4d
commit
c2bf725086
7 changed files with 263 additions and 10 deletions
|
@ -481,9 +481,7 @@ pub struct LintOptions {
|
|||
/// Newtype wrapper for [`LintCommonOptions`] that allows customizing the JSON schema and omitting the fields from the [`OptionsMetadata`].
|
||||
#[derive(Debug, PartialEq, Eq, Default, Serialize, Deserialize)]
|
||||
#[serde(transparent)]
|
||||
pub struct DeprecatedTopLevelLintOptions {
|
||||
pub common: LintCommonOptions,
|
||||
}
|
||||
pub struct DeprecatedTopLevelLintOptions(pub LintCommonOptions);
|
||||
|
||||
impl OptionsMetadata for DeprecatedTopLevelLintOptions {
|
||||
fn record(_visit: &mut dyn Visit) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue