[ty] Allow overriding rules for specific files (#18648)

This commit is contained in:
Micha Reiser
2025-06-15 15:27:39 +02:00
committed by GitHub
parent 782363b736
commit 3a430fa6da
31 changed files with 1945 additions and 312 deletions

View File

@@ -260,7 +260,7 @@ impl ty_python_semantic::Db for CorpusDb {
!file.path(self).is_vendored_path()
}
fn rule_selection(&self) -> &RuleSelection {
fn rule_selection(&self, _file: File) -> &RuleSelection {
&self.rule_selection
}