@iobroker/repochecker 4.3.0-alpha.0 → 5.0.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +14 -1
- package/doc/issues.json +0 -6
- package/index.js +37 -37
- package/lib/{M000_PackageJson.js → M0000_PackageJson.js} +184 -162
- package/lib/{M100_IOPackageJson.js → M1000_IOPackageJson.js} +246 -242
- package/lib/{M250_Npm.js → M2000_Npm.js} +36 -20
- package/lib/{M300_Testing.js → M3000_Testing.js} +8 -8
- package/lib/{M400_Repository.js → M4000_Repository.js} +117 -110
- package/lib/{M500_Code.js → M5000_Code.js} +89 -85
- package/lib/{M500__JsonConfig.js → M5500__JsonConfig.js} +30 -30
- package/lib/{M600_Readme.js → M6000_Readme.js} +28 -21
- package/lib/{M700_License.js → M7000_License.js} +12 -12
- package/lib/{M800_Github.js → M8000_Github.js} +12 -12
- package/lib/{M900_GitNpmIgnore.js → M9000_GitNpmIgnore.js} +25 -25
- package/lib/common.js +9 -1
- package/package.json +1 -1
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
This module is a support module for iobroker.repochecker
|
|
4
4
|
|
|
5
5
|
Area checked: io-package.json
|
|
6
|
-
Numbering :
|
|
6
|
+
Numbering : 1000 - 1999
|
|
7
7
|
|
|
8
8
|
*/
|
|
9
9
|
|
|
@@ -23,7 +23,7 @@ async function getIOPackageJson(context) {
|
|
|
23
23
|
try {
|
|
24
24
|
context.ioPackageJson = JSON.parse(context.ioPackageJson);
|
|
25
25
|
} catch (e) {
|
|
26
|
-
context.errors.push(`[
|
|
26
|
+
context.errors.push(`[E1000] Cannot parse ioPackage.json: ${e}`);
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
29
|
return context;
|
|
@@ -108,7 +108,7 @@ async function validateIOPackageSchema(context) {
|
|
|
108
108
|
|
|
109
109
|
const schemaData = await common.downloadURL(schemaUrl, false);
|
|
110
110
|
if (!schemaData) {
|
|
111
|
-
context.warnings.push(
|
|
111
|
+
context.warnings.push(`[W1107] Could not download ${schemaUrl} for validation of io-package.json`);
|
|
112
112
|
return context;
|
|
113
113
|
}
|
|
114
114
|
|
|
@@ -116,7 +116,7 @@ async function validateIOPackageSchema(context) {
|
|
|
116
116
|
|
|
117
117
|
// Initialize AJV validator
|
|
118
118
|
// @ts-expect-error not constructable - but working
|
|
119
|
-
const ajv = new Ajv({ allErrors: true, verbose: true });
|
|
119
|
+
const ajv = new Ajv({ allErrors: true, verbose: true, strictTypes: false });
|
|
120
120
|
const validate = ajv.compile(schema);
|
|
121
121
|
|
|
122
122
|
// Validate io-package.json against schema
|
|
@@ -147,25 +147,25 @@ async function validateIOPackageSchema(context) {
|
|
|
147
147
|
errorMsg = `Property "${path}" ${message}`;
|
|
148
148
|
}
|
|
149
149
|
|
|
150
|
-
context.warnings.push(`[
|
|
150
|
+
context.warnings.push(`[W1105] io-package.json schema validation error: ${errorMsg}`);
|
|
151
151
|
}
|
|
152
152
|
} else {
|
|
153
|
-
context.warnings.push('[
|
|
153
|
+
context.warnings.push('[W1105] io-package.json does not validate against schema');
|
|
154
154
|
}
|
|
155
155
|
}
|
|
156
156
|
} catch (error) {
|
|
157
157
|
common.debug(`Schema validation error: ${error.message}`);
|
|
158
|
-
context.warnings.push(`[
|
|
158
|
+
context.warnings.push(`[W1108] io-package.json schema validation failed: ${error.message}`);
|
|
159
159
|
}
|
|
160
160
|
|
|
161
161
|
return context;
|
|
162
162
|
}
|
|
163
163
|
|
|
164
164
|
async function checkIOPackageJson(context) {
|
|
165
|
-
console.log('\n[
|
|
165
|
+
console.log('\n[E1000 - E1999] checking io-package.json');
|
|
166
166
|
|
|
167
167
|
if (!context.ioPackageJson.native) {
|
|
168
|
-
context.errors.push('[
|
|
168
|
+
context.errors.push('[E1001] io-package.json must have at least empty "native" attribute');
|
|
169
169
|
} else {
|
|
170
170
|
context.checks.push('"native" found in io-package.json');
|
|
171
171
|
|
|
@@ -207,12 +207,12 @@ async function checkIOPackageJson(context) {
|
|
|
207
207
|
);
|
|
208
208
|
if (missingProtected.length) {
|
|
209
209
|
context.warnings.push(
|
|
210
|
-
`[
|
|
210
|
+
`[W1073] Potential sensitive data "${missingProtected.join()}" not listed at "protectedNative" in io-package.json`,
|
|
211
211
|
);
|
|
212
212
|
}
|
|
213
213
|
} else {
|
|
214
214
|
context.warnings.push(
|
|
215
|
-
`[
|
|
215
|
+
`[W1073] Potential sensitive data "${suspiciousKeys.join()}" not listed at "protectedNative" in io-package.json`,
|
|
216
216
|
);
|
|
217
217
|
}
|
|
218
218
|
|
|
@@ -223,24 +223,24 @@ async function checkIOPackageJson(context) {
|
|
|
223
223
|
);
|
|
224
224
|
if (missingProtected.length) {
|
|
225
225
|
context.warnings.push(
|
|
226
|
-
`[
|
|
226
|
+
`[W1074] Potential sensitive data "${missingProtected.join(', ')}" not listed at "encryptedNative" in io-package.json`,
|
|
227
227
|
);
|
|
228
228
|
}
|
|
229
229
|
} else {
|
|
230
230
|
context.warnings.push(
|
|
231
|
-
`[
|
|
231
|
+
`[W1074] Potential sensitive data "${suspiciousKeys.join(', ')}" not listed at "encryptedNative" in io-package.json`,
|
|
232
232
|
);
|
|
233
233
|
}
|
|
234
234
|
}
|
|
235
235
|
|
|
236
236
|
let valid = true;
|
|
237
237
|
if (context.ioPackageJson.encryptedNative && !Array.isArray(context.ioPackageJson.encryptedNative)) {
|
|
238
|
-
context.errors.push(`[
|
|
238
|
+
context.errors.push(`[E1098] "encryptedNative" must be an array at io-package.json`);
|
|
239
239
|
valid = false;
|
|
240
240
|
}
|
|
241
241
|
|
|
242
242
|
if (context.ioPackageJson.protectedNative && !Array.isArray(context.ioPackageJson.protectedNative)) {
|
|
243
|
-
context.errors.push(`[
|
|
243
|
+
context.errors.push(`[E1099] "protectedNative" must be an array at io-package.json`);
|
|
244
244
|
valid = false;
|
|
245
245
|
}
|
|
246
246
|
|
|
@@ -248,7 +248,7 @@ async function checkIOPackageJson(context) {
|
|
|
248
248
|
for (const key of context.ioPackageJson.encryptedNative || []) {
|
|
249
249
|
if (!(context.ioPackageJson.protectedNative && context.ioPackageJson.protectedNative.includes(key))) {
|
|
250
250
|
context.warnings.push(
|
|
251
|
-
`[
|
|
251
|
+
`[W1093] Encrypted native "${key}" should be listed at "protectedNative" in io-package.json`,
|
|
252
252
|
);
|
|
253
253
|
}
|
|
254
254
|
}
|
|
@@ -256,7 +256,7 @@ async function checkIOPackageJson(context) {
|
|
|
256
256
|
for (const key of context.ioPackageJson.protectedNative || []) {
|
|
257
257
|
if (!(context.ioPackageJson.encryptedNative && context.ioPackageJson.encryptedNative.includes(key))) {
|
|
258
258
|
context.warnings.push(
|
|
259
|
-
`[
|
|
259
|
+
`[S1094] Consider adding protected native "${key}" to "encryptedNative" in io-package.json`,
|
|
260
260
|
);
|
|
261
261
|
}
|
|
262
262
|
}
|
|
@@ -270,10 +270,10 @@ async function checkIOPackageJson(context) {
|
|
|
270
270
|
if (context.ioPackageJson.native[key] === undefined) {
|
|
271
271
|
// Check if the key contains a dot, indicating an array element path
|
|
272
272
|
if (key.includes('.')) {
|
|
273
|
-
context.warnings.push(`[
|
|
273
|
+
context.warnings.push(`[W1103] Encryption of array elements "${key}" is not yet available`);
|
|
274
274
|
} else {
|
|
275
275
|
context.warnings.push(
|
|
276
|
-
`[
|
|
276
|
+
`[W1095] Protected or encrypted element "${key}" should be listed at "native" in io-package.json`,
|
|
277
277
|
);
|
|
278
278
|
}
|
|
279
279
|
}
|
|
@@ -282,7 +282,7 @@ async function checkIOPackageJson(context) {
|
|
|
282
282
|
}
|
|
283
283
|
|
|
284
284
|
if (!context.ioPackageJson.common) {
|
|
285
|
-
context.errors.push('[
|
|
285
|
+
context.errors.push('[E1002] io-package.json must have common object');
|
|
286
286
|
return context;
|
|
287
287
|
}
|
|
288
288
|
context.checks.push('"common" found in io-package.json');
|
|
@@ -292,7 +292,7 @@ async function checkIOPackageJson(context) {
|
|
|
292
292
|
|
|
293
293
|
if (!context.ioPackageJson.common.name || context.ioPackageJson.common.name !== context.adapterName.toLowerCase()) {
|
|
294
294
|
context.errors.push(
|
|
295
|
-
`[
|
|
295
|
+
`[E1003] "common.name" in io-package.json must be equal to "${context.adapterName.toLowerCase()}'". Now is ${context.ioPackageJson.common.name}`,
|
|
296
296
|
);
|
|
297
297
|
} else {
|
|
298
298
|
context.checks.push('"common.name" is valid in io-package.json');
|
|
@@ -301,11 +301,11 @@ async function checkIOPackageJson(context) {
|
|
|
301
301
|
if (context.ioPackageJson.common.materialize) {
|
|
302
302
|
if (context.ioPackageJson.common.adminUI && context.ioPackageJson.common.adminUI.config) {
|
|
303
303
|
context.warnings.push(
|
|
304
|
-
'[
|
|
304
|
+
'[W1087] "common.materialize" replaced by property "common.adminUI.config" at io-package.json. Please remove.',
|
|
305
305
|
);
|
|
306
306
|
} else {
|
|
307
307
|
context.warnings.push(
|
|
308
|
-
'[
|
|
308
|
+
'[W1078] "common.materialize" is deprecated for admin >= 5 at io-package.json. Please use property "common.adminUI.config".',
|
|
309
309
|
);
|
|
310
310
|
}
|
|
311
311
|
} else {
|
|
@@ -315,11 +315,11 @@ async function checkIOPackageJson(context) {
|
|
|
315
315
|
if (context.ioPackageJson.common.materializeTab) {
|
|
316
316
|
if (context.ioPackageJson.common.adminUI && context.ioPackageJson.common.adminUI.tab) {
|
|
317
317
|
context.warnings.push(
|
|
318
|
-
'[
|
|
318
|
+
'[W1088] "common.materializeTab" replaced by property "common.adminUI.tab" at io-package.json. Please remove.',
|
|
319
319
|
);
|
|
320
320
|
} else {
|
|
321
321
|
context.warnings.push(
|
|
322
|
-
'[
|
|
322
|
+
'[W1079] "common.materializeTab" is deprecated for admin >= 5 at io-package.json. Please use property "common.adminUI.tab".',
|
|
323
323
|
);
|
|
324
324
|
}
|
|
325
325
|
} else {
|
|
@@ -327,13 +327,13 @@ async function checkIOPackageJson(context) {
|
|
|
327
327
|
}
|
|
328
328
|
|
|
329
329
|
if (!context.ioPackageJson.common.titleLang) {
|
|
330
|
-
context.errors.push('[
|
|
330
|
+
context.errors.push('[E1004] No "common.titleLang" found in io-package.json');
|
|
331
331
|
} else {
|
|
332
332
|
context.checks.push('"common.titleLang" found in io-package.json');
|
|
333
333
|
|
|
334
334
|
if (typeof context.ioPackageJson.common.titleLang !== 'object') {
|
|
335
335
|
context.errors.push(
|
|
336
|
-
`[
|
|
336
|
+
`[E1005] "common.titleLang" must be an object. Now: ${JSON.stringify(context.ioPackageJson.common.titleLang)}`,
|
|
337
337
|
);
|
|
338
338
|
} else {
|
|
339
339
|
let missingLang = common.checkLanguages(
|
|
@@ -342,7 +342,7 @@ async function checkIOPackageJson(context) {
|
|
|
342
342
|
);
|
|
343
343
|
if (missingLang.length) {
|
|
344
344
|
context.errors.push(
|
|
345
|
-
`[
|
|
345
|
+
`[E1026] Missing mandatory translation into ${missingLang.join()} of "common.titleLang" in io-package.json.`,
|
|
346
346
|
);
|
|
347
347
|
}
|
|
348
348
|
|
|
@@ -351,7 +351,7 @@ async function checkIOPackageJson(context) {
|
|
|
351
351
|
if (missingLang.length) {
|
|
352
352
|
missingLang = [...new Set(missingLang)]; // make unique
|
|
353
353
|
context.warnings.push(
|
|
354
|
-
`[
|
|
354
|
+
`[W1027] Missing suggested translation into ${missingLang.join()} of "common.titleLang" in io-package.json.`,
|
|
355
355
|
);
|
|
356
356
|
}
|
|
357
357
|
}
|
|
@@ -360,7 +360,7 @@ async function checkIOPackageJson(context) {
|
|
|
360
360
|
const text = context.ioPackageJson.common.titleLang[lang];
|
|
361
361
|
if (text.match(/iobroker/i)) {
|
|
362
362
|
context.errors.push(
|
|
363
|
-
`[
|
|
363
|
+
`[E1006] "common.titleLang" must not have ioBroker in the name. It is clear, for what this adapter was created. Now: ${JSON.stringify(context.ioPackageJson.common.titleLang)}`,
|
|
364
364
|
);
|
|
365
365
|
} else {
|
|
366
366
|
context.checks.push('"common.titleLang" has no ioBroker in it in io-package.json');
|
|
@@ -368,7 +368,7 @@ async function checkIOPackageJson(context) {
|
|
|
368
368
|
|
|
369
369
|
if (text.match(/\sadapter|adapter\s/i)) {
|
|
370
370
|
context.warnings.push(
|
|
371
|
-
`[
|
|
371
|
+
`[W1028] "common.titleLang" should not contain word "adapter" in the name. It is clear, that this is adapter. Now: ${JSON.stringify(context.ioPackageJson.common.titleLang)}`,
|
|
372
372
|
);
|
|
373
373
|
} else {
|
|
374
374
|
context.checks.push('"common.titleLang" has no "adapter" in it in io-package.json');
|
|
@@ -377,12 +377,12 @@ async function checkIOPackageJson(context) {
|
|
|
377
377
|
}
|
|
378
378
|
|
|
379
379
|
if (!context.ioPackageJson.common.version) {
|
|
380
|
-
context.errors.push('[
|
|
380
|
+
context.errors.push('[E1007] No "common.version" found in io-package.json');
|
|
381
381
|
} else {
|
|
382
382
|
context.checks.push('"common.version" found in io-package.json');
|
|
383
383
|
|
|
384
384
|
if (!context.packageJson || context.ioPackageJson.common.version !== context.packageJson.version) {
|
|
385
|
-
context.errors.push('[
|
|
385
|
+
context.errors.push('[E1018] Versions in package.json and in io-package.json are different');
|
|
386
386
|
} else {
|
|
387
387
|
context.checks.push('"common.version" is equal in package.json adn in io-package.json');
|
|
388
388
|
}
|
|
@@ -391,19 +391,19 @@ async function checkIOPackageJson(context) {
|
|
|
391
391
|
// TODO - check format of version to be xx.xx.xx[-text.nn]
|
|
392
392
|
|
|
393
393
|
if (!context.ioPackageJson.common.desc) {
|
|
394
|
-
context.errors.push('[
|
|
394
|
+
context.errors.push('[E1008] No "common.desc" found in io-package.json');
|
|
395
395
|
} else {
|
|
396
396
|
context.checks.push('"common.desc" found in io-package.json');
|
|
397
397
|
|
|
398
398
|
if (typeof context.ioPackageJson.common.desc !== 'object') {
|
|
399
399
|
context.errors.push(
|
|
400
|
-
`[
|
|
400
|
+
`[E1009] "common.desc" in io-package.json must be an object for many languages. Found only "${context.ioPackageJson.common.desc}"`,
|
|
401
401
|
);
|
|
402
402
|
} else {
|
|
403
403
|
let missingLang = common.checkLanguages(context.ioPackageJson.common.desc, context.cfg.requiredLanguages);
|
|
404
404
|
if (missingLang.length) {
|
|
405
405
|
context.errors.push(
|
|
406
|
-
`[
|
|
406
|
+
`[E1033] Missing mandatory translation into ${missingLang.join()} of "common.desc" in io-package.json.`,
|
|
407
407
|
);
|
|
408
408
|
}
|
|
409
409
|
|
|
@@ -412,7 +412,7 @@ async function checkIOPackageJson(context) {
|
|
|
412
412
|
if (missingLang.length) {
|
|
413
413
|
missingLang = [...new Set(missingLang)]; // make unique
|
|
414
414
|
context.warnings.push(
|
|
415
|
-
`[
|
|
415
|
+
`[W1034] Missing suggested translation into ${missingLang.join()} of "common.desc" in io-package.json.`,
|
|
416
416
|
);
|
|
417
417
|
}
|
|
418
418
|
}
|
|
@@ -422,17 +422,17 @@ async function checkIOPackageJson(context) {
|
|
|
422
422
|
|
|
423
423
|
if (!context.ioPackageJson.common.keywords) {
|
|
424
424
|
context.errors.push(
|
|
425
|
-
'[
|
|
425
|
+
'[E1069] "common.keywords" must be an array within io-package.json and contain some useful keywords',
|
|
426
426
|
);
|
|
427
427
|
} else {
|
|
428
428
|
const forbiddenKeywords = ['iobroker', 'adapter', 'smart home'];
|
|
429
429
|
if (!Array.isArray(context.ioPackageJson.common.keywords)) {
|
|
430
430
|
context.errors.push(
|
|
431
|
-
'[
|
|
431
|
+
'[E1069] "common.keywords" must be an array within io-package.json and contain some useful keywords',
|
|
432
432
|
);
|
|
433
433
|
} else if (context.ioPackageJson.common.keywords.length === 0) {
|
|
434
434
|
context.errors.push(
|
|
435
|
-
'[
|
|
435
|
+
'[E1069] "common.keywords" must be an array within io-package.json and contain some useful keywords',
|
|
436
436
|
);
|
|
437
437
|
} else if (
|
|
438
438
|
forbiddenKeywords.filter(keyword =>
|
|
@@ -440,7 +440,7 @@ async function checkIOPackageJson(context) {
|
|
|
440
440
|
).length > 0
|
|
441
441
|
) {
|
|
442
442
|
context.warnings.push(
|
|
443
|
-
`[
|
|
443
|
+
`[W1068] "common.keywords" should not contain "${forbiddenKeywords.join(', ')}" io-package.json`,
|
|
444
444
|
);
|
|
445
445
|
}
|
|
446
446
|
|
|
@@ -448,13 +448,13 @@ async function checkIOPackageJson(context) {
|
|
|
448
448
|
}
|
|
449
449
|
|
|
450
450
|
if (!context.ioPackageJson.common.icon) {
|
|
451
|
-
context.errors.push('[
|
|
451
|
+
context.errors.push('[E1010] Icon not found in the io-package.json');
|
|
452
452
|
} else {
|
|
453
453
|
context.checks.push('"common.icon" found in io-package.json');
|
|
454
454
|
}
|
|
455
455
|
|
|
456
456
|
if (!context.ioPackageJson.common.extIcon) {
|
|
457
|
-
context.errors.push('[
|
|
457
|
+
context.errors.push('[E1011] extIcon not found in the io-package.json');
|
|
458
458
|
} else {
|
|
459
459
|
context.checks.push('"common.extIcon" found in io-package.json');
|
|
460
460
|
|
|
@@ -469,7 +469,7 @@ async function checkIOPackageJson(context) {
|
|
|
469
469
|
fileName = fileName.substring(pos + 1, fileName.length);
|
|
470
470
|
|
|
471
471
|
if (fileName !== context.ioPackageJson.common.icon) {
|
|
472
|
-
context.errors.push('[
|
|
472
|
+
context.errors.push('[E1012] extIcon must be the same as an icon but with github path.');
|
|
473
473
|
} else {
|
|
474
474
|
context.checks.push('"common.extIcon" has same path as repo in io-package.json.');
|
|
475
475
|
}
|
|
@@ -478,10 +478,10 @@ async function checkIOPackageJson(context) {
|
|
|
478
478
|
if (!context.ioPackageJson.common.compact && !context.ioPackageJson.common.onlyWWW) {
|
|
479
479
|
if (context.ioPackageJson.common.compact === undefined) {
|
|
480
480
|
context.warnings.push(
|
|
481
|
-
'[
|
|
481
|
+
'[W1013] Please test whether adapter can support compact mode, if not set "common.compact:false" at io-package.json.',
|
|
482
482
|
);
|
|
483
483
|
} else {
|
|
484
|
-
context.warnings.push('[
|
|
484
|
+
context.warnings.push('[S1039] Please evaluate whether adapter can be modified to support compact mode.');
|
|
485
485
|
}
|
|
486
486
|
} else if (!context.ioPackageJson.common.onlyWWW) {
|
|
487
487
|
context.checks.push('"common.compact" found in io-package.json');
|
|
@@ -494,7 +494,7 @@ async function checkIOPackageJson(context) {
|
|
|
494
494
|
context.ioPackageJson.common.adminUI &&
|
|
495
495
|
context.ioPackageJson.common.adminUI.config !== 'none'
|
|
496
496
|
) {
|
|
497
|
-
context.errors.push('[
|
|
497
|
+
context.errors.push('[E1014] "common.noConfig=true" requires "common.adminUI.config" to be set to "none"');
|
|
498
498
|
}
|
|
499
499
|
if (
|
|
500
500
|
!context.ioPackageJson.common.materialize &&
|
|
@@ -504,7 +504,7 @@ async function checkIOPackageJson(context) {
|
|
|
504
504
|
!(context.ioPackageJson.common.adminUI && context.ioPackageJson.common.adminUI.config === 'none')
|
|
505
505
|
) {
|
|
506
506
|
context.errors.push(
|
|
507
|
-
'[
|
|
507
|
+
'[E1029] Admin support not specified. Please add "common.adminUI.config = json|materialize|html|none"',
|
|
508
508
|
);
|
|
509
509
|
} else {
|
|
510
510
|
context.checks.push('"common.materialize" or valid "common.adminUI.config:xxx" found in io-package.json');
|
|
@@ -512,29 +512,29 @@ async function checkIOPackageJson(context) {
|
|
|
512
512
|
|
|
513
513
|
if (context.ioPackageJson.common.license) {
|
|
514
514
|
context.warnings.push(
|
|
515
|
-
'[
|
|
515
|
+
'[W1081] "common.license" in io-package.json is deprecated. Please define object "common.licenseInformation"',
|
|
516
516
|
);
|
|
517
517
|
}
|
|
518
518
|
|
|
519
519
|
if (!context.ioPackageJson.common.licenseInformation) {
|
|
520
520
|
if (!context.ioPackageJson.common.license) {
|
|
521
|
-
context.errors.push('[
|
|
521
|
+
context.errors.push('[E1015] "common.licenseInformation" not found in io-package.json');
|
|
522
522
|
}
|
|
523
523
|
} else {
|
|
524
524
|
context.checks.push('"common.licenseInformation" found in io-package.json');
|
|
525
525
|
|
|
526
526
|
if (context.ioPackageJson.common.license) {
|
|
527
527
|
context.errors.push(
|
|
528
|
-
'[
|
|
528
|
+
'[E1082] Please remove "common.license" from io-package.json as "common.licenseInformation" is declared.',
|
|
529
529
|
);
|
|
530
530
|
}
|
|
531
531
|
|
|
532
532
|
// check if license valid
|
|
533
533
|
if (!context.ioPackageJson.common.licenseInformation.license) {
|
|
534
|
-
context.errors.push('[
|
|
534
|
+
context.errors.push('[E1083] "common.licenseInformation.license" is missing');
|
|
535
535
|
} else if (!context.cfg.allowedLicenses.includes(context.ioPackageJson.common?.licenseInformation?.license)) {
|
|
536
536
|
context.errors.push(
|
|
537
|
-
'[
|
|
537
|
+
'[E1016] No SPDX license found at "common.licenseInformation". Please use one of listed here: https://spdx.org/licenses/',
|
|
538
538
|
);
|
|
539
539
|
} else {
|
|
540
540
|
context.checks.push('"common.licenseInformation" is valid in io-package.json');
|
|
@@ -544,13 +544,13 @@ async function checkIOPackageJson(context) {
|
|
|
544
544
|
if (
|
|
545
545
|
!['free', 'paid', 'commercial', 'limited'].includes(context.ioPackageJson.common?.licenseInformation?.type)
|
|
546
546
|
) {
|
|
547
|
-
context.errors.push('[
|
|
547
|
+
context.errors.push('[E1070] "common.licenseInformation.type" is invalid. Select valid type (e.g. free)');
|
|
548
548
|
} else {
|
|
549
549
|
context.checks.push('"common.licenseInformation.type" is valid in io-package.json');
|
|
550
550
|
|
|
551
551
|
if (['paid', 'commercial', 'limited'].includes(context.ioPackageJson.common?.licenseInformation?.type)) {
|
|
552
552
|
if (!context.ioPackageJson.common?.licenseInformation?.link) {
|
|
553
|
-
context.errors.push('[
|
|
553
|
+
context.errors.push('[E1071] "common.licenseInformation.link" is required for non-free adapters');
|
|
554
554
|
} else {
|
|
555
555
|
context.checks.push('"common.licenseInformation.link" is valid in io-package.json');
|
|
556
556
|
}
|
|
@@ -561,31 +561,31 @@ async function checkIOPackageJson(context) {
|
|
|
561
561
|
!context.packageJson ||
|
|
562
562
|
context.ioPackageJson.common?.licenseInformation?.license !== context.packageJson.license
|
|
563
563
|
) {
|
|
564
|
-
context.errors.push('[
|
|
564
|
+
context.errors.push('[E1017] Licenses in package.json and in io-package.json are different');
|
|
565
565
|
} else {
|
|
566
566
|
context.checks.push('"common.licenseInformation.license" is equal in package.json and in io-package.json');
|
|
567
567
|
}
|
|
568
568
|
}
|
|
569
569
|
|
|
570
570
|
if (!context.ioPackageJson.common.mode) {
|
|
571
|
-
context.errors.push('[
|
|
571
|
+
context.errors.push('[E1065] "common.mode" not found in io-package.json');
|
|
572
572
|
} else {
|
|
573
573
|
context.checks.push('"common.mode" found in io-package.json');
|
|
574
574
|
|
|
575
575
|
if (!context.cfg.allowedModes[context.ioPackageJson.common.mode]) {
|
|
576
576
|
context.errors.push(
|
|
577
|
-
`[
|
|
577
|
+
`[E1066] "common.mode: ${context.ioPackageJson.common.mode}" is unknown in io-package.json.`,
|
|
578
578
|
);
|
|
579
579
|
} else {
|
|
580
580
|
context.checks.push('"common.mode" has known mode in io-package.json');
|
|
581
581
|
|
|
582
582
|
if (context.ioPackageJson.common.onlyWWW && context.ioPackageJson.common.mode !== 'none') {
|
|
583
|
-
context.errors.push('[
|
|
583
|
+
context.errors.push('[E1064] onlyWWW should have common.mode "none" in io-package.json');
|
|
584
584
|
}
|
|
585
585
|
|
|
586
586
|
if (context.ioPackageJson.common.mode === 'schedule' && !context.ioPackageJson.common.schedule) {
|
|
587
587
|
context.errors.push(
|
|
588
|
-
'[
|
|
588
|
+
'[E1067] scheduled adapters must have "common.schedule" property in io-package.json',
|
|
589
589
|
);
|
|
590
590
|
}
|
|
591
591
|
|
|
@@ -593,7 +593,9 @@ async function checkIOPackageJson(context) {
|
|
|
593
593
|
context.ioPackageJson.common.mode === 'extension' &&
|
|
594
594
|
!context.ioPackageJson.common.dependencies.find(dep => Object.keys(dep).find(attr => attr === 'web'))
|
|
595
595
|
) {
|
|
596
|
-
context.errors.push(
|
|
596
|
+
context.errors.push(
|
|
597
|
+
'[E1092] extension adapters must list web adapter as dependency in io-package.json',
|
|
598
|
+
);
|
|
597
599
|
}
|
|
598
600
|
|
|
599
601
|
// Check allowInit attribute - only useful for scheduled adapters
|
|
@@ -603,11 +605,11 @@ async function checkIOPackageJson(context) {
|
|
|
603
605
|
) {
|
|
604
606
|
if (context.ioPackageJson.common.allowInit === true) {
|
|
605
607
|
context.warnings.push(
|
|
606
|
-
'[
|
|
608
|
+
'[W1104] allowInit is only used with scheduled adapters and should be removed',
|
|
607
609
|
);
|
|
608
610
|
} else if (context.ioPackageJson.common.allowInit === false) {
|
|
609
611
|
context.warnings.push(
|
|
610
|
-
'[
|
|
612
|
+
'[S1104] allowInit is only used with scheduled adapters and should be removed',
|
|
611
613
|
);
|
|
612
614
|
}
|
|
613
615
|
}
|
|
@@ -615,30 +617,30 @@ async function checkIOPackageJson(context) {
|
|
|
615
617
|
}
|
|
616
618
|
|
|
617
619
|
if (!context.ioPackageJson.common.type) {
|
|
618
|
-
context.errors.push('[
|
|
620
|
+
context.errors.push('[E1019] No type found in io-package.json');
|
|
619
621
|
} else {
|
|
620
622
|
context.checks.push('"common.type" found in io-package.json');
|
|
621
623
|
|
|
622
624
|
if (!context.cfg.allowedTypes[context.ioPackageJson.common.type]) {
|
|
623
|
-
context.errors.push('[
|
|
625
|
+
context.errors.push('[E1020] Unknown type found in io-package.json');
|
|
624
626
|
} else {
|
|
625
627
|
context.checks.push('"common.type" has known type in io-package.json');
|
|
626
628
|
}
|
|
627
629
|
}
|
|
628
630
|
|
|
629
631
|
if (!context.ioPackageJson.common.authors) {
|
|
630
|
-
context.errors.push('[
|
|
632
|
+
context.errors.push('[E1021] No authors found in io-package.json');
|
|
631
633
|
} else {
|
|
632
634
|
context.checks.push('"common.authors" found in io-package.json');
|
|
633
635
|
|
|
634
636
|
if (!(context.ioPackageJson.common.authors instanceof Array)) {
|
|
635
|
-
context.errors.push('[
|
|
637
|
+
context.errors.push('[E1022] authors must be an Array in io-package.json');
|
|
636
638
|
} else {
|
|
637
639
|
context.checks.push('"common.authors" is array in io-package.json');
|
|
638
640
|
}
|
|
639
641
|
|
|
640
642
|
if (!context.ioPackageJson.common.authors.length) {
|
|
641
|
-
context.errors.push('[
|
|
643
|
+
context.errors.push('[E1023] Authors may not be empty in io-package.json');
|
|
642
644
|
} else {
|
|
643
645
|
context.checks.push('"common.authors" is not empty in io-package.json');
|
|
644
646
|
}
|
|
@@ -646,37 +648,39 @@ async function checkIOPackageJson(context) {
|
|
|
646
648
|
|
|
647
649
|
if (context.ioPackageJson.common.localLink) {
|
|
648
650
|
context.warnings.push(
|
|
649
|
-
'[
|
|
651
|
+
'[W1072] "common.localLink" in io-package.json is deprecated. Please define object "common.localLinks": { "_default": "..." }',
|
|
650
652
|
);
|
|
651
653
|
} else {
|
|
652
654
|
context.checks.push('No "common.localLink" found in io-package.json');
|
|
653
655
|
}
|
|
654
656
|
|
|
655
657
|
if (!context.ioPackageJson.common.news) {
|
|
656
|
-
context.errors.push('[
|
|
658
|
+
context.errors.push('[E1030] No "common.news" found in io-package.json');
|
|
657
659
|
} else {
|
|
658
660
|
context.checks.push('"common.news" found in io-package.json');
|
|
659
661
|
|
|
660
662
|
if (Object.keys(context.ioPackageJson.common.news).length > 20) {
|
|
661
663
|
context.errors.push(
|
|
662
|
-
'[
|
|
664
|
+
'[E1031] Too many "common.news" found in io-package.json. Must be less than 20. Please remove old news.',
|
|
663
665
|
);
|
|
664
666
|
} else if (Object.keys(context.ioPackageJson.common.news).length > 7) {
|
|
665
667
|
context.warnings.push(
|
|
666
|
-
'[
|
|
668
|
+
'[W1032] Many "common.news" found in io-package.json. Repository builder will truncate at 7 news. Please remove old news.',
|
|
667
669
|
);
|
|
668
670
|
}
|
|
669
671
|
|
|
670
672
|
Object.keys(context.ioPackageJson.common.news).forEach(version => {
|
|
671
673
|
if (!compareVersions.validateStrict(version)) {
|
|
672
|
-
context.errors.push(`[
|
|
674
|
+
context.errors.push(`[E1075] Release "${version}" at "common.news" in io-package.json is malformed.`);
|
|
673
675
|
}
|
|
674
676
|
});
|
|
675
677
|
|
|
676
678
|
if (!context.ioPackageJson.common.news[context.ioPackageJson.common.version]) {
|
|
677
|
-
context.
|
|
678
|
-
|
|
679
|
-
|
|
679
|
+
if (!common.isAlphaVersion(context.ioPackageJson.common.version)) {
|
|
680
|
+
context.errors.push(
|
|
681
|
+
`[E1036] No "common.news" found for actual version ${context.ioPackageJson.common.version} in io-package.json`,
|
|
682
|
+
);
|
|
683
|
+
}
|
|
680
684
|
}
|
|
681
685
|
|
|
682
686
|
let missingLang = [];
|
|
@@ -688,7 +692,7 @@ async function checkIOPackageJson(context) {
|
|
|
688
692
|
if (missingLang.length) {
|
|
689
693
|
missingLang = [...new Set(missingLang)]; // make unique
|
|
690
694
|
context.errors.push(
|
|
691
|
-
`[
|
|
695
|
+
`[E1045] Missing mandatory translation into ${missingLang.join()} of some "common.news" in io-package.json.`,
|
|
692
696
|
);
|
|
693
697
|
}
|
|
694
698
|
|
|
@@ -702,7 +706,7 @@ async function checkIOPackageJson(context) {
|
|
|
702
706
|
if (missingLang.length) {
|
|
703
707
|
missingLang = [...new Set(missingLang)]; // make unique
|
|
704
708
|
context.warnings.push(
|
|
705
|
-
`[
|
|
709
|
+
`[W1054] Missing suggested translation into ${missingLang.join()} of some "common.news" in io-package.json.`,
|
|
706
710
|
);
|
|
707
711
|
}
|
|
708
712
|
}
|
|
@@ -710,13 +714,13 @@ async function checkIOPackageJson(context) {
|
|
|
710
714
|
// check main entry
|
|
711
715
|
if (context.ioPackageJson.common.mode !== 'none' && context.ioPackageJson.common.mode !== 'extension') {
|
|
712
716
|
if (!context.packageJson.main) {
|
|
713
|
-
!context.ioPackageJson.common.onlyWWW && context.errors.push('[
|
|
717
|
+
!context.ioPackageJson.common.onlyWWW && context.errors.push('[E1043] No main found in the package.json');
|
|
714
718
|
} else {
|
|
715
719
|
context.checks.push('"main" found in package.json');
|
|
716
720
|
if (!context.packageJson.main.endsWith('.js') && !context.packageJson.main.endsWith('.ts')) {
|
|
717
721
|
!context.ioPackageJson.common.onlyWWW &&
|
|
718
722
|
context.errors.push(
|
|
719
|
-
`[
|
|
723
|
+
`[E1063] common.mode "${context.ioPackageJson.common.mode}" requires JavaScript or Typescript file for "main" in package.json`,
|
|
720
724
|
);
|
|
721
725
|
} else {
|
|
722
726
|
context.checks.push('"main" references .js or .ts file');
|
|
@@ -727,7 +731,7 @@ async function checkIOPackageJson(context) {
|
|
|
727
731
|
if (context.ioPackageJson.instanceObjects) {
|
|
728
732
|
const instanceObjects = context.ioPackageJson.instanceObjects;
|
|
729
733
|
if (!(instanceObjects instanceof Array)) {
|
|
730
|
-
context.errors.push('[
|
|
734
|
+
context.errors.push('[E1046] instanceObjects must be an Array in io-package.json');
|
|
731
735
|
} else {
|
|
732
736
|
const allowedObjectTypes = [
|
|
733
737
|
'state',
|
|
@@ -749,14 +753,14 @@ async function checkIOPackageJson(context) {
|
|
|
749
753
|
|
|
750
754
|
instanceObjects.forEach(instanceObject => {
|
|
751
755
|
if (instanceObject.type !== undefined && !allowedObjectTypes.includes(instanceObject.type)) {
|
|
752
|
-
context.errors.push(`[
|
|
756
|
+
context.errors.push(`[E1047] instanceObject type has an invalid type: ${instanceObject.type}`);
|
|
753
757
|
}
|
|
754
758
|
|
|
755
759
|
if (instanceObject.common) {
|
|
756
760
|
if (instanceObject.common.type !== undefined) {
|
|
757
761
|
if (typeof instanceObject.common.type !== 'string') {
|
|
758
762
|
context.errors.push(
|
|
759
|
-
`[
|
|
763
|
+
`[E1048] instanceObject common.type has an invalid type! Expected "string", received "${typeof instanceObject.common.type}"`,
|
|
760
764
|
);
|
|
761
765
|
}
|
|
762
766
|
|
|
@@ -765,7 +769,7 @@ async function checkIOPackageJson(context) {
|
|
|
765
769
|
!allowedStateTypes.includes(instanceObject.common.type)
|
|
766
770
|
) {
|
|
767
771
|
context.errors.push(
|
|
768
|
-
`[
|
|
772
|
+
`[E1049] instanceObject common.type has an invalid value: ${instanceObject.common.type}`,
|
|
769
773
|
);
|
|
770
774
|
}
|
|
771
775
|
}
|
|
@@ -776,25 +780,25 @@ async function checkIOPackageJson(context) {
|
|
|
776
780
|
|
|
777
781
|
if (!context.ioPackageJson.common.connectionType) {
|
|
778
782
|
!context.ioPackageJson.common.onlyWWW &&
|
|
779
|
-
context.errors.push('[
|
|
783
|
+
context.errors.push('[E1050] No "common.connectionType" found in io-package.json');
|
|
780
784
|
} else if (!['local', 'cloud', 'none'].includes(context.ioPackageJson.common.connectionType)) {
|
|
781
785
|
context.errors.push(
|
|
782
|
-
`[
|
|
786
|
+
`[E1051] "common.connectionType" type has an invalid value "${context.ioPackageJson.common.connectionType}"`,
|
|
783
787
|
);
|
|
784
788
|
}
|
|
785
789
|
|
|
786
790
|
if (!context.ioPackageJson.common.dataSource) {
|
|
787
791
|
!context.ioPackageJson.common.onlyWWW &&
|
|
788
|
-
context.errors.push('[
|
|
792
|
+
context.errors.push('[E1052] No "common.dataSource" found in io-package.json');
|
|
789
793
|
} else if (!['poll', 'push', 'assumption', 'none'].includes(context.ioPackageJson.common.dataSource)) {
|
|
790
794
|
context.errors.push(
|
|
791
|
-
`[
|
|
795
|
+
`[E1053] "common.dataSource" type has an invalid value "${context.ioPackageJson.common.dataSource}"`,
|
|
792
796
|
);
|
|
793
797
|
}
|
|
794
798
|
|
|
795
799
|
if (context.ioPackageJson.common.supportsCustoms) {
|
|
796
800
|
if (!context.ioPackageJson.common.adminUI?.custom && context.ioPackageJson.common.adminUI?.custom !== 'json') {
|
|
797
|
-
context.errors.push(`[
|
|
801
|
+
context.errors.push(`[E1096] "common.supportCustoms" requires "common.adminUI.custom" to be defined`);
|
|
798
802
|
} else {
|
|
799
803
|
context.checks.push('"support.customs" is set and "adminUI.custom" requires "json"');
|
|
800
804
|
}
|
|
@@ -806,7 +810,7 @@ async function checkIOPackageJson(context) {
|
|
|
806
810
|
let currentJsControllerVersion = undefined;
|
|
807
811
|
if (context.ioPackageJson.common.dependencies) {
|
|
808
812
|
if (!(context.ioPackageJson.common.dependencies instanceof Array)) {
|
|
809
|
-
context.errors.push(`[
|
|
813
|
+
context.errors.push(`[E1085] "common.dependencies" must be an array at io-package.json`);
|
|
810
814
|
} else {
|
|
811
815
|
// Check for empty dependency objects
|
|
812
816
|
const emptyDependencies = context.ioPackageJson.common.dependencies.filter(
|
|
@@ -814,7 +818,7 @@ async function checkIOPackageJson(context) {
|
|
|
814
818
|
);
|
|
815
819
|
if (emptyDependencies.length > 0) {
|
|
816
820
|
context.errors.push(
|
|
817
|
-
`[
|
|
821
|
+
`[E1100] Empty dependency objects found in "common.dependencies" at io-package.json. Please remove empty objects.`,
|
|
818
822
|
);
|
|
819
823
|
}
|
|
820
824
|
|
|
@@ -822,7 +826,7 @@ async function checkIOPackageJson(context) {
|
|
|
822
826
|
|
|
823
827
|
// Admin is not allowed in dependencies (globalDependencies only)
|
|
824
828
|
if (dependencyArray.includes('admin')) {
|
|
825
|
-
context.errors.push(`[
|
|
829
|
+
context.errors.push(`[E1060] "admin" is not allowed in common.dependencies`);
|
|
826
830
|
}
|
|
827
831
|
|
|
828
832
|
const jsControllerDependency = context.ioPackageJson.common.dependencies.find(dep =>
|
|
@@ -833,7 +837,7 @@ async function checkIOPackageJson(context) {
|
|
|
833
837
|
|
|
834
838
|
if (!jsControllerDependency['js-controller'].startsWith('>=')) {
|
|
835
839
|
context.errors.push(
|
|
836
|
-
`[
|
|
840
|
+
`[E1059] common.dependencies "js-controller" dependency should always allow future versions (>=x.x.x) - recommended: {"js-controller": ">=${recommendedJsControllerVersion}"}.`,
|
|
837
841
|
);
|
|
838
842
|
} else {
|
|
839
843
|
currentJsControllerVersion = jsControllerDependency['js-controller'].replace(/[^\d.]/g, '');
|
|
@@ -842,11 +846,11 @@ async function checkIOPackageJson(context) {
|
|
|
842
846
|
if (!context.ioPackageJson.common.onlyWWW) {
|
|
843
847
|
if (requiredJsControllerVersion !== recommendedJsControllerVersion) {
|
|
844
848
|
context.errors.push(
|
|
845
|
-
`[
|
|
849
|
+
`[E1062] js-controller dependency missing. js-controller ${requiredJsControllerVersion} is required as minimum, ${recommendedJsControllerVersion} is recommended. Please add to dependencies at io-package.json.`,
|
|
846
850
|
);
|
|
847
851
|
} else {
|
|
848
852
|
context.errors.push(
|
|
849
|
-
`[
|
|
853
|
+
`[E1062] js-controller dependency missing. js-controller ${requiredJsControllerVersion} is required as minimum. Please add to dependencies at io-package.json.`,
|
|
850
854
|
);
|
|
851
855
|
}
|
|
852
856
|
}
|
|
@@ -854,14 +858,14 @@ async function checkIOPackageJson(context) {
|
|
|
854
858
|
}
|
|
855
859
|
} else {
|
|
856
860
|
if (!context.ioPackageJson.common.onlyWWW) {
|
|
857
|
-
context.errors.push(`[
|
|
861
|
+
context.errors.push(`[E1085] "common.dependencies" must be an array at io-package.json`);
|
|
858
862
|
if (requiredJsControllerVersion !== recommendedJsControllerVersion) {
|
|
859
863
|
context.errors.push(
|
|
860
|
-
`[
|
|
864
|
+
`[E1062] js-controller dependency missing. js-controller ${requiredJsControllerVersion} is required as minimum, ${recommendedJsControllerVersion} is recommended. Please add to dependencies at io-package.json.`,
|
|
861
865
|
);
|
|
862
866
|
} else {
|
|
863
867
|
context.errors.push(
|
|
864
|
-
`[
|
|
868
|
+
`[E1062] js-controller dependency missing. js-controller ${requiredJsControllerVersion} is required as minimum. Please add to dependencies at io-package.json.`,
|
|
865
869
|
);
|
|
866
870
|
}
|
|
867
871
|
}
|
|
@@ -883,11 +887,11 @@ async function checkIOPackageJson(context) {
|
|
|
883
887
|
) {
|
|
884
888
|
if (requiredJsControllerVersion !== recommendedJsControllerVersion) {
|
|
885
889
|
context.errors.push(
|
|
886
|
-
`[
|
|
890
|
+
`[E1057] js-controller ${currentJsControllerVersion} listed as dependency but ${requiredJsControllerVersion} is required as minimum, ${recommendedJsControllerVersion} is recommended. Please update dependency at io-package.json.`,
|
|
887
891
|
);
|
|
888
892
|
} else {
|
|
889
893
|
context.errors.push(
|
|
890
|
-
`[
|
|
894
|
+
`[E1057] js-controller ${currentJsControllerVersion} listed as dependency but ${requiredJsControllerVersion} is required as minimum. Please update dependency at io-package.json.`,
|
|
891
895
|
);
|
|
892
896
|
}
|
|
893
897
|
} else if (
|
|
@@ -895,7 +899,7 @@ async function checkIOPackageJson(context) {
|
|
|
895
899
|
compareVersions.compare(recommendedJsControllerVersion, currentJsControllerVersion, '>')
|
|
896
900
|
) {
|
|
897
901
|
context.warnings.push(
|
|
898
|
-
`[
|
|
902
|
+
`[W1056] js-controller ${currentJsControllerVersion} listed as dependency but ${recommendedJsControllerVersion} is recommended. Please consider updating dependency at io-package.json.`,
|
|
899
903
|
);
|
|
900
904
|
}
|
|
901
905
|
|
|
@@ -922,7 +926,7 @@ async function checkIOPackageJson(context) {
|
|
|
922
926
|
let currentAdminVersion = undefined;
|
|
923
927
|
if (context.ioPackageJson.common.globalDependencies) {
|
|
924
928
|
if (!(context.ioPackageJson.common.globalDependencies instanceof Array)) {
|
|
925
|
-
context.errors.push(`[
|
|
929
|
+
context.errors.push(`[E1086] "common.globalDependencies" must be an array at io-package.json`);
|
|
926
930
|
} else {
|
|
927
931
|
// Check for empty dependency objects
|
|
928
932
|
const emptyGlobalDependencies = context.ioPackageJson.common.globalDependencies.filter(
|
|
@@ -930,7 +934,7 @@ async function checkIOPackageJson(context) {
|
|
|
930
934
|
);
|
|
931
935
|
if (emptyGlobalDependencies.length > 0) {
|
|
932
936
|
context.errors.push(
|
|
933
|
-
`[
|
|
937
|
+
`[E1101] Empty dependency objects found in "common.globalDependencies" at io-package.json. Please remove empty objects.`,
|
|
934
938
|
);
|
|
935
939
|
}
|
|
936
940
|
|
|
@@ -938,7 +942,7 @@ async function checkIOPackageJson(context) {
|
|
|
938
942
|
|
|
939
943
|
// js-controller is not allowed in global dependencies (dependencies only)
|
|
940
944
|
if (dependencyArray.includes('js-controller')) {
|
|
941
|
-
context.errors.push(`[
|
|
945
|
+
context.errors.push(`[E1061] "js-controller" is not allowed in common.globalDependencies`);
|
|
942
946
|
}
|
|
943
947
|
|
|
944
948
|
const adminDependency = context.ioPackageJson.common.globalDependencies.find(dep =>
|
|
@@ -949,25 +953,25 @@ async function checkIOPackageJson(context) {
|
|
|
949
953
|
|
|
950
954
|
if (!adminDependency['admin'].startsWith('>=')) {
|
|
951
955
|
context.errors.push(
|
|
952
|
-
`[
|
|
956
|
+
`[E1089] common.dependencies "admin" dependency should always allow future versions (>=x.x.x) - recommended: {"admin": ">=${recommendedAdminVersion}"}.`,
|
|
953
957
|
);
|
|
954
958
|
} else {
|
|
955
959
|
currentAdminVersion = adminDependency['admin'].replace(/[^\d.]/g, '');
|
|
956
960
|
}
|
|
957
961
|
if (!requireAdmin) {
|
|
958
962
|
context.warnings.push(
|
|
959
|
-
`[
|
|
963
|
+
`[S1091] admin dependency (${adminDependency['admin']}) at io-package.json is not required as 'common.adminUI' specifies that no UI exists. Feel free to remove.`,
|
|
960
964
|
);
|
|
961
965
|
}
|
|
962
966
|
} else {
|
|
963
967
|
if (requireAdmin) {
|
|
964
968
|
if (requiredAdminVersion !== recommendedAdminVersion) {
|
|
965
969
|
context.errors.push(
|
|
966
|
-
`[
|
|
970
|
+
`[E1090] admin dependency missing. admin ${requiredAdminVersion} is required as minimum, ${recommendedAdminVersion} is recommended. Please add to globalDependencies at io-package.json.`,
|
|
967
971
|
);
|
|
968
972
|
} else {
|
|
969
973
|
context.errors.push(
|
|
970
|
-
`[
|
|
974
|
+
`[E1090] admin dependency missing. admin ${requiredAdminVersion} is required as minimum. Please add to globalDependencies at io-package.json.`,
|
|
971
975
|
);
|
|
972
976
|
}
|
|
973
977
|
}
|
|
@@ -975,14 +979,14 @@ async function checkIOPackageJson(context) {
|
|
|
975
979
|
}
|
|
976
980
|
} else {
|
|
977
981
|
if (requireAdmin) {
|
|
978
|
-
// context.errors.push(`[
|
|
982
|
+
// context.errors.push(`[E1086] "common.globalDependencies" must be an array at io-package.json`);
|
|
979
983
|
if (requiredAdminVersion !== recommendedAdminVersion) {
|
|
980
984
|
context.errors.push(
|
|
981
|
-
`[
|
|
985
|
+
`[E1090] admin dependency missing. admin ${requiredAdminVersion} is required as minimum, ${recommendedAdminVersion} is recommended. Please add to globalDependencies at io-package.json.`,
|
|
982
986
|
);
|
|
983
987
|
} else {
|
|
984
988
|
context.errors.push(
|
|
985
|
-
`[
|
|
989
|
+
`[E1090] admin dependency missing. admin ${requiredAdminVersion} is required as minimum. Please add to globalDependencies at io-package.json.`,
|
|
986
990
|
);
|
|
987
991
|
}
|
|
988
992
|
}
|
|
@@ -991,16 +995,16 @@ async function checkIOPackageJson(context) {
|
|
|
991
995
|
if (currentAdminVersion && compareVersions.compare(requiredAdminVersion, currentAdminVersion, '>')) {
|
|
992
996
|
if (requiredAdminVersion !== recommendedAdminVersion) {
|
|
993
997
|
context.errors.push(
|
|
994
|
-
`[
|
|
998
|
+
`[E1057] admin ${currentAdminVersion} listed as dependency but ${requiredAdminVersion} is required as minimum, ${recommendedAdminVersion} is recommended. Please update globalDependency at io-package.json.`,
|
|
995
999
|
);
|
|
996
1000
|
} else {
|
|
997
1001
|
context.errors.push(
|
|
998
|
-
`[
|
|
1002
|
+
`[E1057] admin ${currentAdminVersion} listed as dependency but ${requiredAdminVersion} is required as minimum. Please update globalDependency at io-package.json.`,
|
|
999
1003
|
);
|
|
1000
1004
|
}
|
|
1001
1005
|
} else if (currentAdminVersion && compareVersions.compare(recommendedAdminVersion, currentAdminVersion, '>')) {
|
|
1002
1006
|
context.warnings.push(
|
|
1003
|
-
`[
|
|
1007
|
+
`[W1056] admin ${currentAdminVersion} listed as dependency but ${recommendedAdminVersion} is recommended. Please consider updating globalDependency at io-package.json.`,
|
|
1004
1008
|
);
|
|
1005
1009
|
} else {
|
|
1006
1010
|
if (requireAdmin) {
|
|
@@ -1013,11 +1017,11 @@ async function checkIOPackageJson(context) {
|
|
|
1013
1017
|
if (!context.ioPackageJson.common.onlyWWW) {
|
|
1014
1018
|
if (!context.ioPackageJson.common.tier) {
|
|
1015
1019
|
context.warnings.push(
|
|
1016
|
-
`[
|
|
1020
|
+
`[W1035] "common.tier" is required in io-package.json. Please check https://github.com/ioBroker/ioBroker.docs/blob/master/docs/en/dev/objectsschema.md#adapter.`,
|
|
1017
1021
|
);
|
|
1018
1022
|
} else if (![1, 2, 3].includes(context.ioPackageJson.common.tier)) {
|
|
1019
1023
|
context.errors.push(
|
|
1020
|
-
`[
|
|
1024
|
+
`[E1055] Invalid "common.tier" value: ${context.ioPackageJson.common.tier} at io-package.json. Only 1, 2 or 3 are allowed!`,
|
|
1021
1025
|
);
|
|
1022
1026
|
} else {
|
|
1023
1027
|
context.checks.push('"common.tier" is valid in io-package.json');
|
|
@@ -1028,7 +1032,7 @@ async function checkIOPackageJson(context) {
|
|
|
1028
1032
|
|
|
1029
1033
|
if (context.ioPackageJson.common.automaticUpgrade) {
|
|
1030
1034
|
context.errors.push(
|
|
1031
|
-
`[
|
|
1035
|
+
`[E1037] "common.automaticUpgrade" will be defined by the user. Please remove from io-package.json`,
|
|
1032
1036
|
);
|
|
1033
1037
|
} else {
|
|
1034
1038
|
context.checks.push('"common.automaticUpgrade" does not exist in io-package.json');
|
|
@@ -1040,7 +1044,7 @@ async function checkIOPackageJson(context) {
|
|
|
1040
1044
|
// own adapter is not allowed in a restart array
|
|
1041
1045
|
if (restartAdaptersArray.includes(context.ioPackageJson.common.name)) {
|
|
1042
1046
|
context.errors.push(
|
|
1043
|
-
`[
|
|
1047
|
+
`[E1076] Own adapter is not allowed to be listed at "common.restartAdapters" in io-package.json`,
|
|
1044
1048
|
);
|
|
1045
1049
|
} else {
|
|
1046
1050
|
context.checks.push('Own adapter not listed at "common.restartAdapters".');
|
|
@@ -1049,7 +1053,7 @@ async function checkIOPackageJson(context) {
|
|
|
1049
1053
|
// suggest to restart 'vis-2' if 'vis' is in restart list
|
|
1050
1054
|
if (restartAdaptersArray.includes('vis') && !restartAdaptersArray.includes('vis-2')) {
|
|
1051
1055
|
context.warnings.push(
|
|
1052
|
-
`[
|
|
1056
|
+
`[S1102] Consider adding 'vis-2' to "common.restartAdapters" as 'vis' is already listed in io-package.json`,
|
|
1053
1057
|
);
|
|
1054
1058
|
}
|
|
1055
1059
|
} else {
|
|
@@ -1089,11 +1093,11 @@ async function checkIOPackageJson(context) {
|
|
|
1089
1093
|
}
|
|
1090
1094
|
if (tmp) {
|
|
1091
1095
|
if (blacklistIOPackageJson[blacklist].err) {
|
|
1092
|
-
context.errors.push(`[
|
|
1096
|
+
context.errors.push(`[E1084] ${blacklistIOPackageJson[blacklist].msg}`);
|
|
1093
1097
|
} else if (blacklistIOPackageJson[blacklist].suggestion) {
|
|
1094
|
-
context.warnings.push(`[
|
|
1098
|
+
context.warnings.push(`[S1084] ${blacklistIOPackageJson[blacklist].msg}`);
|
|
1095
1099
|
} else {
|
|
1096
|
-
context.warnings.push(`[
|
|
1100
|
+
context.warnings.push(`[W1084] ${blacklistIOPackageJson[blacklist].msg}`);
|
|
1097
1101
|
}
|
|
1098
1102
|
}
|
|
1099
1103
|
}
|
|
@@ -1112,7 +1116,7 @@ async function checkIOPackageJson(context) {
|
|
|
1112
1116
|
//console.log(icon);
|
|
1113
1117
|
} catch (e) {
|
|
1114
1118
|
common.debug(e);
|
|
1115
|
-
context.errors.push(`[
|
|
1119
|
+
context.errors.push(`[E1025] External icon not found under URL: ${context.ioPackageJson.common.extIcon}`);
|
|
1116
1120
|
icon = null;
|
|
1117
1121
|
}
|
|
1118
1122
|
if (icon) {
|
|
@@ -1124,17 +1128,17 @@ async function checkIOPackageJson(context) {
|
|
|
1124
1128
|
);
|
|
1125
1129
|
if (image.width !== image.height) {
|
|
1126
1130
|
context.errors.push(
|
|
1127
|
-
'[
|
|
1131
|
+
'[E1040] width and height of logo (specified at "common.extIcon") are not equal',
|
|
1128
1132
|
);
|
|
1129
1133
|
} else {
|
|
1130
1134
|
context.checks.push('width and height of "extIcon" logo are equal');
|
|
1131
1135
|
if (image.width < 32) {
|
|
1132
1136
|
context.errors.push(
|
|
1133
|
-
'[
|
|
1137
|
+
'[E1041] logo (specified at "common.extIcon") is too small. It must be greater or equal than 32x32',
|
|
1134
1138
|
);
|
|
1135
1139
|
} else if (image.width > 512) {
|
|
1136
1140
|
context.errors.push(
|
|
1137
|
-
'[
|
|
1141
|
+
'[E1042] logo (specified at "common.extIcon") is too big. It must be less or equal than 512x512',
|
|
1138
1142
|
);
|
|
1139
1143
|
} else {
|
|
1140
1144
|
context.checks.push('"extIcon" logo is of correct size');
|
|
@@ -1142,7 +1146,7 @@ async function checkIOPackageJson(context) {
|
|
|
1142
1146
|
}
|
|
1143
1147
|
} catch (e) {
|
|
1144
1148
|
common.debug(e);
|
|
1145
|
-
context.errors.push(`[
|
|
1149
|
+
context.errors.push(`[E1097] External icon ${context.ioPackageJson.common.extIcon} cannot be parsed`);
|
|
1146
1150
|
}
|
|
1147
1151
|
}
|
|
1148
1152
|
}
|
|
@@ -1155,11 +1159,11 @@ async function checkIOPackageJson(context) {
|
|
|
1155
1159
|
common.debug(e);
|
|
1156
1160
|
if (!context.ioPackageJson.common.nogit) {
|
|
1157
1161
|
context.errors.push(
|
|
1158
|
-
`[
|
|
1162
|
+
`[E1024] Main file not found under URL: ${context.githubUrl}/${context.packageJson.main}.`,
|
|
1159
1163
|
);
|
|
1160
1164
|
} else if (!context.packageJson.main.startsWith('build/')) {
|
|
1161
1165
|
context.warnings.push(
|
|
1162
|
-
`[
|
|
1166
|
+
`[W1038] Main file not found under URL: ${context.githubUrl}/${context.packageJson.main} and not located at build/ directory too.`,
|
|
1163
1167
|
);
|
|
1164
1168
|
}
|
|
1165
1169
|
}
|
|
@@ -1177,116 +1181,116 @@ exports.checkIOPackageJson = checkIOPackageJson;
|
|
|
1177
1181
|
// List of error and warnings used at this module
|
|
1178
1182
|
// ----------------------------------------------
|
|
1179
1183
|
|
|
1180
|
-
// [
|
|
1181
|
-
// [
|
|
1182
|
-
// [
|
|
1183
|
-
// [
|
|
1184
|
-
// [
|
|
1185
|
-
// [
|
|
1186
|
-
// [
|
|
1187
|
-
// [
|
|
1188
|
-
// [
|
|
1189
|
-
// [
|
|
1190
|
-
// [
|
|
1191
|
-
// [
|
|
1192
|
-
// [
|
|
1193
|
-
// [
|
|
1194
|
-
// [
|
|
1195
|
-
// [
|
|
1196
|
-
// [
|
|
1197
|
-
// [
|
|
1198
|
-
// [
|
|
1199
|
-
// [
|
|
1200
|
-
// [
|
|
1201
|
-
// [
|
|
1202
|
-
// [
|
|
1203
|
-
// [
|
|
1204
|
-
// [
|
|
1205
|
-
// [
|
|
1206
|
-
// [
|
|
1207
|
-
// [
|
|
1208
|
-
// [
|
|
1209
|
-
// [
|
|
1210
|
-
// [
|
|
1211
|
-
// [
|
|
1212
|
-
// [
|
|
1213
|
-
// [
|
|
1214
|
-
// [
|
|
1215
|
-
// [
|
|
1216
|
-
// [
|
|
1217
|
-
// [
|
|
1218
|
-
// [
|
|
1219
|
-
// [
|
|
1220
|
-
// [
|
|
1221
|
-
// [
|
|
1222
|
-
// [
|
|
1223
|
-
// [
|
|
1224
|
-
// [
|
|
1225
|
-
// [
|
|
1226
|
-
// [
|
|
1227
|
-
// [
|
|
1228
|
-
// [
|
|
1229
|
-
// [
|
|
1230
|
-
// [
|
|
1231
|
-
// [
|
|
1232
|
-
// [
|
|
1233
|
-
// [
|
|
1234
|
-
// [
|
|
1235
|
-
// [
|
|
1236
|
-
// [
|
|
1237
|
-
// [
|
|
1238
|
-
// [
|
|
1239
|
-
// [
|
|
1240
|
-
// [
|
|
1241
|
-
// [
|
|
1242
|
-
// [
|
|
1243
|
-
// [
|
|
1244
|
-
// [
|
|
1245
|
-
// [
|
|
1246
|
-
// [
|
|
1247
|
-
// [
|
|
1248
|
-
// [
|
|
1249
|
-
// [
|
|
1250
|
-
// [
|
|
1251
|
-
// [
|
|
1252
|
-
// [
|
|
1253
|
-
// [
|
|
1254
|
-
// [
|
|
1255
|
-
// [
|
|
1256
|
-
// [
|
|
1257
|
-
// [
|
|
1258
|
-
// [
|
|
1259
|
-
// [
|
|
1260
|
-
// [
|
|
1261
|
-
// [
|
|
1262
|
-
// [
|
|
1263
|
-
// [
|
|
1264
|
-
// [
|
|
1265
|
-
// [
|
|
1266
|
-
// [
|
|
1267
|
-
// [
|
|
1268
|
-
// [
|
|
1269
|
-
// [
|
|
1270
|
-
// [
|
|
1271
|
-
// [
|
|
1272
|
-
// [
|
|
1273
|
-
// [
|
|
1274
|
-
// [
|
|
1275
|
-
// [
|
|
1276
|
-
// [
|
|
1277
|
-
// [
|
|
1278
|
-
// [
|
|
1279
|
-
// [
|
|
1280
|
-
// [
|
|
1281
|
-
// [
|
|
1282
|
-
// [
|
|
1283
|
-
// [
|
|
1284
|
-
// [
|
|
1285
|
-
// [
|
|
1286
|
-
// [
|
|
1287
|
-
// [
|
|
1288
|
-
// [
|
|
1289
|
-
// [
|
|
1290
|
-
// [
|
|
1291
|
-
// [
|
|
1292
|
-
// [
|
|
1184
|
+
// [1000] Cannot parse ioPackage.json: ${e}
|
|
1185
|
+
// [1001] io-package.json must have at least empty "native" attribute
|
|
1186
|
+
// [1002] io-package.json must have common object
|
|
1187
|
+
// [1003] "common.name" in io-package.json must be equal to "${context.adapterName.toLowerCase()}'". Now is ${context.ioPackageJson.common.name}
|
|
1188
|
+
// [1004] No "common.titleLang" found in io-package.json
|
|
1189
|
+
// [1005] "common.titleLang" must be an object. Now: ${JSON.stringify(context.ioPackageJson.common.titleLang)}
|
|
1190
|
+
// [1006] "common.titleLang" must not have ioBroker in the name. It is clear, for what this adapter was created. Now: ${JSON.stringify(context.ioPackageJson.common.titleLang)}
|
|
1191
|
+
// [1007] No "common.version" found in io-package.json
|
|
1192
|
+
// [1008] No "common.desc" found in io-package.json
|
|
1193
|
+
// [1009] "common.desc" in io-package.json must be an object for many languages. Found only "${context.ioPackageJson.common.desc}"
|
|
1194
|
+
// [1010] Icon not found in the io-package.json
|
|
1195
|
+
// [1011] extIcon not found in the io-package.json
|
|
1196
|
+
// [1012] extIcon must be the same as an icon but with github path
|
|
1197
|
+
// [1013] Adapter should support compact mode
|
|
1198
|
+
// [1014] "common.noConfig=true" requires "common.adminUI.config" to be set to "none"'
|
|
1199
|
+
// [1015] "common.licenseInformation" not found in io-package.json
|
|
1200
|
+
// [1016] No SPDX license found at "common.licenseInformation". Please use one of listed here: https://spdx.org/licenses/
|
|
1201
|
+
// [1017] Licenses in package.json and in io-package.json are different
|
|
1202
|
+
// [1018] Versions in package.json and in io-package.json are different
|
|
1203
|
+
// [1019] No type found in io-package.json
|
|
1204
|
+
// [1020] Unknown type found in io-package.json
|
|
1205
|
+
// [1021] No authors found in io-package.json
|
|
1206
|
+
// [1022] authors must be an Array in io-package.json
|
|
1207
|
+
// [1023] Authors may not be empty in io-package.json
|
|
1208
|
+
// [1024] Main file not found under URL: ${context.githubUrl}/${context.packageJson.main}
|
|
1209
|
+
// [1025] External icon not found under URL: ${context.ioPackageJson.common.extIcon}
|
|
1210
|
+
// [1026] Missing mandatory translation into ${missingLang.join()} of "common.titleLang" in io-package.json.
|
|
1211
|
+
// [1027] Missing suggested translation into ${missingLang.join()} of "common.titleLang" in io-package.json.
|
|
1212
|
+
// [1028] "common.titleLang" should not contain word "adapter" in the name. It is clear, that this is adapter. Now: ${JSON.stringify(context.ioPackageJson.common.titleLang)}
|
|
1213
|
+
// [1029] Admin support not specified. Please add "common.adminUI.config = json|materialize|html|none"
|
|
1214
|
+
// [1030] No "common.news" found in io-package.json
|
|
1215
|
+
// [1031] Too many "common.news" found in io-package.json. Must be less than 20. Please remove old news.
|
|
1216
|
+
// [1032] Many "common.news" found in io-package.json. Repository builder will truncate at 7 news. Please remove old news.
|
|
1217
|
+
// [1033] Missing mandatory translation into ${missingLang.join()} of "common.desc" in io-package.json.
|
|
1218
|
+
// [1034] Missing suggested translation into ${missingLang.join()} of "common.desc" in io-package.json.
|
|
1219
|
+
// [1035] "common.tier" is required in io-package.json. Please check https://github.com/ioBroker/ioBroker.docs/blob/master/docs/en/dev/objectsschema.md#adapter.
|
|
1220
|
+
// [1036] No "common.news" found for actual version ${context.ioPackageJson.common.version} in io-package.json
|
|
1221
|
+
// [1037] "common.automaticUpgrade" will be defined by the user. Please remove from io-package.json
|
|
1222
|
+
// [1038] Main file not found under URL: ${context.githubUrl}/${context.packageJson.main} and not located at build/ directory too.
|
|
1223
|
+
// [1039] Please evaluate whether adapter can be modified to support compact mode.
|
|
1224
|
+
// [1040] width and height of logo are not equal
|
|
1225
|
+
// [1041] logo is too small. It must be greater or equal than 32x32
|
|
1226
|
+
// [1042] logo is too big. It must be less or equal than 512x512
|
|
1227
|
+
// [1043] No main found in the package.json
|
|
1228
|
+
// [1044] common.installedFrom field found in io-package.json. Must be removed.
|
|
1229
|
+
// [1045] Missing mandatory translation into ${missingLang.join()} of some "common.news" in io-package.json.
|
|
1230
|
+
// [1046] instanceObjects must be an Array in io-package.json
|
|
1231
|
+
// [1047] instanceObject type has an invalid type: ${instanceObject.type}
|
|
1232
|
+
// [1048] instanceObject common.type has an invalid type! Expected "string", received "${typeof instanceObject.common.type}"
|
|
1233
|
+
// [1049] instanceObject common.type has an invalid value: ${instanceObject.common.type}
|
|
1234
|
+
// [1050] No "common.connectionType" found in io-package.json
|
|
1235
|
+
// [1051] "common.connectionType" type has an invalid value "${context.ioPackageJson.common.connectionType}"
|
|
1236
|
+
// [1052] No "common.dataSource" found in io-package.json
|
|
1237
|
+
// [1053] "common.dataSource" type has an invalid value "${context.ioPackageJson.common.dataSource}"
|
|
1238
|
+
// [1054] Missing suggested translation into ${missingLang.join()} of some "common.news" in io-package.json.
|
|
1239
|
+
// [1055] Invalid "common.tier" value: ${context.ioPackageJson.common.tier} at io-package.json. Only 1, 2 or 3 are allowed!
|
|
1240
|
+
// [1056] js-controller ${currentJsControllerVersion} listed as dependency but ${recommendedJsControllerVersion} is recommended. Please consider updating dependency at io-package.json.
|
|
1241
|
+
// [1057] js-controller ${currentJsControllerVersion} listed as dependency but ${requiredJsControllerVersion} is required as minimum, ${recommendedJsControllerVersion} is recommended. Please update dependency at io-package.json.
|
|
1242
|
+
// [1058] "common.title" is deprecated in io-package.json. Please remove from io-package.json.
|
|
1243
|
+
// [1059] common.dependencies "js-controller" dependency should always allow future versions (>=x.x.x) - recommended: {"js-controller": ">=${recommendedJsControllerVersion}"}
|
|
1244
|
+
// [1060] "admin" is not allowed in common.dependencies
|
|
1245
|
+
// [1061] "js-controller" is not allowed in common.globalDependencies
|
|
1246
|
+
// [1062] js-controller dependency missing. js-controller ${requiredJsControllerVersion} is required as minimum, ${recommendedJsControllerVersion} is recommended. Please add to dependencies at io-package.json.
|
|
1247
|
+
// [1063] common.mode "${context.ioPackageJson.common.mode}" requires JavaScript file for "main" in package.json
|
|
1248
|
+
// [1064] onlyWWW should have common.mode "none" in io-package.json
|
|
1249
|
+
// [1065] "common.mode" not found in io-package.json
|
|
1250
|
+
// [1066] "common.mode: ${context.ioPackageJson.common.mode}" is unknown in io-package.json.
|
|
1251
|
+
// [1067] scheduled adapters must have "common.schedule" property in io-package.json
|
|
1252
|
+
// [1068] "common.keywords" should not contain "${forbiddenKeywords.join(', ')}" io-package.json0
|
|
1253
|
+
// [1069] "common.keywords" must be an array within io-package.json and contain some useful keywords
|
|
1254
|
+
// [1069] "common.keywords" must be an array within io-package.json and contain some useful keywords
|
|
1255
|
+
// [1069] "common.keywords" must be an array within io-package.json and contain some useful keywords
|
|
1256
|
+
// [1070] "common.licenseInformation.type" is invalid. Select valid type (e.g. free)
|
|
1257
|
+
// [1071] "common.licenseInformation.link" is required for non-free adapters
|
|
1258
|
+
// [1072] "common.localLink" in io-package.json is deprecated. Please define object "common.localLinks": { "_default": "..." }
|
|
1259
|
+
// [1073] Potential sensitive data "${missingProtected.join()}" not listed at "protectedNative" in io-package.json
|
|
1260
|
+
// [1073] Potential sensitive data "${suspiciousKeys.join()}" not listed at "protectedNative" in io-package.json
|
|
1261
|
+
// [1074] Potential sensitive data "${missingProtected.join()}" not listed at "encryptedNative" in io-package.json
|
|
1262
|
+
// [1074] Potential sensitive data "${suspiciousKeys.join()}" not listed at "encryptedNative" in io-package.json
|
|
1263
|
+
// [1075] Release "${version}" at "common.news" in io-package.json is malformed.
|
|
1264
|
+
// [1076] Own adapter is not allowed to be listed at "common.restartAdapters" in io-package.json
|
|
1265
|
+
// [1077] "common.main" is deprecated in io-package.json. For js-controller >= 3.3 please use package.json main and remove "common.main" from io-package.json.
|
|
1266
|
+
// [1078] "common.materialize" is deprecated in io-package.json. For admin version >= 5 please use the property "common.adminUI"
|
|
1267
|
+
// [1079] "common.materializeTab" is deprecated in io-package.json. For admin version >= 5 please use the property "common.adminUI".
|
|
1268
|
+
// [1080] "common.noConfig" is deprecated in io-package.json. For admin version >= 5 please use "common.adminUI.config":"none".
|
|
1269
|
+
// [1081] "common.license" in io-package.json is deprecated. Please define object "common.licenseInformation"
|
|
1270
|
+
// [1082] Please remove "common.license" from io-package.json as "common.licenseInformation" is declared.
|
|
1271
|
+
// [1083] "common.licenseInformation.license" is missing
|
|
1272
|
+
// [1084] ${blacklistIOPackageJson[blacklist].msg}
|
|
1273
|
+
// [1084] ${blacklistIOPackageJson[blacklist].msg}
|
|
1274
|
+
// [1085] "common.dependencies" must be an array at io-package.json
|
|
1275
|
+
// [1086] "common.globalDependencies" must be an array at io-package.json
|
|
1276
|
+
// [1087] "common.materialize" replaced by property "common.adminUI.config" at io-package.json. Please remove.
|
|
1277
|
+
// [1088] "common.materializeTab" replaced by property "common.adminUI.tab" at io-package.json. Please remove.
|
|
1278
|
+
// [1089] common.dependencies "admin" dependency should always allow future versions (>=x.x.x) - recommended: {"admin": ">=${recommendedAdminVersion}".
|
|
1279
|
+
// [1090] admin dependency missing. admin ${requiredAdminVersion} is required as minimum, ${recommendedAdminVersion} is recommended. Please add to dependencies at io-package.json.
|
|
1280
|
+
// [1091] admin dependency (${adminDependency['admin']}) at io-package.json is not required. Feel free to remove.
|
|
1281
|
+
// [1092] extension adapters must list web adapter as dependency in io-package.json
|
|
1282
|
+
// [1093] Encrypted native "${encrypted}" not listed at "protectedNative" in io-package.json
|
|
1283
|
+
// [1094] Protected native "${protected}" not listed at "encryptedNative" in io-package.json
|
|
1284
|
+
// [1095] Protected or encrypted element "${protected}" not listed as "native" in io-package.json
|
|
1285
|
+
// [1096] "common.supportCustoms" requires "common.adminUI.custom" to be defined
|
|
1286
|
+
// [1097] External icon ${context.ioPackageJson.common.extIcon} cannot be parsed
|
|
1287
|
+
// [1098] "common.encryptedNative" must be an array at io-package.json
|
|
1288
|
+
// [1099] "common.protectedNative" must be an array at io-package.json
|
|
1289
|
+
// [1100] Empty dependency objects found in "common.dependencies" at io-package.json. Please remove empty objects.
|
|
1290
|
+
// [1101] Empty dependency objects found in "common.globalDependencies" at io-package.json. Please remove empty objects.
|
|
1291
|
+
// [1102] Consider adding 'vis-2' to "common.restartAdapters" as 'vis' is already listed in io-package.json
|
|
1292
|
+
// [1103] Encryption of array elements "${key}" is not yet available
|
|
1293
|
+
// [1104] allowInit is only used with scheduled adapters and should be removed
|
|
1294
|
+
// [1105] Schema validation: ${errorMsg}
|
|
1295
|
+
// [1107] Could not download io-package.json schema for validation
|
|
1296
|
+
// [1108] Schema validation failed: ${error.message}
|