Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: custom explanations with --suppress #4343

Merged
merged 101 commits into from
Nov 4, 2024
Merged
Show file tree
Hide file tree
Changes from 89 commits
Commits
Show all changes
101 commits
Select commit Hold shift + click to select a range
62e46bc
WIP
anthonyshew Sep 20, 2024
9c50af1
WIP
anthonyshew Sep 20, 2024
a87006b
WIP
anthonyshew Sep 20, 2024
a39718d
WIP
anthonyshew Sep 20, 2024
cf0b9c0
WIP
anthonyshew Sep 22, 2024
02115cc
WIP
anthonyshew Sep 23, 2024
3b613f0
WIP
anthonyshew Sep 23, 2024
2eb7cdc
WIP
anthonyshew Sep 23, 2024
c378a77
WIP
anthonyshew Sep 26, 2024
dd05b07
WIP
anthonyshew Sep 26, 2024
c28db57
WIP
anthonyshew Sep 26, 2024
0cedb3e
WIP
anthonyshew Sep 26, 2024
a797a87
WIP
anthonyshew Sep 26, 2024
f1707a4
WIP
anthonyshew Sep 29, 2024
046e120
WIP
anthonyshew Sep 29, 2024
8bb572f
WIP
anthonyshew Sep 29, 2024
09889d0
WIP
anthonyshew Sep 29, 2024
25af91c
WIP
anthonyshew Sep 29, 2024
3611db0
WIP
anthonyshew Sep 29, 2024
6c6431b
WIP
anthonyshew Sep 29, 2024
8ddedf4
WIP
anthonyshew Sep 30, 2024
35e2145
WIP
anthonyshew Oct 2, 2024
86560e9
WIP
anthonyshew Oct 2, 2024
1b44843
WIP
anthonyshew Oct 2, 2024
88bfa71
WIP
anthonyshew Oct 2, 2024
f754916
WIP
anthonyshew Oct 2, 2024
0e1a789
WIP
anthonyshew Oct 2, 2024
e6b406d
WIP
anthonyshew Oct 2, 2024
cc81046
WIP
anthonyshew Oct 2, 2024
071d024
WIP
anthonyshew Oct 2, 2024
e43e9af
WIP
anthonyshew Oct 2, 2024
de33eab
Merge branch 'main' of https://github.com/anthonyshew/biome into shew…
anthonyshew Oct 2, 2024
3030687
WIP
anthonyshew Oct 2, 2024
f19cee6
Fix codegen.
anthonyshew Oct 2, 2024
2838190
WIP
anthonyshew Oct 2, 2024
82fd461
Update crates/biome_cli/src/commands/mod.rs
anthonyshew Oct 2, 2024
616b5da
WIP
anthonyshew Oct 2, 2024
1dfc0dc
Tests pass and behavior looks correct here. Write some more tests.
anthonyshew Oct 2, 2024
704cc59
Cleanup.
anthonyshew Oct 2, 2024
143db55
Wrote some tests.
anthonyshew Oct 2, 2024
063cb77
Fix codegen.
anthonyshew Oct 2, 2024
e5424b0
Reset codegen.
anthonyshew Oct 3, 2024
358bb87
codegen pls
anthonyshew Oct 3, 2024
66c9e9f
codegen pls
anthonyshew Oct 3, 2024
df889ec
WIP
anthonyshew Oct 3, 2024
497abd8
WIP
anthonyshew Oct 3, 2024
b870607
WIP
anthonyshew Oct 3, 2024
4ba4097
WIP
anthonyshew Oct 3, 2024
0aa9783
Fix JS API.
anthonyshew Oct 3, 2024
d5d8768
Merge branch 'main' into shew-d3bfe
anthonyshew Oct 3, 2024
23eaae2
Update crates/biome_cli/src/commands/mod.rs
anthonyshew Oct 5, 2024
f205f49
Update crates/biome_service/src/file_handlers/json.rs
anthonyshew Oct 5, 2024
50d5d17
Update crates/biome_service/src/file_handlers/graphql.rs
anthonyshew Oct 5, 2024
c143abd
Update crates/biome_service/src/file_handlers/css.rs
anthonyshew Oct 5, 2024
adeeb02
Fixes from review.
anthonyshew Oct 5, 2024
b497bd6
Merge branch 'shew-d3bfe' of https://github.com/anthonyshew/biome int…
anthonyshew Oct 5, 2024
6cd1584
Format.
anthonyshew Oct 5, 2024
9e8285f
Undo codegen since option is no longer there.
anthonyshew Oct 5, 2024
f6ce7b6
Merge branch 'main' into shew-d3bfe
anthonyshew Oct 5, 2024
5638e9a
Fix codegen?
anthonyshew Oct 5, 2024
e39b50a
Merge branch 'shew-d3bfe' of https://github.com/anthonyshew/biome int…
anthonyshew Oct 5, 2024
497a7e1
WIP
anthonyshew Oct 5, 2024
eaeebd4
WIP
anthonyshew Oct 5, 2024
aa121eb
WIP
anthonyshew Oct 5, 2024
45c26f4
WIP
anthonyshew Oct 5, 2024
b2a4ba3
Update snapshot.
anthonyshew Oct 5, 2024
0ccd3d0
Fix merge conflicts.
anthonyshew Oct 17, 2024
d81323d
First working iteration for default message.
anthonyshew Oct 21, 2024
a354279
Remove unneeded param.
anthonyshew Oct 21, 2024
d064a2e
Update snapshots.
anthonyshew Oct 21, 2024
f37180e
Merge branch 'main' of https://github.com/anthonyshew/biome into shew…
anthonyshew Oct 21, 2024
c3e01b7
Merge branch 'main' into shew-01fa9
anthonyshew Oct 21, 2024
aaac2d4
Merge branch 'shew-01fa9' of https://github.com/anthonyshew/biome int…
anthonyshew Oct 21, 2024
a87453b
Merge branch 'main' into shew-01fa9
anthonyshew Oct 21, 2024
7d64d6c
Hard coding...
anthonyshew Oct 24, 2024
83ebb56
Default message is in, I think?
anthonyshew Oct 24, 2024
456b147
Hardcoding a mess worked.
anthonyshew Oct 25, 2024
0aa4667
even bigger mess
anthonyshew Oct 25, 2024
437fe9e
--reason works
anthonyshew Oct 25, 2024
c3a7a39
Merge branch 'shew-01fa9' of https://github.com/anthonyshew/biome int…
anthonyshew Oct 25, 2024
2bb13c6
cleanup
anthonyshew Oct 25, 2024
9fbe822
cleanup
anthonyshew Oct 25, 2024
edfad43
cleanup
anthonyshew Oct 25, 2024
04e8ad5
cleanup
anthonyshew Oct 25, 2024
57f2fb6
Fix help text.
anthonyshew Oct 25, 2024
825a1fc
Add test for only --reason flag.
anthonyshew Oct 25, 2024
c6a105e
New tests good.
anthonyshew Oct 26, 2024
63392b3
It works!
anthonyshew Oct 26, 2024
e09a761
Move option to more fitting place in help text.
anthonyshew Oct 26, 2024
22fa6da
Make error more accurate.
anthonyshew Oct 26, 2024
599ae4a
Merge branch 'main' into shew-01fa9
anthonyshew Oct 26, 2024
2c6d08a
Fix codegen.
anthonyshew Oct 26, 2024
1d13537
Merge branch 'shew-01fa9' of https://github.com/anthonyshew/biome int…
anthonyshew Oct 26, 2024
3f43eb8
Update crates/biome_cli/src/execute/process_file/lint.rs
anthonyshew Oct 28, 2024
2d92ba1
Update crates/biome_cli/src/commands/mod.rs
anthonyshew Oct 28, 2024
f59db4f
Update crates/biome_cli/src/diagnostics.rs
anthonyshew Oct 28, 2024
e97a887
Remove some clones.
anthonyshew Oct 28, 2024
0656cde
Fewer String types.
anthonyshew Oct 28, 2024
2b9ad0f
WIP
anthonyshew Oct 28, 2024
0bf94d2
Updating tests.
anthonyshew Oct 28, 2024
3e9a369
chore: remove few unneeded allocations
ematipico Oct 28, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions crates/biome_analyze/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -786,6 +786,8 @@ pub struct SuppressionCommentEmitterPayload<'a, L: Language> {
pub suppression_text: &'a str,
/// The original range of the diagnostic where the rule was triggered
pub diagnostic_text_range: &'a TextRange,
/// Explanation for the suppression to be used with `--suppress` and `--reason`
pub suppression_reason: String,
anthonyshew marked this conversation as resolved.
Show resolved Hide resolved
}

