pub fn lint_string(
content: &str,
options: &LintOptions,
) -> Result<LintReport, Error>Expand description
Lint one rule file’s markdown content (frontmatter + body).
Validates frontmatter against the embedded schema and applies semantic checks
such as name vs filename stem and trigger: auto requiring paths or
keywords.
§Examples
use agent_rules_tool::{lint_string, LintOptions};
let content = "---\nname: my-rule\ntrigger: always\n---\n\n# My rule\n";
let report = lint_string(content, &LintOptions::default())?;
assert!(report.valid);