mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-29 05:15:12 +00:00
Promote lint.
settings over top-level settings (#9476)
This commit is contained in:
parent
6996ff7b1e
commit
c3b33e9c4d
62 changed files with 389 additions and 310 deletions
|
@ -396,11 +396,11 @@ impl Configuration {
|
|||
|
||||
pub fn from_options(options: Options, project_root: &Path) -> Result<Self> {
|
||||
let lint = if let Some(mut lint) = options.lint {
|
||||
lint.common = lint.common.combine(options.lint_top_level);
|
||||
lint.common = lint.common.combine(options.lint_top_level.common);
|
||||
lint
|
||||
} else {
|
||||
LintOptions {
|
||||
common: options.lint_top_level,
|
||||
common: options.lint_top_level.common,
|
||||
..LintOptions::default()
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue