#!/usr/bin/env bash
# Copyright 2026 Petri Koistinen. Licensed under the Apache License, Version 2.0.

# Refuses any commit while the lint gate fails. Clean tree: no output.
# Findings print to stderr. The gate is Scripts/lint.sh.
#
# Activate once per clone:
#   git config core.hooksPath Scripts/githooks

set -euo pipefail
cd "$(git rev-parse --show-toplevel)"
Scripts/lint.sh
