Files
mattgodbolt-molty 13752840c5 Add CI check enforcing license header banners
We used to enforce the BSD-2-Clause license banner via eslint-plugin-header,
but that check was lost when we migrated from ESLint to Biome (which has no
equivalent rule). This reinstates it as a standalone node script, modelled on
the existing check-frontend-imports.js.

The check requires every source file under lib/, static/, shared/, types/,
test/ and cypress/ to open with a `// Copyright (c) ...` line followed by the
BSD-2-Clause disclaimer. The year and holder are not constrained (the tree has
many holders). Generated, vendored and third-party-licensed files are exempt.

Wired into CI, `npm run check`, the Makefile pre-commit target, the husky
pre-commit hook, and lint-staged (per-file, for staged commits).

Also backfills the banner on the 42 CE-authored files that were missing it,
using each file's git creation year.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-02 12:37:52 -05:00
..