pub fn run_pre_commit(config: &MarketplaceConfig) -> ValidationResultExpand description
Run pre-commit validation.
This validates only the plugins that have staged changes (detected via
git diff --cached). If marketplace.json itself is staged, the
marketplace structure is also validated (skipping individual plugin
validation to avoid redundancy).
Returns a ValidationResult that the caller can inspect to decide
whether to allow or block the commit.