You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: scripts/check-license-headers.mjs
+79-17Lines changed: 79 additions & 17 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,8 @@
1
1
#!/usr/bin/env node
2
2
3
-
// SPDX-License-Identifier: BUSL-1.1; Copyright (c) 2025 Social Connect Labs, Inc.; Licensed under BUSL-1.1 (see LICENSE); Apache-2.0 from 2029-06-11
3
+
// SPDX-FileCopyrightText: 2025 Social Connect Labs, Inc.
4
+
// SPDX-License-Identifier: BUSL-1.1
5
+
// NOTE: Converts to Apache-2.0 on 2029-06-11 per LICENSE.
4
6
5
7
/**
6
8
* Script to check and fix license header formatting
@@ -10,9 +12,17 @@
10
12
importfsfrom'fs';
11
13
importpathfrom'path';
12
14
13
-
constLICENSE_HEADER=
15
+
// Legacy composite format (being phased out)
16
+
constLEGACY_HEADER=
14
17
'// SPDX-License-Identifier: BUSL-1.1; Copyright (c) 2025 Social Connect Labs, Inc.; Licensed under BUSL-1.1 (see LICENSE); Apache-2.0 from 2029-06-11';
15
18
19
+
// Canonical multi-line format (preferred)
20
+
constCANONICAL_HEADER_LINES=[
21
+
'// SPDX-FileCopyrightText: 2025 Social Connect Labs, Inc.',
22
+
'// SPDX-License-Identifier: BUSL-1.1',
23
+
'// NOTE: Converts to Apache-2.0 on 2029-06-11 per LICENSE.',
0 commit comments