4
4
* The OpenSearch Contributors require contributions made to
5
5
* this file be licensed under the Apache-2.0 license or a
6
6
* compatible open source license.
7
+ *
8
+ * Any modifications Copyright OpenSearch Contributors. See
9
+ * GitHub history for details.
7
10
*/
8
11
9
12
/*
25
28
* under the License.
26
29
*/
27
30
28
- /*
29
- * Modifications Copyright OpenSearch Contributors. See
30
- * GitHub history for details.
31
- */
32
-
33
31
/**
34
- * For new files created by OpenSearch Contributers
32
+ * For new files created by OpenSearch Contributors
35
33
*/
36
- const OSD_HEADER = `
34
+ const OSD_NEW_HEADER = `
37
35
/*
38
36
* Copyright OpenSearch Contributors
39
37
* SPDX-License-Identifier: Apache-2.0
40
38
*/
41
39
` ;
42
40
43
41
/**
44
- * For files that modify or use code with an exsting OSS header
42
+ * For modified and modified files with external open source code
45
43
*/
46
- const OSS_HEADER = `
44
+ const OSD_HEADER = `
47
45
/*
48
46
* SPDX-License-Identifier: Apache-2.0
49
47
*
50
48
* The OpenSearch Contributors require contributions made to
51
- * this file be licensed under the Apache-2.0 license or a
49
+ * this file be licensed under the Apache-2.0 license or a
52
50
* compatible open source license.
51
+ *
52
+ * Any modifications Copyright OpenSearch Contributors. See
53
+ * GitHub history for details.
53
54
*/
54
55
` ;
55
56
56
- const OSS_MODIFIED_HEADER = `
57
+ const OSD_BAD_HEADER = `
57
58
/*
58
59
* Modifications Copyright OpenSearch Contributors. See
59
60
* GitHub history for details.
@@ -156,13 +157,14 @@ module.exports = {
156
157
'@osd/eslint/require-license-header' : [
157
158
'error' ,
158
159
{
159
- licenses : [ OSD_HEADER , OSS_HEADER ] ,
160
+ licenses : [ OSD_NEW_HEADER , OSD_HEADER ] ,
160
161
} ,
161
162
] ,
162
163
'@osd/eslint/disallow-license-headers' : [
163
164
'error' ,
164
165
{
165
166
licenses : [
167
+ OSD_BAD_HEADER ,
166
168
SAFER_LODASH_SET_HEADER ,
167
169
SAFER_LODASH_SET_LODASH_HEADER ,
168
170
SAFER_LODASH_SET_DEFINITELYTYPED_HEADER ,
@@ -198,6 +200,9 @@ module.exports = {
198
200
'error' ,
199
201
{
200
202
licenses : [
203
+ OSD_BAD_HEADER ,
204
+ OSD_NEW_HEADER ,
205
+ OSD_HEADER ,
201
206
APACHE_2_0_LICENSE_HEADER ,
202
207
SAFER_LODASH_SET_HEADER ,
203
208
SAFER_LODASH_SET_DEFINITELYTYPED_HEADER ,
@@ -219,11 +224,12 @@ module.exports = {
219
224
'error' ,
220
225
{
221
226
licenses : [
222
- OSS_HEADER ,
227
+ OSD_BAD_HEADER ,
228
+ OSD_NEW_HEADER ,
229
+ OSD_HEADER ,
223
230
APACHE_2_0_LICENSE_HEADER ,
224
231
SAFER_LODASH_SET_LODASH_HEADER ,
225
232
SAFER_LODASH_SET_DEFINITELYTYPED_HEADER ,
226
- OSS_MODIFIED_HEADER ,
227
233
] ,
228
234
} ,
229
235
] ,
@@ -242,11 +248,12 @@ module.exports = {
242
248
'error' ,
243
249
{
244
250
licenses : [
245
- OSS_HEADER ,
251
+ OSD_BAD_HEADER ,
252
+ OSD_NEW_HEADER ,
253
+ OSD_HEADER ,
246
254
APACHE_2_0_LICENSE_HEADER ,
247
255
SAFER_LODASH_SET_HEADER ,
248
256
SAFER_LODASH_SET_LODASH_HEADER ,
249
- OSS_MODIFIED_HEADER ,
250
257
] ,
251
258
} ,
252
259
] ,
0 commit comments