Skip to content

Commit 32e6803

Browse files
committed
Warn when --stdin-file-path is an ignored path
1 parent 85c917e commit 32e6803

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

crates/biome_cli/src/execute/std_in.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,10 @@ pub(crate) fn run<'a>(
5151

5252
if file_features.is_ignored() {
5353
console.append(markup! {{content}});
54+
// Write error last because files may generally be long
55+
console.error(markup! {
56+
<Warn>"The content was not formatted because the path `"{biome_path.as_str()}"` is ignored."</Warn>
57+
});
5458
return Ok(());
5559
}
5660

@@ -101,6 +105,7 @@ pub(crate) fn run<'a>(
101105
console.append(markup! {
102106
{content}
103107
});
108+
// Write error last because files may generally be long
104109
console.error(markup! {
105110
<Warn>"The content was not formatted because the formatter is currently disabled."</Warn>
106111
});
@@ -132,6 +137,10 @@ pub(crate) fn run<'a>(
132137

133138
if file_features.is_ignored() {
134139
console.append(markup! {{content}});
140+
// Write error last because files may generally be long
141+
console.error(markup! {
142+
<Warn>"The content was not fixed because the path `"{biome_path.as_str()}"` is ignored."</Warn>
143+
});
135144
return Ok(());
136145
}
137146

0 commit comments

Comments
 (0)