type SignalHandler<'a, L, Break> = &'a mut dyn FnMut(&dyn AnalyzerSignal<L>) -> ControlFlow<Break>;
Expand Down
1 change: 1 addition & 0 deletions crates/biome_analyze/src/matcher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,7 @@ mod tests {
_: &mut BatchMutation<Self::Language>,
_: ApplySuppression<Self::Language>,
_: &str,
_: String,
) {
unreachable!("")
}
Expand Down
3 changes: 3 additions & 0 deletions crates/biome_analyze/src/options.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@ pub struct AnalyzerOptions {

/// The file that is being analyzed
pub file_path: PathBuf,

/// Suppression reason to be used with `--suppress` and `--reason`
pub suppression_reason: Option<String>,
}

impl AnalyzerOptions {
Expand Down
1 change: 1 addition & 0 deletions crates/biome_analyze/src/registry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -428,6 +428,7 @@ impl<L: Language + Default> RegistryRule<L> {
result,
params.services,
params.suppression_action,
params.options.suppression_reason.clone(),
params.options,
));

Expand Down
2 changes: 2 additions & 0 deletions crates/biome_analyze/src/rule.rs
Original file line number Diff line number Diff line change
Expand Up @@ -881,6 +881,7 @@ pub trait Rule: RuleMeta + Sized {
ctx: &RuleContext<Self>,
text_range: &TextRange,
suppression_action: &dyn SuppressionAction<Language = RuleLanguage<Self>>,
suppression_reason: Option<String>,
) -> Option<SuppressAction<RuleLanguage<Self>>>
where
Self: 'static,
Expand All @@ -901,6 +902,7 @@ pub trait Rule: RuleMeta + Sized {
mutation: &mut mutation,
token_offset: token,
diagnostic_text_range: text_range,
suppression_reason: suppression_reason.unwrap_or("<explanation>".to_string()),
});

