diff --git a/crates/biome_service/src/file_handlers/graphql.rs b/crates/biome_service/src/file_handlers/graphql.rs index 9fa1f6bf7fb0..d398fc33eedd 100644 --- a/crates/biome_service/src/file_handlers/graphql.rs +++ b/crates/biome_service/src/file_handlers/graphql.rs @@ -164,7 +164,6 @@ fn lint(params: LintParams) -> LintResults { .map(|selector| selector.into()) .collect::>(); - dbg!(&enabled_rules); let filter = AnalysisFilter { categories: params.categories, enabled_rules: Some(enabled_rules.as_slice()), diff --git a/crates/biome_service/src/workspace/server.rs b/crates/biome_service/src/workspace/server.rs index dd1a4bb19c93..6abd9168a3fb 100644 --- a/crates/biome_service/src/workspace/server.rs +++ b/crates/biome_service/src/workspace/server.rs @@ -598,7 +598,6 @@ impl Workspace for WorkspaceServer { let (diagnostics, errors, skipped_diagnostics) = if let Some(lint) = self.get_file_capabilities(¶ms.path).analyzer.lint { info_span!("Pulling diagnostics", categories =? params.categories).in_scope(|| { - dbg!("here"); let results = lint(LintParams { parse, workspace: &self.workspace(), diff --git a/crates/biome_service/tests/workspace.rs b/crates/biome_service/tests/workspace.rs index cd08eeeac7e3..2435c39ebd5b 100644 --- a/crates/biome_service/tests/workspace.rs +++ b/crates/biome_service/tests/workspace.rs @@ -1,6 +1,7 @@ #[cfg(test)] mod test { use biome_analyze::RuleCategories; + use biome_configuration::linter::{RuleGroup, RuleSelector}; use biome_fs::BiomePath; use biome_js_syntax::{JsFileSource, TextSize}; use biome_service::file_handlers::DocumentFileSource; @@ -221,10 +222,17 @@ type User { }, ) .unwrap(); - let result = graphql_file.pull_diagnostics(RuleCategories::all(), 10, vec![], vec![]); + let result = graphql_file.pull_diagnostics( + RuleCategories::all(), + 10, + vec![RuleSelector::Rule( + RuleGroup::Nursery, + "useDeprecatedReason", + )], + vec![], + ); assert!(result.is_ok()); let diagnostics = result.unwrap().diagnostics; - - dbg!(diagnostics); + assert_eq!(diagnostics.len(), 1) } }