summaryrefslogtreecommitdiff
path: root/cli/tools/lint/mod.rs
diff options
context:
space:
mode:
authorNayeem Rahman <nayeemrmn99@gmail.com>2024-03-26 15:52:20 +0000
committerGitHub <noreply@github.com>2024-03-26 15:52:20 +0000
commit3b61104e2a8984255f74827b0f1c23476ccd8209 (patch)
tree43228946e39342e6c71f87ae720f93e7f8c63901 /cli/tools/lint/mod.rs
parentd6452b39460ee46ade1ed9a5c95e469fd23a812c (diff)
refactor(lsp): unify config file data into ConfigTree (#23032)
Diffstat (limited to 'cli/tools/lint/mod.rs')
-rw-r--r--cli/tools/lint/mod.rs6
1 files changed, 6 insertions, 0 deletions
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