Some(SuppressAction {
Expand Down
14 changes: 10 additions & 4 deletions crates/biome_analyze/src/signals.rs
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,8 @@ pub(crate) struct RuleSignal<'phase, R: Rule> {
services: &'phase ServiceBag,
/// An optional action to suppress the rule.
suppression_action: &'phase dyn SuppressionAction<Language = RuleLanguage<R>>,
/// An optional explanation for the suppression to be used with `--suppress` and `--reason`
suppression_reason: Option<String>,
/// A list of strings that are considered "globals" inside the analyzer
options: &'phase AnalyzerOptions,
}
Expand All @@ -326,7 +328,7 @@ where
suppression_action: &'phase dyn SuppressionAction<
Language = <<R as Rule>::Query as Queryable>::Language,
>,

suppression_reason: Option<String>,
anthonyshew marked this conversation as resolved.
Show resolved Hide resolved
options: &'phase AnalyzerOptions,
) -> Self {
Self {
Expand All @@ -335,6 +337,7 @@ where
state,
services,
suppression_action,
suppression_reason,
options,
}
}
Expand Down Expand Up @@ -402,9 +405,12 @@ where
});
};
if let Some(text_range) = R::text_range(&ctx, &self.state) {
if let Some(suppression_action) =
R::suppress(&ctx, &text_range, self.suppression_action)
{
if let Some(suppression_action) = R::suppress(
&ctx,
&text_range,
self.suppression_action,
self.suppression_reason.clone(),
) {
let action = AnalyzerAction {
rule_name: Some((<R::Group as RuleGroup>::NAME, R::METADATA.name)),
category: ActionCategory::Other(Cow::Borrowed(SUPPRESSION_ACTION_CATEGORY)),
Expand Down
9 changes: 8 additions & 1 deletion crates/biome_analyze/src/suppression_action.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ pub trait SuppressionAction {
mutation,
suppression_text,
diagnostic_text_range,
suppression_reason,
} = payload;

// retrieve the most suited, most left token where the diagnostics was emitted
Expand All @@ -22,7 +23,12 @@ pub trait SuppressionAction {
});

if let Some(apply_suppression) = apply_suppression {
self.apply_suppression(mutation, apply_suppression, suppression_text);
self.apply_suppression(
mutation,
apply_suppression,
suppression_text,
suppression_reason,
);
}
}

Expand Down Expand Up @@ -72,6 +78,7 @@ pub trait SuppressionAction {
mutation: &mut BatchMutation<Self::Language>,
apply_suppression: ApplySuppression<Self::Language>,
suppression_text: &str,
suppression_reason: String,
);
}

Expand Down
1 change: 1 addition & 0 deletions crates/biome_analyze/src/syntax.rs
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ mod tests {
_: &mut BatchMutation<Self::Language>,
_: ApplySuppression<Self::Language>,
_: &str,
_: String,
) {
unreachable!("")
}
Expand Down
1 change: 1 addition & 0 deletions crates/biome_cli/src/commands/check.rs
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ impl CommandRunner for CheckCommandPayload {
apply_unsafe: self.apply_unsafe,
write: self.write,
suppress: false,
suppression_reason: None,
fix: self.fix,
unsafe_: self.unsafe_,
},
Expand Down
3 changes: 3 additions & 0 deletions crates/biome_cli/src/commands/lint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ pub(crate) struct LintCommandPayload {
pub(crate) fix: bool,
pub(crate) unsafe_: bool,
pub(crate) suppress: bool,
pub(crate) suppression_reason: Option<String>,
pub(crate) linter_configuration: Option<PartialLinterConfiguration>,
pub(crate) vcs_configuration: Option<PartialVcsConfiguration>,
pub(crate) files_configuration: Option<PartialFilesConfiguration>,
Expand Down Expand Up @@ -138,6 +139,7 @@ impl CommandRunner for LintCommandPayload {
fix: self.fix,
unsafe_: self.unsafe_,
suppress: self.suppress,
suppression_reason: self.suppression_reason.clone(),
},
console,
)?;
Expand All @@ -148,6 +150,7 @@ impl CommandRunner for LintCommandPayload {
skip: self.skip.clone(),
vcs_targeted: (self.staged, self.changed).into(),
suppress: self.suppress,
suppression_reason: self.suppression_reason.clone(),
})
.set_report(cli_options))
}
Expand Down
1 change: 1 addition & 0 deletions crates/biome_cli/src/commands/migrate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ impl CommandRunner for MigrateCommandPayload {
fix: self.fix,
unsafe_: false,
suppress: false,
suppression_reason: None,
})
}

