mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-28 12:55:05 +00:00
Run nightly Clippy over the Ruff repo (#5670)
## Summary
This is the result of running `cargo +nightly clippy --workspace
--all-targets --all-features -- -D warnings` and fixing all violations.
Just wanted to see if there were any interesting new checks on nightly
👀
This commit is contained in:
parent
e7e2f44440
commit
4dee49d6fa
40 changed files with 220 additions and 470 deletions
|
@ -181,13 +181,13 @@ impl Printer {
|
|||
|
||||
match self.format {
|
||||
SerializationFormat::Json => {
|
||||
JsonEmitter::default().emit(writer, &diagnostics.messages, &context)?;
|
||||
JsonEmitter.emit(writer, &diagnostics.messages, &context)?;
|
||||
}
|
||||
SerializationFormat::JsonLines => {
|
||||
JsonLinesEmitter::default().emit(writer, &diagnostics.messages, &context)?;
|
||||
JsonLinesEmitter.emit(writer, &diagnostics.messages, &context)?;
|
||||
}
|
||||
SerializationFormat::Junit => {
|
||||
JunitEmitter::default().emit(writer, &diagnostics.messages, &context)?;
|
||||
JunitEmitter.emit(writer, &diagnostics.messages, &context)?;
|
||||
}
|
||||
SerializationFormat::Text => {
|
||||
TextEmitter::default()
|
||||
|
@ -222,16 +222,16 @@ impl Printer {
|
|||
self.write_summary_text(writer, diagnostics)?;
|
||||
}
|
||||
SerializationFormat::Github => {
|
||||
GithubEmitter::default().emit(writer, &diagnostics.messages, &context)?;
|
||||
GithubEmitter.emit(writer, &diagnostics.messages, &context)?;
|
||||
}
|
||||
SerializationFormat::Gitlab => {
|
||||
GitlabEmitter::default().emit(writer, &diagnostics.messages, &context)?;
|
||||
}
|
||||
SerializationFormat::Pylint => {
|
||||
PylintEmitter::default().emit(writer, &diagnostics.messages, &context)?;
|
||||
PylintEmitter.emit(writer, &diagnostics.messages, &context)?;
|
||||
}
|
||||
SerializationFormat::Azure => {
|
||||
AzureEmitter::default().emit(writer, &diagnostics.messages, &context)?;
|
||||
AzureEmitter.emit(writer, &diagnostics.messages, &context)?;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue