kingfisher/.pre-commit-hooks.yaml

26 lines
940 B
YAML
Raw Normal View History

- id: kingfisher-auto
name: kingfisher (auto-install)
description: Automatically downloads and caches the Kingfisher binary, then scans staged changes. No manual installation required.
entry: scripts/kingfisher-pre-commit-auto.sh
language: script
pass_filenames: false
2026-02-03 09:32:06 -08:00
stages: [pre-commit]
2025-12-09 12:56:55 -08:00
- id: kingfisher-docker
name: kingfisher (docker)
description: Run Kingfisher in Docker against staged changes at the repository root. Requires Docker but no local install.
2026-01-01 22:24:57 -08:00
entry: ghcr.io/mongodb/kingfisher:latest
2025-12-09 12:56:55 -08:00
language: docker
args: ["scan", ".", "--staged", "--quiet", "--no-update-check"]
2025-12-09 12:56:55 -08:00
pass_filenames: false
2026-02-03 09:32:06 -08:00
stages: [pre-commit]
2025-12-09 12:56:55 -08:00
- id: kingfisher
name: kingfisher
description: Scan staged changes with the locally installed Kingfisher binary.
entry: kingfisher
language: system
args: ["scan", ".", "--staged", "--quiet", "--no-update-check"]
2025-12-09 12:56:55 -08:00
pass_filenames: false
types: [file]
2026-02-03 09:32:06 -08:00
stages: [pre-commit]