Expand Down
67 changes: 43 additions & 24 deletions crates/biome_cli/src/commands/mod.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
use crate::changed::{get_changed_files, get_staged_files};
use crate::cli_options::{cli_options, CliOptions, CliReporter, ColorsArg};
use crate::diagnostics::{DeprecatedArgument, DeprecatedConfigurationFile};
use crate::diagnostics::{
DeprecatedArgument, DeprecatedConfigurationFile, IncompatibleEndConfiguration,
};
use crate::execute::Stdin;
use crate::logging::LoggingKind;
use crate::{
Expand Down Expand Up @@ -187,10 +189,6 @@ pub enum BiomeCommand {
#[bpaf(long("write"), switch)]
write: bool,

/// Fix diagnostics with suppression comments if the language supports it.
#[bpaf(long("suppress"))]
suppress: bool,

/// Allow to do unsafe fixes, should be used with `--write` or `--fix`
#[bpaf(long("unsafe"), switch)]
unsafe_: bool,
Expand All @@ -207,6 +205,14 @@ pub enum BiomeCommand {
#[bpaf(long("apply-unsafe"), switch, hide_usage)]
apply_unsafe: bool,

/// Bulk fix diagnostics with suppression comments if the language supports it.
anthonyshew marked this conversation as resolved.
Show resolved Hide resolved
#[bpaf(long("suppress"))]
suppress: bool,

/// Explanation for suppressing diagnostics with `--suppress`
#[bpaf(long("reason"), argument("STRING"))]
suppression_reason: Option<String>,

#[bpaf(external(partial_linter_configuration), hide_usage, optional)]
linter_configuration: Option<PartialLinterConfiguration>,

Expand Down Expand Up @@ -708,6 +714,7 @@ pub(crate) struct FixFileModeOptions {
apply_unsafe: bool,
write: bool,
suppress: bool,
suppression_reason: Option<String>,
fix: bool,
unsafe_: bool,
}
Expand All @@ -725,6 +732,7 @@ pub(crate) fn determine_fix_file_mode(
write,
fix,
suppress,
suppression_reason: _,
unsafe_,
} = options;

Expand Down Expand Up @@ -763,6 +771,7 @@ fn check_fix_incompatible_arguments(options: FixFileModeOptions) -> Result<(), C
apply_unsafe,
write,
suppress,
suppression_reason,
fix,
unsafe_,
} = options;
Expand Down Expand Up @@ -795,7 +804,13 @@ fn check_fix_incompatible_arguments(options: FixFileModeOptions) -> Result<(), C
));
} else if suppress && fix {
return Err(CliDiagnostic::incompatible_arguments("--suppress", "--fix"));
}
} else if !suppress && suppression_reason.is_some() {
return Err(CliDiagnostic::IncompatibleEndConfiguration(
IncompatibleEndConfiguration {
reason: "`--reason` is only valid when `--suppress` is used.".to_string(),
},
));
};
Ok(())
}

