mirror of
https://github.com/astral-sh/ruff.git
synced 2025-10-01 22:31:47 +00:00
Include hidden ecosystem_ci option to show fixes without feature (#4528)
This commit is contained in:
parent
b1d01b1950
commit
3644695bf2
6 changed files with 8 additions and 19 deletions
|
@ -71,7 +71,6 @@ pub(crate) struct Printer {
|
|||
autofix_level: flags::FixMode,
|
||||
flags: Flags,
|
||||
/// Dev-only argument to show fixes
|
||||
#[cfg(feature = "ecosystem_ci")]
|
||||
ecosystem_ci: bool,
|
||||
}
|
||||
|
||||
|
@ -81,14 +80,13 @@ impl Printer {
|
|||
log_level: LogLevel,
|
||||
autofix_level: flags::FixMode,
|
||||
flags: Flags,
|
||||
#[cfg(feature = "ecosystem_ci")] ecosystem_ci: bool,
|
||||
ecosystem_ci: bool,
|
||||
) -> Self {
|
||||
Self {
|
||||
format,
|
||||
log_level,
|
||||
autofix_level,
|
||||
flags,
|
||||
#[cfg(feature = "ecosystem_ci")]
|
||||
ecosystem_ci,
|
||||
}
|
||||
}
|
||||
|
@ -189,10 +187,7 @@ impl Printer {
|
|||
JunitEmitter::default().emit(writer, &diagnostics.messages, &context)?;
|
||||
}
|
||||
SerializationFormat::Text => {
|
||||
#[cfg(feature = "ecosystem_ci")]
|
||||
let show_fixes = self.ecosystem_ci && self.flags.contains(Flags::SHOW_FIXES);
|
||||
#[cfg(not(feature = "ecosystem_ci"))]
|
||||
let show_fixes = false;
|
||||
|
||||
TextEmitter::default()
|
||||
.with_show_fix_status(show_fix_status(self.autofix_level))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue