mirror of
https://github.com/astral-sh/ruff.git
synced 2025-10-02 14:52:01 +00:00
Remove duplicate info in azure format (#3369)
This commit is contained in:
parent
694d41897a
commit
074f5634a5
1 changed files with 1 additions and 12 deletions
|
@ -378,17 +378,6 @@ impl Printer {
|
||||||
// Generate error logging commands for Azure Pipelines format.
|
// Generate error logging commands for Azure Pipelines format.
|
||||||
// See https://learn.microsoft.com/en-us/azure/devops/pipelines/scripts/logging-commands?view=azure-devops&tabs=bash#logissue-log-an-error-or-warning
|
// See https://learn.microsoft.com/en-us/azure/devops/pipelines/scripts/logging-commands?view=azure-devops&tabs=bash#logissue-log-an-error-or-warning
|
||||||
for message in &diagnostics.messages {
|
for message in &diagnostics.messages {
|
||||||
let label = format!(
|
|
||||||
"{}{}{}{}{}{} {} {}",
|
|
||||||
relativize_path(Path::new(&message.filename)),
|
|
||||||
":",
|
|
||||||
message.location.row(),
|
|
||||||
":",
|
|
||||||
message.location.column(),
|
|
||||||
":",
|
|
||||||
message.kind.rule().noqa_code(),
|
|
||||||
message.kind.body(),
|
|
||||||
);
|
|
||||||
writeln!(
|
writeln!(
|
||||||
stdout,
|
stdout,
|
||||||
"##vso[task.logissue type=error\
|
"##vso[task.logissue type=error\
|
||||||
|
@ -397,7 +386,7 @@ impl Printer {
|
||||||
message.location.row(),
|
message.location.row(),
|
||||||
message.location.column(),
|
message.location.column(),
|
||||||
message.kind.rule().noqa_code(),
|
message.kind.rule().noqa_code(),
|
||||||
label,
|
message.kind.body(),
|
||||||
)?;
|
)?;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue