#!/bin/bash
set -euo pipefail

cd "$(dirname "$0")/.."
command -v cpplint >/dev/null || { echo "Error: cpplint not found"; exit 127; }
cpplint --linelength=120 --filter=-legal,-readability/todo,-whitespace/indent,-whitespace/comments --recursive cpp/src cpp/prog