Expand Down Expand Up @@ -983,20 +998,21 @@ mod tests {

#[test]
fn incompatible_arguments() {
for (apply, apply_unsafe, write, suppress, fix, unsafe_) in [
(true, true, false, false, false, false), // --apply --apply-unsafe
(true, false, true, false, false, false), // --apply --write
(true, false, false, false, true, false), // --apply --fix
(false, true, false, false, false, true), // --apply-unsafe --unsafe
(false, true, true, false, false, false), // --apply-unsafe --write
(false, true, false, false, true, false), // --apply-unsafe --fix
(false, false, true, false, true, false), // --write --fix
for (apply, apply_unsafe, write, suppress, suppression_reason, fix, unsafe_) in [
(true, true, false, false, None, false, false), // --apply --apply-unsafe
(true, false, true, false, None, false, false), // --apply --write
(true, false, false, false, None, true, false), // --apply --fix
(false, true, false, false, None, false, true), // --apply-unsafe --unsafe
(false, true, true, false, None, false, false), // --apply-unsafe --write
(false, true, false, false, None, true, false), // --apply-unsafe --fix
(false, false, true, false, None, true, false), // --write --fix
] {
assert!(check_fix_incompatible_arguments(FixFileModeOptions {
apply,
apply_unsafe,
write,
suppress,
suppression_reason,
fix,
unsafe_
})
Expand All @@ -1008,10 +1024,10 @@ mod tests {
fn safe_fixes() {
let mut console = BufferConsole::default();

for (apply, apply_unsafe, write, suppress, fix, unsafe_) in [
(true, false, false, false, false, false), // --apply
(false, false, true, false, false, false), // --write
(false, false, false, false, true, false), // --fix
for (apply, apply_unsafe, write, suppress, suppression_reason, fix, unsafe_) in [
(true, false, false, false, None, false, false), // --apply
(false, false, true, false, None, false, false), // --write
(false, false, false, false, None, true, false), // --fix
] {
assert_eq!(
determine_fix_file_mode(
Expand All @@ -1020,6 +1036,7 @@ mod tests {
apply_unsafe,
write,
suppress,
suppression_reason,
fix,
unsafe_
},
Expand All @@ -1035,10 +1052,10 @@ mod tests {
fn safe_and_unsafe_fixes() {
let mut console = BufferConsole::default();

for (apply, apply_unsafe, write, suppress, fix, unsafe_) in [
(false, true, false, false, false, false), // --apply-unsafe
(false, false, true, false, false, true), // --write --unsafe
(false, false, false, false, true, true), // --fix --unsafe
for (apply, apply_unsafe, write, suppress, suppression_reason, fix, unsafe_) in [
(false, true, false, false, None, false, false), // --apply-unsafe
(false, false, true, false, None, false, true), // --write --unsafe
(false, false, false, false, None, true, true), // --fix --unsafe
] {
assert_eq!(
determine_fix_file_mode(
Expand All @@ -1047,6 +1064,7 @@ mod tests {
apply_unsafe,
write,
suppress,
suppression_reason,
fix,
unsafe_
},
Expand All @@ -1062,15 +1080,16 @@ mod tests {
fn no_fix() {
let mut console = BufferConsole::default();

let (apply, apply_unsafe, write, suppress, fix, unsafe_) =
(false, false, false, false, false, false);
let (apply, apply_unsafe, write, suppress, suppression_reason, fix, unsafe_) =
(false, false, false, false, None, false, false);
assert_eq!(
determine_fix_file_mode(
FixFileModeOptions {
apply,
apply_unsafe,
write,
suppress,
suppression_reason,
fix,
unsafe_
},
Expand Down
2 changes: 1 addition & 1 deletion crates/biome_cli/src/diagnostics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ pub struct ServerNotRunning;
)
)]
pub struct IncompatibleEndConfiguration {
reason: String,
pub reason: String,
anthonyshew marked this conversation as resolved.
Show resolved Hide resolved
}

#[derive(Debug, Diagnostic)]
Expand Down
2 changes: 2 additions & 0 deletions crates/biome_cli/src/execute/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,8 @@ pub enum TraversalMode {
vcs_targeted: VcsTargeted,
/// Supress existing diagnostics with a `// biome-ignore` comment
suppress: bool,
/// Explanation for suppressing diagnostics with `--suppress` and `--reason`
suppression_reason: Option<String>,
},
/// This mode is enabled when running the command `biome ci`
CI {
Expand Down
8 changes: 6 additions & 2 deletions crates/biome_cli/src/execute/process_file.rs
Original file line number Diff line number Diff line change
Expand Up @@ -209,9 +209,13 @@ pub(crate) fn process_file(ctx: &TraversalOptions, biome_path: &BiomePath) -> Fi
let shared_context = &SharedTraversalOptions::new(ctx);

match ctx.execution.traversal_mode {
TraversalMode::Lint { .. } => {
TraversalMode::Lint {
ref suppression_reason,
suppress,
..
} => {
// the unsupported case should be handled already at this point
lint(shared_context, biome_path)
lint(shared_context, biome_path, suppress, suppression_reason)
}
TraversalMode::Format { .. } => {
// the unsupported case should be handled already at this point
Expand Down
1 change: 1 addition & 0 deletions crates/biome_cli/src/execute/process_file/assists.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ pub(crate) fn assists_with_guard<'ctx>(
RuleCategoriesBuilder::default().with_action().build(),
only.clone(),
skip.clone(),
None,
)
.with_file_path_and_code(
workspace_file.path.display().to_string(),
Expand Down
2 changes: 1 addition & 1 deletion crates/biome_cli/src/execute/process_file/check.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ pub(crate) fn check_file<'ctx>(
tracing::info_span!("Process check", path =? workspace_file.path.display()).in_scope(
move || {
if file_features.supports_lint() {
let lint_result = lint_with_guard(ctx, &mut workspace_file);
let lint_result = lint_with_guard(ctx, &mut workspace_file, false, None);
match lint_result {
Ok(status) => {
if status.is_changed() {
Expand Down
Loading
Loading