pub struct LanguageSupport {
pub name: &'static str,
pub display_name: &'static str,
pub extensions: &'static [&'static str],
pub tools: &'static [&'static ToolSpec],
pub conventions: &'static [&'static str],
pub vendored_dirs: &'static [&'static str],
}Expand description
Everything drep needs to know about one language.
Attributes: name: Registry key (lowercase, e.g. “typescript”). display_name: How the language is named to the LLM and to users. extensions: Lowercased suffixes this language owns, including the dot. tools: Deterministic checkers, in the order they should run. conventions: Language-specific guidance appended to the analysis prompt - the part that used to be hardcoded as PEP 8. vendored_dirs: Dependency and build directories this language creates, never descended into. Declared here rather than in a global list so adding a language stays a single-file change.
Fields§
§name: &'static strRegistry key (lowercase, e.g. "typescript").
display_name: &'static strHow the language is named to the LLM and to users.
extensions: &'static [&'static str]Lowercased suffixes this language owns, including the dot.
tools: &'static [&'static ToolSpec]Deterministic checkers, in the order they should run.
conventions: &'static [&'static str]Language-specific guidance appended to the analysis prompt - the part that used to be hardcoded as PEP 8.
vendored_dirs: &'static [&'static str]Dependency and build directories this language creates, never descended into. Declared here rather than in a global list so adding a language stays a single-file change.
Trait Implementations§
Source§impl Clone for LanguageSupport
impl Clone for LanguageSupport
Source§fn clone(&self) -> LanguageSupport
fn clone(&self) -> LanguageSupport
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more