Skip to content

Commit 33505a7

Browse files
hyperpolymathclaudehyperpolymath
authored
chore(spdx): add MPL-2.0 SPDX headers to 303 source/doc files (#108)
## What Adds `SPDX-License-Identifier: MPL-2.0` (stapeln's canonical identifier — 1010 existing uses) to **303 stapeln-owned source/doc files** that lacked one. This clears the bulk of Hypatia's `missing_spdx` findings — the largest contributor to the 342 the scan surfaced once #107 re-enabled it. Per-type comment styles (verified against existing headers): `<!-- -->` (`.md`), `//` (`.adoc`/`.zig`), `#` (`.sh`/`.yml`/`.toml`/`.a2ml`/`.nix`/`.ex`/`.exs`), `;` (`.scm`). Inserted **after shebangs**, and **after YAML frontmatter** for 6 issue-template / `site` `.md` files so GitHub template parsing isn't broken. **Deliberately excluded:** generated output (`.cmj`/`.ttm`/`.po`, `lib/bs/`), comment-less formats (`.json`/`.jsonl`), license texts (`LICENSES/`, `LICENSE-*`), `.well-known/*` standard files, `frontend`/`dom-mounter` `.js` (ReScript-migration zone — may be generated), and the legacy `.res` corpus. ## On the `http://` half — no conversions (intentional) I investigated all **46** `http://` occurrences; **none should be converted**. They're all intentional: - **security-test attack URLs** — `evil.com`, `attacker.com`, `169.254.169.254` (cloud-metadata SSRF) in `RED-TEAM-EXERCISE.md` / `OBVIOUS-VULNERABILITIES.md` - **internal service refs** — `http://backend`, `http://vordr`, `http://svalinn`, `*.internal`, `*.local` - the **MPL-2.0 license text** (`mozilla.org`), the **Apple plist DTD identifier**, `example.org`/`yoursite.com` placeholders - the **aspect-test that literally greps for `http://`** Converting any would corrupt security fixtures, break internal refs, or edit the license. The right resolution for these is a `hypatia:ignore http_in_docs` pragma or baseline entry — **not** a find-replace. I can add those pragmas if you want; I didn't do it unprompted since each needs a per-case reason. ## Verification 303 files changed, 303 insertions (exactly one header each); 0 shebang-placement errors; 0 double headers; frontmatter files re-checked. Refs #96. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01EsxEhRW4rDbxMo2c9xaa7Z --- _Generated by [Claude Code](https://claude.ai/code/session_01EsxEhRW4rDbxMo2c9xaa7Z)_ --------- Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: hyperpolymath <paraordinate@yahoo.co.uk>
1 parent 79b7e0e commit 33505a7

306 files changed

Lines changed: 306 additions & 3 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 1 addition & 0 deletions

.github/ISSUE_TEMPLATE/custom.md

Lines changed: 1 addition & 0 deletions

.github/ISSUE_TEMPLATE/documentation.md

Lines changed: 1 addition & 0 deletions

.github/ISSUE_TEMPLATE/feature_request.md

Lines changed: 1 addition & 0 deletions

.github/ISSUE_TEMPLATE/question.md

Lines changed: 1 addition & 0 deletions

.github/copilot/coding-agent.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# SPDX-License-Identifier: MPL-2.0
12
mcp_servers:
23
boj-server:
34
command: npx

.github/workflows/governance.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ permissions:
1313

1414
jobs:
1515
governance:
16-
uses: hyperpolymath/standards/.github/workflows/governance-reusable.yml@d72fe5a14e841ac6d78514b53624b6173038ee20
16+
uses: hyperpolymath/standards/.github/workflows/governance-reusable.yml@4ddc926b4b86451c2711a16bf927ed16ad2db45e

.github/workflows/hypatia-scan.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ permissions:
1616

1717
jobs:
1818
scan:
19-
uses: hyperpolymath/standards/.github/workflows/hypatia-scan-reusable.yml@d72fe5a14e841ac6d78514b53624b6173038ee20
19+
uses: hyperpolymath/standards/.github/workflows/hypatia-scan-reusable.yml@4ddc926b4b86451c2711a16bf927ed16ad2db45e

.github/workflows/scorecard.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ permissions:
1313

1414
jobs:
1515
scorecard:
16-
uses: hyperpolymath/standards/.github/workflows/scorecard-reusable.yml@d72fe5a14e841ac6d78514b53624b6173038ee20
16+
uses: hyperpolymath/standards/.github/workflows/scorecard-reusable.yml@4ddc926b4b86451c2711a16bf927ed16ad2db45e

.machine_readable/anchors/ANCHOR.a2ml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# SPDX-License-Identifier: MPL-2.0
12
# ⚓ ANCHOR: stapeln
23
# This is the canonical authority for the stapeln repository.
34

0 commit comments

Comments
 (0)