From 3b61104e2a8984255f74827b0f1c23476ccd8209 Mon Sep 17 00:00:00 2001 From: Nayeem Rahman Date: Tue, 26 Mar 2024 15:52:20 +0000 Subject: refactor(lsp): unify config file data into ConfigTree (#23032) --- cli/tools/lint/mod.rs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'cli/tools') diff --git a/cli/tools/lint/mod.rs b/cli/tools/lint/mod.rs index cb282663c..fec664784 100644 --- a/cli/tools/lint/mod.rs +++ b/cli/tools/lint/mod.rs @@ -857,6 +857,12 @@ pub struct ConfiguredRules { pub no_slow_types: bool, } +impl Default for ConfiguredRules { + fn default() -> Self { + get_configured_rules(Default::default(), None) + } +} + impl ConfiguredRules { fn incremental_cache_state(&self) -> Vec<&str> { // use a hash of the rule names in order to bust the cache -- cgit v1.2.3