MCPcopy Create free account
hub / github.com/ForestHubAI/edge-agents / expectedLicense

Function expectedLicense

scripts/license-headers.mjs:49–51  ·  view source on GitHub ↗
(file)

Source from the content-addressed store, hash-verified

47 .filter((l) => l.trim() !== "")
48 .map((l) => l.replace(/^\/\/ ?/, ""));
49}
50
51function expectedLicense(file) {
52 return APACHE_PREFIXES.some((p) => file.startsWith(p)) ? "Apache-2.0" : "AGPL-3.0-only";
53}
54

Callers 2

headerLinesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected