pub async fn run_lint(
input: LintInput,
repo_path: Option<&Path>,
context_dir: Option<&Path>,
strict: bool,
) -> Result<LintOutcome>Expand description
Non-interactive core for omni-dev git commit message lint.
Shared by the CLI and the MCP git_lint_commits tool. No AI client
involved — deterministic and synchronous under the hood, async only
for call-site parity with super::run_check.
repo_path selects the repository (None defaults to the current
working directory); context_dir overrides the .omni-dev/ resolution
chain for both scopes.yaml and commit-rules.yaml.