Files
potato-mesh/scripts/check-license-headers.sh
T
l5y bb95b0792d web: fix chat (#800)
* chore: add guardrails

* docs: fix meshcore badge

* web: life chat message cap at 1000 in frontend

* web: honor protocol in chat

* web: deprioritize test channels

* fix ci
2026-06-19 16:37:41 +02:00

23 lines
756 B
Bash
Executable File

#!/usr/bin/env bash
# Copyright © 2025-26 l5yth & contributors
# Licensed under the Apache License, Version 2.0 (see LICENSE)
#
# Fail if any tracked source or comment-capable config file is missing the
# exact Apache notice mandated by CLAUDE.md and ACCEPTANCE.md (check B4).
set -euo pipefail
NOTICE='Copyright © 2025-26 l5yth & contributors'
missing=$(git ls-files \
'*.rb' '*.py' '*.js' '*.rs' '*.dart' \
'*.yml' '*.yaml' '*.toml' '*.sh' '*.nix' 'Dockerfile' '*/Dockerfile' \
| grep -vE '(^|/)(vendor|node_modules|build|\.dart_tool)/' \
| xargs grep -L "$NOTICE" || true)
if [ -n "$missing" ]; then
echo "Files missing the Apache notice ('${NOTICE}'):"
echo "$missing"
exit 1
fi
echo "All checked files carry the Apache notice."