pub const DEFAULT_TEMPLATE: &str = include_str!("../../assets/default_template.md");
pub const CONFIG_LINT_PLUGIN: &str = include_str!("../../assets/config_lint.yml");
pub const INIT_CONFIG: &str = include_str!("../../assets/init.llmlint.yml");
pub fn bundled(id: &str) -> Option<&'static str> {
match id {
"llmlint:config-lint" => Some(CONFIG_LINT_PLUGIN),
_ => None,
}
}
#[cfg(test)]
mod tests {
use super::*;
#[test]
fn bundled_plugin_resolves() {
assert!(bundled("llmlint:config-lint").is_some());
assert!(bundled("llmlint:nope").is_none());
}
#[test]
fn embedded_assets_are_non_empty() {
assert!(DEFAULT_TEMPLATE.contains("{% for r in rules %}"));
assert!(CONFIG_LINT_PLUGIN.contains("name_matches_description"));
assert!(INIT_CONFIG.contains("llmlint:config-lint"));
}
}