Checking License Headers

Checks source files for the required license header — reports files where the header is missing, stale, or malformed, with the exact first divergent line. Use during an audit or before a release.

brokenrobot-xyz Updated 0 repo stars

File contents

Check license headers

Compare each source file's opening lines against the header template the user names.

Steps

  1. List the source files with Glob, honoring the ignore patterns the user gives.
  2. Compare each file's opening lines against the template. Report a missing header, a stale year, and any other divergence, each with the first line that differs.
  3. Report one table — file, status, first divergent line — and the count per status.

brokenrobot-xyz/agent-skills commit 8a0a80ace4

Frequently asked questions

npx get-skill add brokenrobot-xyz/checking-license-headers