mirror of
https://github.com/compiler-explorer/compiler-explorer.git
synced 2026-07-22 02:56:57 -04:00
- Require two distinctive BSD-2 anchors (the "Redistribution and use..." grant and the "AS IS" disclaimer line) instead of just the single AS-IS line, so a file can't pass on one stray phrase. Still lenient on exact punctuation/quoting to avoid brittleness. - Close the file-descriptor leak in hasBanner(): the read is now in a try/finally so the fd is always closed even if readSync throws. - Stop running the header check twice per commit. It was in both lint-staged (per staged file) and the husky hook (full-tree scan). Drop the lint-staged wiring and keep the single full-tree scan in the hook, matching how check-frontend-imports is wired. Cheap (<1s) and catches everything. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>