Skip to main content

run_pre_commit

Function run_pre_commit 

Source
pub fn run_pre_commit(config: &MarketplaceConfig) -> ValidationResult
Expand 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.