@iobroker/repochecker 4.2.1-alpha.0 → 5.0.0-alpha.0

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.
@@ -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 : 100 - 199, 200 - 249
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(`[E100] Cannot parse ioPackage.json: ${e}`);
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('[W207] Could not download ${schemaUrl} for validation of io-package.json');
111
+ context.warnings.push(`[W1107] Could not download ${schemaUrl} for validation of io-package.json`);
112
112
  return context;
113
113
  }
114
114
 
@@ -147,25 +147,25 @@ async function validateIOPackageSchema(context) {
147
147
  errorMsg = `Property "${path}" ${message}`;
148
148
  }
149
149
 
150
- context.warnings.push(`[W205] io-package.json schema validation error: ${errorMsg}`);
150
+ context.warnings.push(`[W1105] io-package.json schema validation error: ${errorMsg}`);
151
151
  }
152
152
  } else {
153
- context.warnings.push('[W205] io-package.json does not validate against schema');
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(`[W208] io-package.json schema validation failed: ${error.message}`);
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[E100 - E249] checking io-package.json');
165
+ console.log('\n[E1000 - E1999] checking io-package.json');
166
166
 
167
167
  if (!context.ioPackageJson.native) {
168
- context.errors.push('[E101] io-package.json must have at least empty "native" attribute');
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
- `[W173] Potential sensitive data "${missingProtected.join()}" not listed at "protectedNative" in io-package.json`,
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
- `[W173] Potential sensitive data "${suspiciousKeys.join()}" not listed at "protectedNative" in io-package.json`,
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
- `[W174] Potential sensitive data "${missingProtected.join(', ')}" not listed at "encryptedNative" in io-package.json`,
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
- `[W174] Potential sensitive data "${suspiciousKeys.join(', ')}" not listed at "encryptedNative" in io-package.json`,
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(`[E198] "encryptedNative" must be an array at io-package.json`);
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(`[E199] "protectedNative" must be an array at io-package.json`);
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
- `[W193] Encrypted native "${key}" should be listed at "protectedNative" in io-package.json`,
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
- `[S194] Consider adding protected native "${key}" to "encryptedNative" in io-package.json`,
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(`[W203] Encryption of array elements "${key}" is not yet available`);
273
+ context.warnings.push(`[W1103] Encryption of array elements "${key}" is not yet available`);
274
274
  } else {
275
275
  context.warnings.push(
276
- `[W195] Protected or encrypted element "${key}" should be listed at "native" in io-package.json`,
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('[E102] io-package.json must have common object');
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
- `[E103] "common.name" in io-package.json must be equal to "${context.adapterName.toLowerCase()}'". Now is ${context.ioPackageJson.common.name}`,
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
- '[W187] "common.materialize" replaced by property "common.adminUI.config" at io-package.json. Please remove.',
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
- '[W178] "common.materialize" is deprecated for admin >= 5 at io-package.json. Please use property "common.adminUI.config".',
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
- '[W188] "common.materializeTab" replaced by property "common.adminUI.tab" at io-package.json. Please remove.',
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
- '[W179] "common.materializeTab" is deprecated for admin >= 5 at io-package.json. Please use property "common.adminUI.tab".',
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('[E104] No "common.titleLang" found in io-package.json');
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
- `[E105] "common.titleLang" must be an object. Now: ${JSON.stringify(context.ioPackageJson.common.titleLang)}`,
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
- `[E126] Missing mandatory translation into ${missingLang.join()} of "common.titleLang" in io-package.json.`,
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
- `[W127] Missing suggested translation into ${missingLang.join()} of "common.titleLang" in io-package.json.`,
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
- `[E106] "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)}`,
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
- `[W128] "common.titleLang" should not contain word "adapter" in the name. It is clear, that this is adapter. Now: ${JSON.stringify(context.ioPackageJson.common.titleLang)}`,
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('[E107] No "common.version" found in io-package.json');
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('[E118] Versions in package.json and in io-package.json are different');
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('[E108] No "common.desc" found in io-package.json');
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
- `[E109] "common.desc" in io-package.json must be an object for many languages. Found only "${context.ioPackageJson.common.desc}"`,
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
- `[E133] Missing mandatory translation into ${missingLang.join()} of "common.desc" in io-package.json.`,
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
- `[W134] Missing suggested translation into ${missingLang.join()} of "common.desc" in io-package.json.`,
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
- '[E169] "common.keywords" must be an array within io-package.json and contain some useful keywords',
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
- '[E169] "common.keywords" must be an array within io-package.json and contain some useful keywords',
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
- '[E169] "common.keywords" must be an array within io-package.json and contain some useful keywords',
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
- `[W168] "common.keywords" should not contain "${forbiddenKeywords.join(', ')}" io-package.json`,
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('[E110] Icon not found in the io-package.json');
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('[E111] extIcon not found in the io-package.json');
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('[E112] extIcon must be the same as an icon but with github path.');
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
- '[W113] Please test whether adapter can support compact mode, if not set "common.compact:false" at io-package.json.',
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('[S139] Please evaluate whether adapter can be modified to support compact mode.');
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('[E114] "common.noConfig=true" requires "common.adminUI.config" to be set to "none"');
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
- '[E129] Admin support not specified. Please add "common.adminUI.config = json|materialize|html|none"',
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
- '[W181] "common.license" in io-package.json is deprecated. Please define object "common.licenseInformation"',
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('[E115] "common.licenseInformation" not found in io-package.json');
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
- '[E182] Please remove "common.license" from io-package.json as "common.licenseInformation" is declared.',
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('[E183] "common.licenseInformation.license" is missing');
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
- '[E116] No SPDX license found at "common.licenseInformation". Please use one of listed here: https://spdx.org/licenses/',
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('[E170] "common.licenseInformation.type" is invalid. Select valid type (e.g. free)');
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('[E171] "common.licenseInformation.link" is required for non-free adapters');
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('[E117] Licenses in package.json and in io-package.json are different');
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('[E165] "common.mode" not found in io-package.json');
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
- `[E166] "common.mode: ${context.ioPackageJson.common.mode}" is unknown in io-package.json.`,
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('[E164] onlyWWW should have common.mode "none" in io-package.json');
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
- '[E167] scheduled adapters must have "common.schedule" property in io-package.json',
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('[E192] extension adapters must list web adapter as dependency in io-package.json');
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
- '[W204] allowInit is only used with scheduled adapters and should be removed',
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
- '[S204] allowInit is only used with scheduled adapters and should be removed',
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('[E119] No type found in io-package.json');
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('[E120] Unknown type found in io-package.json');
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('[E121] No authors found in io-package.json');
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('[E122] authors must be an Array in io-package.json');
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('[E123] Authors may not be empty in io-package.json');
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,36 +648,36 @@ async function checkIOPackageJson(context) {
646
648
 
647
649
  if (context.ioPackageJson.common.localLink) {
648
650
  context.warnings.push(
649
- '[W172] "common.localLink" in io-package.json is deprecated. Please define object "common.localLinks": { "_default": "..." }',
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('[E130] No "common.news" found in io-package.json');
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
- '[E131] Too many "common.news" found in io-package.json. Must be less than 20. Please remove old news.',
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
- '[W132] Many "common.news" found in io-package.json. Repository builder will truncate at 7 news. Please remove old news.',
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(`[E175] Release "${version}" at "common.news" in io-package.json is malformed.`);
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
679
  context.errors.push(
678
- `[E136] No "common.news" found for actual version ${context.ioPackageJson.common.version} in io-package.json`,
680
+ `[E1036] No "common.news" found for actual version ${context.ioPackageJson.common.version} in io-package.json`,
679
681
  );
680
682
  }
681
683
 
@@ -688,7 +690,7 @@ async function checkIOPackageJson(context) {
688
690
  if (missingLang.length) {
689
691
  missingLang = [...new Set(missingLang)]; // make unique
690
692
  context.errors.push(
691
- `[E145] Missing mandatory translation into ${missingLang.join()} of some "common.news" in io-package.json.`,
693
+ `[E1045] Missing mandatory translation into ${missingLang.join()} of some "common.news" in io-package.json.`,
692
694
  );
693
695
  }
694
696
 
@@ -702,7 +704,7 @@ async function checkIOPackageJson(context) {
702
704
  if (missingLang.length) {
703
705
  missingLang = [...new Set(missingLang)]; // make unique
704
706
  context.warnings.push(
705
- `[W154] Missing suggested translation into ${missingLang.join()} of some "common.news" in io-package.json.`,
707
+ `[W1054] Missing suggested translation into ${missingLang.join()} of some "common.news" in io-package.json.`,
706
708
  );
707
709
  }
708
710
  }
@@ -710,13 +712,13 @@ async function checkIOPackageJson(context) {
710
712
  // check main entry
711
713
  if (context.ioPackageJson.common.mode !== 'none' && context.ioPackageJson.common.mode !== 'extension') {
712
714
  if (!context.packageJson.main) {
713
- !context.ioPackageJson.common.onlyWWW && context.errors.push('[E143] No main found in the package.json');
715
+ !context.ioPackageJson.common.onlyWWW && context.errors.push('[E1043] No main found in the package.json');
714
716
  } else {
715
717
  context.checks.push('"main" found in package.json');
716
718
  if (!context.packageJson.main.endsWith('.js') && !context.packageJson.main.endsWith('.ts')) {
717
719
  !context.ioPackageJson.common.onlyWWW &&
718
720
  context.errors.push(
719
- `[E163] common.mode "${context.ioPackageJson.common.mode}" requires JavaScript or Typescript file for "main" in package.json`,
721
+ `[E1063] common.mode "${context.ioPackageJson.common.mode}" requires JavaScript or Typescript file for "main" in package.json`,
720
722
  );
721
723
  } else {
722
724
  context.checks.push('"main" references .js or .ts file');
@@ -727,7 +729,7 @@ async function checkIOPackageJson(context) {
727
729
  if (context.ioPackageJson.instanceObjects) {
728
730
  const instanceObjects = context.ioPackageJson.instanceObjects;
729
731
  if (!(instanceObjects instanceof Array)) {
730
- context.errors.push('[E146] instanceObjects must be an Array in io-package.json');
732
+ context.errors.push('[E1046] instanceObjects must be an Array in io-package.json');
731
733
  } else {
732
734
  const allowedObjectTypes = [
733
735
  'state',
@@ -749,14 +751,14 @@ async function checkIOPackageJson(context) {
749
751
 
750
752
  instanceObjects.forEach(instanceObject => {
751
753
  if (instanceObject.type !== undefined && !allowedObjectTypes.includes(instanceObject.type)) {
752
- context.errors.push(`[E147] instanceObject type has an invalid type: ${instanceObject.type}`);
754
+ context.errors.push(`[E1047] instanceObject type has an invalid type: ${instanceObject.type}`);
753
755
  }
754
756
 
755
757
  if (instanceObject.common) {
756
758
  if (instanceObject.common.type !== undefined) {
757
759
  if (typeof instanceObject.common.type !== 'string') {
758
760
  context.errors.push(
759
- `[E148] instanceObject common.type has an invalid type! Expected "string", received "${typeof instanceObject.common.type}"`,
761
+ `[E1048] instanceObject common.type has an invalid type! Expected "string", received "${typeof instanceObject.common.type}"`,
760
762
  );
761
763
  }
762
764
 
@@ -765,7 +767,7 @@ async function checkIOPackageJson(context) {
765
767
  !allowedStateTypes.includes(instanceObject.common.type)
766
768
  ) {
767
769
  context.errors.push(
768
- `[E149] instanceObject common.type has an invalid value: ${instanceObject.common.type}`,
770
+ `[E1049] instanceObject common.type has an invalid value: ${instanceObject.common.type}`,
769
771
  );
770
772
  }
771
773
  }
@@ -776,25 +778,25 @@ async function checkIOPackageJson(context) {
776
778
 
777
779
  if (!context.ioPackageJson.common.connectionType) {
778
780
  !context.ioPackageJson.common.onlyWWW &&
779
- context.errors.push('[E150] No "common.connectionType" found in io-package.json');
781
+ context.errors.push('[E1050] No "common.connectionType" found in io-package.json');
780
782
  } else if (!['local', 'cloud', 'none'].includes(context.ioPackageJson.common.connectionType)) {
781
783
  context.errors.push(
782
- `[E151] "common.connectionType" type has an invalid value "${context.ioPackageJson.common.connectionType}"`,
784
+ `[E1051] "common.connectionType" type has an invalid value "${context.ioPackageJson.common.connectionType}"`,
783
785
  );
784
786
  }
785
787
 
786
788
  if (!context.ioPackageJson.common.dataSource) {
787
789
  !context.ioPackageJson.common.onlyWWW &&
788
- context.errors.push('[E152] No "common.dataSource" found in io-package.json');
790
+ context.errors.push('[E1052] No "common.dataSource" found in io-package.json');
789
791
  } else if (!['poll', 'push', 'assumption', 'none'].includes(context.ioPackageJson.common.dataSource)) {
790
792
  context.errors.push(
791
- `[E153] "common.dataSource" type has an invalid value "${context.ioPackageJson.common.dataSource}"`,
793
+ `[E1053] "common.dataSource" type has an invalid value "${context.ioPackageJson.common.dataSource}"`,
792
794
  );
793
795
  }
794
796
 
795
797
  if (context.ioPackageJson.common.supportsCustoms) {
796
798
  if (!context.ioPackageJson.common.adminUI?.custom && context.ioPackageJson.common.adminUI?.custom !== 'json') {
797
- context.errors.push(`[E196] "common.supportCustoms" requires "common.adminUI.custom" to be defined`);
799
+ context.errors.push(`[E1096] "common.supportCustoms" requires "common.adminUI.custom" to be defined`);
798
800
  } else {
799
801
  context.checks.push('"support.customs" is set and "adminUI.custom" requires "json"');
800
802
  }
@@ -806,7 +808,7 @@ async function checkIOPackageJson(context) {
806
808
  let currentJsControllerVersion = undefined;
807
809
  if (context.ioPackageJson.common.dependencies) {
808
810
  if (!(context.ioPackageJson.common.dependencies instanceof Array)) {
809
- context.errors.push(`[E185] "common.dependencies" must be an array at io-package.json`);
811
+ context.errors.push(`[E1085] "common.dependencies" must be an array at io-package.json`);
810
812
  } else {
811
813
  // Check for empty dependency objects
812
814
  const emptyDependencies = context.ioPackageJson.common.dependencies.filter(
@@ -814,7 +816,7 @@ async function checkIOPackageJson(context) {
814
816
  );
815
817
  if (emptyDependencies.length > 0) {
816
818
  context.errors.push(
817
- `[E200] Empty dependency objects found in "common.dependencies" at io-package.json. Please remove empty objects.`,
819
+ `[E1100] Empty dependency objects found in "common.dependencies" at io-package.json. Please remove empty objects.`,
818
820
  );
819
821
  }
820
822
 
@@ -822,7 +824,7 @@ async function checkIOPackageJson(context) {
822
824
 
823
825
  // Admin is not allowed in dependencies (globalDependencies only)
824
826
  if (dependencyArray.includes('admin')) {
825
- context.errors.push(`[E160] "admin" is not allowed in common.dependencies`);
827
+ context.errors.push(`[E1060] "admin" is not allowed in common.dependencies`);
826
828
  }
827
829
 
828
830
  const jsControllerDependency = context.ioPackageJson.common.dependencies.find(dep =>
@@ -833,7 +835,7 @@ async function checkIOPackageJson(context) {
833
835
 
834
836
  if (!jsControllerDependency['js-controller'].startsWith('>=')) {
835
837
  context.errors.push(
836
- `[E159] common.dependencies "js-controller" dependency should always allow future versions (>=x.x.x) - recommended: {"js-controller": ">=${recommendedJsControllerVersion}"}.`,
838
+ `[E1059] common.dependencies "js-controller" dependency should always allow future versions (>=x.x.x) - recommended: {"js-controller": ">=${recommendedJsControllerVersion}"}.`,
837
839
  );
838
840
  } else {
839
841
  currentJsControllerVersion = jsControllerDependency['js-controller'].replace(/[^\d.]/g, '');
@@ -842,11 +844,11 @@ async function checkIOPackageJson(context) {
842
844
  if (!context.ioPackageJson.common.onlyWWW) {
843
845
  if (requiredJsControllerVersion !== recommendedJsControllerVersion) {
844
846
  context.errors.push(
845
- `[E162] js-controller dependency missing. js-controller ${requiredJsControllerVersion} is required as minimum, ${recommendedJsControllerVersion} is recommended. Please add to dependencies at io-package.json.`,
847
+ `[E1062] js-controller dependency missing. js-controller ${requiredJsControllerVersion} is required as minimum, ${recommendedJsControllerVersion} is recommended. Please add to dependencies at io-package.json.`,
846
848
  );
847
849
  } else {
848
850
  context.errors.push(
849
- `[E162] js-controller dependency missing. js-controller ${requiredJsControllerVersion} is required as minimum. Please add to dependencies at io-package.json.`,
851
+ `[E1062] js-controller dependency missing. js-controller ${requiredJsControllerVersion} is required as minimum. Please add to dependencies at io-package.json.`,
850
852
  );
851
853
  }
852
854
  }
@@ -854,14 +856,14 @@ async function checkIOPackageJson(context) {
854
856
  }
855
857
  } else {
856
858
  if (!context.ioPackageJson.common.onlyWWW) {
857
- context.errors.push(`[E185] "common.dependencies" must be an array at io-package.json`);
859
+ context.errors.push(`[E1085] "common.dependencies" must be an array at io-package.json`);
858
860
  if (requiredJsControllerVersion !== recommendedJsControllerVersion) {
859
861
  context.errors.push(
860
- `[E162] js-controller dependency missing. js-controller ${requiredJsControllerVersion} is required as minimum, ${recommendedJsControllerVersion} is recommended. Please add to dependencies at io-package.json.`,
862
+ `[E1062] js-controller dependency missing. js-controller ${requiredJsControllerVersion} is required as minimum, ${recommendedJsControllerVersion} is recommended. Please add to dependencies at io-package.json.`,
861
863
  );
862
864
  } else {
863
865
  context.errors.push(
864
- `[E162] js-controller dependency missing. js-controller ${requiredJsControllerVersion} is required as minimum. Please add to dependencies at io-package.json.`,
866
+ `[E1062] js-controller dependency missing. js-controller ${requiredJsControllerVersion} is required as minimum. Please add to dependencies at io-package.json.`,
865
867
  );
866
868
  }
867
869
  }
@@ -883,11 +885,11 @@ async function checkIOPackageJson(context) {
883
885
  ) {
884
886
  if (requiredJsControllerVersion !== recommendedJsControllerVersion) {
885
887
  context.errors.push(
886
- `[E157] js-controller ${currentJsControllerVersion} listed as dependency but ${requiredJsControllerVersion} is required as minimum, ${recommendedJsControllerVersion} is recommended. Please update dependency at io-package.json.`,
888
+ `[E1057] js-controller ${currentJsControllerVersion} listed as dependency but ${requiredJsControllerVersion} is required as minimum, ${recommendedJsControllerVersion} is recommended. Please update dependency at io-package.json.`,
887
889
  );
888
890
  } else {
889
891
  context.errors.push(
890
- `[E157] js-controller ${currentJsControllerVersion} listed as dependency but ${requiredJsControllerVersion} is required as minimum. Please update dependency at io-package.json.`,
892
+ `[E1057] js-controller ${currentJsControllerVersion} listed as dependency but ${requiredJsControllerVersion} is required as minimum. Please update dependency at io-package.json.`,
891
893
  );
892
894
  }
893
895
  } else if (
@@ -895,7 +897,7 @@ async function checkIOPackageJson(context) {
895
897
  compareVersions.compare(recommendedJsControllerVersion, currentJsControllerVersion, '>')
896
898
  ) {
897
899
  context.warnings.push(
898
- `[W156] js-controller ${currentJsControllerVersion} listed as dependency but ${recommendedJsControllerVersion} is recommended. Please consider updating dependency at io-package.json.`,
900
+ `[W1056] js-controller ${currentJsControllerVersion} listed as dependency but ${recommendedJsControllerVersion} is recommended. Please consider updating dependency at io-package.json.`,
899
901
  );
900
902
  }
901
903
 
@@ -922,7 +924,7 @@ async function checkIOPackageJson(context) {
922
924
  let currentAdminVersion = undefined;
923
925
  if (context.ioPackageJson.common.globalDependencies) {
924
926
  if (!(context.ioPackageJson.common.globalDependencies instanceof Array)) {
925
- context.errors.push(`[E186] "common.globalDependencies" must be an array at io-package.json`);
927
+ context.errors.push(`[E1086] "common.globalDependencies" must be an array at io-package.json`);
926
928
  } else {
927
929
  // Check for empty dependency objects
928
930
  const emptyGlobalDependencies = context.ioPackageJson.common.globalDependencies.filter(
@@ -930,7 +932,7 @@ async function checkIOPackageJson(context) {
930
932
  );
931
933
  if (emptyGlobalDependencies.length > 0) {
932
934
  context.errors.push(
933
- `[E201] Empty dependency objects found in "common.globalDependencies" at io-package.json. Please remove empty objects.`,
935
+ `[E1101] Empty dependency objects found in "common.globalDependencies" at io-package.json. Please remove empty objects.`,
934
936
  );
935
937
  }
936
938
 
@@ -938,7 +940,7 @@ async function checkIOPackageJson(context) {
938
940
 
939
941
  // js-controller is not allowed in global dependencies (dependencies only)
940
942
  if (dependencyArray.includes('js-controller')) {
941
- context.errors.push(`[E161] "js-controller" is not allowed in common.globalDependencies`);
943
+ context.errors.push(`[E1061] "js-controller" is not allowed in common.globalDependencies`);
942
944
  }
943
945
 
944
946
  const adminDependency = context.ioPackageJson.common.globalDependencies.find(dep =>
@@ -949,25 +951,25 @@ async function checkIOPackageJson(context) {
949
951
 
950
952
  if (!adminDependency['admin'].startsWith('>=')) {
951
953
  context.errors.push(
952
- `[E189] common.dependencies "admin" dependency should always allow future versions (>=x.x.x) - recommended: {"admin": ">=${recommendedAdminVersion}"}.`,
954
+ `[E1089] common.dependencies "admin" dependency should always allow future versions (>=x.x.x) - recommended: {"admin": ">=${recommendedAdminVersion}"}.`,
953
955
  );
954
956
  } else {
955
957
  currentAdminVersion = adminDependency['admin'].replace(/[^\d.]/g, '');
956
958
  }
957
959
  if (!requireAdmin) {
958
960
  context.warnings.push(
959
- `[S191] admin dependency (${adminDependency['admin']}) at io-package.json is not required as 'common.adminUI' specifies that no UI exists. Feel free to remove.`,
961
+ `[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
962
  );
961
963
  }
962
964
  } else {
963
965
  if (requireAdmin) {
964
966
  if (requiredAdminVersion !== recommendedAdminVersion) {
965
967
  context.errors.push(
966
- `[E190] admin dependency missing. admin ${requiredAdminVersion} is required as minimum, ${recommendedAdminVersion} is recommended. Please add to globalDependencies at io-package.json.`,
968
+ `[E1090] admin dependency missing. admin ${requiredAdminVersion} is required as minimum, ${recommendedAdminVersion} is recommended. Please add to globalDependencies at io-package.json.`,
967
969
  );
968
970
  } else {
969
971
  context.errors.push(
970
- `[E190] admin dependency missing. admin ${requiredAdminVersion} is required as minimum. Please add to globalDependencies at io-package.json.`,
972
+ `[E1090] admin dependency missing. admin ${requiredAdminVersion} is required as minimum. Please add to globalDependencies at io-package.json.`,
971
973
  );
972
974
  }
973
975
  }
@@ -975,14 +977,14 @@ async function checkIOPackageJson(context) {
975
977
  }
976
978
  } else {
977
979
  if (requireAdmin) {
978
- // context.errors.push(`[E186] "common.globalDependencies" must be an array at io-package.json`);
980
+ // context.errors.push(`[E1086] "common.globalDependencies" must be an array at io-package.json`);
979
981
  if (requiredAdminVersion !== recommendedAdminVersion) {
980
982
  context.errors.push(
981
- `[E190] admin dependency missing. admin ${requiredAdminVersion} is required as minimum, ${recommendedAdminVersion} is recommended. Please add to globalDependencies at io-package.json.`,
983
+ `[E1090] admin dependency missing. admin ${requiredAdminVersion} is required as minimum, ${recommendedAdminVersion} is recommended. Please add to globalDependencies at io-package.json.`,
982
984
  );
983
985
  } else {
984
986
  context.errors.push(
985
- `[E190] admin dependency missing. admin ${requiredAdminVersion} is required as minimum. Please add to globalDependencies at io-package.json.`,
987
+ `[E1090] admin dependency missing. admin ${requiredAdminVersion} is required as minimum. Please add to globalDependencies at io-package.json.`,
986
988
  );
987
989
  }
988
990
  }
@@ -991,16 +993,16 @@ async function checkIOPackageJson(context) {
991
993
  if (currentAdminVersion && compareVersions.compare(requiredAdminVersion, currentAdminVersion, '>')) {
992
994
  if (requiredAdminVersion !== recommendedAdminVersion) {
993
995
  context.errors.push(
994
- `[E157] admin ${currentAdminVersion} listed as dependency but ${requiredAdminVersion} is required as minimum, ${recommendedAdminVersion} is recommended. Please update globalDependency at io-package.json.`,
996
+ `[E1057] admin ${currentAdminVersion} listed as dependency but ${requiredAdminVersion} is required as minimum, ${recommendedAdminVersion} is recommended. Please update globalDependency at io-package.json.`,
995
997
  );
996
998
  } else {
997
999
  context.errors.push(
998
- `[E157] admin ${currentAdminVersion} listed as dependency but ${requiredAdminVersion} is required as minimum. Please update globalDependency at io-package.json.`,
1000
+ `[E1057] admin ${currentAdminVersion} listed as dependency but ${requiredAdminVersion} is required as minimum. Please update globalDependency at io-package.json.`,
999
1001
  );
1000
1002
  }
1001
1003
  } else if (currentAdminVersion && compareVersions.compare(recommendedAdminVersion, currentAdminVersion, '>')) {
1002
1004
  context.warnings.push(
1003
- `[W156] admin ${currentAdminVersion} listed as dependency but ${recommendedAdminVersion} is recommended. Please consider updating globalDependency at io-package.json.`,
1005
+ `[W1056] admin ${currentAdminVersion} listed as dependency but ${recommendedAdminVersion} is recommended. Please consider updating globalDependency at io-package.json.`,
1004
1006
  );
1005
1007
  } else {
1006
1008
  if (requireAdmin) {
@@ -1013,11 +1015,11 @@ async function checkIOPackageJson(context) {
1013
1015
  if (!context.ioPackageJson.common.onlyWWW) {
1014
1016
  if (!context.ioPackageJson.common.tier) {
1015
1017
  context.warnings.push(
1016
- `[W135] "common.tier" is required in io-package.json. Please check https://github.com/ioBroker/ioBroker.docs/blob/master/docs/en/dev/objectsschema.md#adapter.`,
1018
+ `[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
1019
  );
1018
1020
  } else if (![1, 2, 3].includes(context.ioPackageJson.common.tier)) {
1019
1021
  context.errors.push(
1020
- `[E155] Invalid "common.tier" value: ${context.ioPackageJson.common.tier} at io-package.json. Only 1, 2 or 3 are allowed!`,
1022
+ `[E1055] Invalid "common.tier" value: ${context.ioPackageJson.common.tier} at io-package.json. Only 1, 2 or 3 are allowed!`,
1021
1023
  );
1022
1024
  } else {
1023
1025
  context.checks.push('"common.tier" is valid in io-package.json');
@@ -1028,7 +1030,7 @@ async function checkIOPackageJson(context) {
1028
1030
 
1029
1031
  if (context.ioPackageJson.common.automaticUpgrade) {
1030
1032
  context.errors.push(
1031
- `[E137] "common.automaticUpgrade" will be defined by the user. Please remove from io-package.json`,
1033
+ `[E1037] "common.automaticUpgrade" will be defined by the user. Please remove from io-package.json`,
1032
1034
  );
1033
1035
  } else {
1034
1036
  context.checks.push('"common.automaticUpgrade" does not exist in io-package.json');
@@ -1040,7 +1042,7 @@ async function checkIOPackageJson(context) {
1040
1042
  // own adapter is not allowed in a restart array
1041
1043
  if (restartAdaptersArray.includes(context.ioPackageJson.common.name)) {
1042
1044
  context.errors.push(
1043
- `[E176] Own adapter is not allowed to be listed at "common.restartAdapters" in io-package.json`,
1045
+ `[E1076] Own adapter is not allowed to be listed at "common.restartAdapters" in io-package.json`,
1044
1046
  );
1045
1047
  } else {
1046
1048
  context.checks.push('Own adapter not listed at "common.restartAdapters".');
@@ -1049,7 +1051,7 @@ async function checkIOPackageJson(context) {
1049
1051
  // suggest to restart 'vis-2' if 'vis' is in restart list
1050
1052
  if (restartAdaptersArray.includes('vis') && !restartAdaptersArray.includes('vis-2')) {
1051
1053
  context.warnings.push(
1052
- `[S202] Consider adding 'vis-2' to "common.restartAdapters" as 'vis' is already listed in io-package.json`,
1054
+ `[S1102] Consider adding 'vis-2' to "common.restartAdapters" as 'vis' is already listed in io-package.json`,
1053
1055
  );
1054
1056
  }
1055
1057
  } else {
@@ -1089,11 +1091,11 @@ async function checkIOPackageJson(context) {
1089
1091
  }
1090
1092
  if (tmp) {
1091
1093
  if (blacklistIOPackageJson[blacklist].err) {
1092
- context.errors.push(`[E184] ${blacklistIOPackageJson[blacklist].msg}`);
1094
+ context.errors.push(`[E1084] ${blacklistIOPackageJson[blacklist].msg}`);
1093
1095
  } else if (blacklistIOPackageJson[blacklist].suggestion) {
1094
- context.warnings.push(`[S184] ${blacklistIOPackageJson[blacklist].msg}`);
1096
+ context.warnings.push(`[S1084] ${blacklistIOPackageJson[blacklist].msg}`);
1095
1097
  } else {
1096
- context.warnings.push(`[W184] ${blacklistIOPackageJson[blacklist].msg}`);
1098
+ context.warnings.push(`[W1084] ${blacklistIOPackageJson[blacklist].msg}`);
1097
1099
  }
1098
1100
  }
1099
1101
  }
@@ -1112,7 +1114,7 @@ async function checkIOPackageJson(context) {
1112
1114
  //console.log(icon);
1113
1115
  } catch (e) {
1114
1116
  common.debug(e);
1115
- context.errors.push(`[E125] External icon not found under URL: ${context.ioPackageJson.common.extIcon}`);
1117
+ context.errors.push(`[E1025] External icon not found under URL: ${context.ioPackageJson.common.extIcon}`);
1116
1118
  icon = null;
1117
1119
  }
1118
1120
  if (icon) {
@@ -1124,17 +1126,17 @@ async function checkIOPackageJson(context) {
1124
1126
  );
1125
1127
  if (image.width !== image.height) {
1126
1128
  context.errors.push(
1127
- '[E140] width and height of logo (specified at "common.extIcon") are not equal',
1129
+ '[E1040] width and height of logo (specified at "common.extIcon") are not equal',
1128
1130
  );
1129
1131
  } else {
1130
1132
  context.checks.push('width and height of "extIcon" logo are equal');
1131
1133
  if (image.width < 32) {
1132
1134
  context.errors.push(
1133
- '[E141] logo (specified at "common.extIcon") is too small. It must be greater or equal than 32x32',
1135
+ '[E1041] logo (specified at "common.extIcon") is too small. It must be greater or equal than 32x32',
1134
1136
  );
1135
1137
  } else if (image.width > 512) {
1136
1138
  context.errors.push(
1137
- '[E142] logo (specified at "common.extIcon") is too big. It must be less or equal than 512x512',
1139
+ '[E1042] logo (specified at "common.extIcon") is too big. It must be less or equal than 512x512',
1138
1140
  );
1139
1141
  } else {
1140
1142
  context.checks.push('"extIcon" logo is of correct size');
@@ -1142,7 +1144,7 @@ async function checkIOPackageJson(context) {
1142
1144
  }
1143
1145
  } catch (e) {
1144
1146
  common.debug(e);
1145
- context.errors.push(`[E197] External icon ${context.ioPackageJson.common.extIcon} cannot be parsed`);
1147
+ context.errors.push(`[E1097] External icon ${context.ioPackageJson.common.extIcon} cannot be parsed`);
1146
1148
  }
1147
1149
  }
1148
1150
  }
@@ -1155,11 +1157,11 @@ async function checkIOPackageJson(context) {
1155
1157
  common.debug(e);
1156
1158
  if (!context.ioPackageJson.common.nogit) {
1157
1159
  context.errors.push(
1158
- `[E124] Main file not found under URL: ${context.githubUrl}/${context.packageJson.main}.`,
1160
+ `[E1024] Main file not found under URL: ${context.githubUrl}/${context.packageJson.main}.`,
1159
1161
  );
1160
1162
  } else if (!context.packageJson.main.startsWith('build/')) {
1161
1163
  context.warnings.push(
1162
- `[W138] Main file not found under URL: ${context.githubUrl}/${context.packageJson.main} and not located at build/ directory too.`,
1164
+ `[W1038] Main file not found under URL: ${context.githubUrl}/${context.packageJson.main} and not located at build/ directory too.`,
1163
1165
  );
1164
1166
  }
1165
1167
  }
@@ -1177,116 +1179,116 @@ exports.checkIOPackageJson = checkIOPackageJson;
1177
1179
  // List of error and warnings used at this module
1178
1180
  // ----------------------------------------------
1179
1181
 
1180
- // [100] Cannot parse ioPackage.json: ${e}
1181
- // [101] io-package.json must have at least empty "native" attribute
1182
- // [102] io-package.json must have common object
1183
- // [103] "common.name" in io-package.json must be equal to "${context.adapterName.toLowerCase()}'". Now is ${context.ioPackageJson.common.name}
1184
- // [104] No "common.titleLang" found in io-package.json
1185
- // [105] "common.titleLang" must be an object. Now: ${JSON.stringify(context.ioPackageJson.common.titleLang)}
1186
- // [106] "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)}
1187
- // [107] No "common.version" found in io-package.json
1188
- // [108] No "common.desc" found in io-package.json
1189
- // [109] "common.desc" in io-package.json must be an object for many languages. Found only "${context.ioPackageJson.common.desc}"
1190
- // [110] Icon not found in the io-package.json
1191
- // [111] extIcon not found in the io-package.json
1192
- // [112] extIcon must be the same as an icon but with github path
1193
- // [113] Adapter should support compact mode
1194
- // [114] "common.noConfig=true" requires "common.adminUI.config" to be set to "none"'
1195
- // [115] "common.licenseInformation" not found in io-package.json
1196
- // [116] No SPDX license found at "common.licenseInformation". Please use one of listed here: https://spdx.org/licenses/
1197
- // [117] Licenses in package.json and in io-package.json are different
1198
- // [118] Versions in package.json and in io-package.json are different
1199
- // [119] No type found in io-package.json
1200
- // [120] Unknown type found in io-package.json
1201
- // [121] No authors found in io-package.json
1202
- // [122] authors must be an Array in io-package.json
1203
- // [123] Authors may not be empty in io-package.json
1204
- // [124] Main file not found under URL: ${context.githubUrl}/${context.packageJson.main}
1205
- // [125] External icon not found under URL: ${context.ioPackageJson.common.extIcon}
1206
- // [126] Missing mandatory translation into ${missingLang.join()} of "common.titleLang" in io-package.json.
1207
- // [127] Missing suggested translation into ${missingLang.join()} of "common.titleLang" in io-package.json.
1208
- // [128] "common.titleLang" should not contain word "adapter" in the name. It is clear, that this is adapter. Now: ${JSON.stringify(context.ioPackageJson.common.titleLang)}
1209
- // [129] Admin support not specified. Please add "common.adminUI.config = json|materialize|html|none"
1210
- // [130] No "common.news" found in io-package.json
1211
- // [131] Too many "common.news" found in io-package.json. Must be less than 20. Please remove old news.
1212
- // [132] Many "common.news" found in io-package.json. Repository builder will truncate at 7 news. Please remove old news.
1213
- // [133] Missing mandatory translation into ${missingLang.join()} of "common.desc" in io-package.json.
1214
- // [134] Missing suggested translation into ${missingLang.join()} of "common.desc" in io-package.json.
1215
- // [135] "common.tier" is required in io-package.json. Please check https://github.com/ioBroker/ioBroker.docs/blob/master/docs/en/dev/objectsschema.md#adapter.
1216
- // [136] No "common.news" found for actual version ${context.ioPackageJson.common.version} in io-package.json
1217
- // [137] "common.automaticUpgrade" will be defined by the user. Please remove from io-package.json
1218
- // [138] Main file not found under URL: ${context.githubUrl}/${context.packageJson.main} and not located at build/ directory too.
1219
- // [139] Please evaluate whether adapter can be modified to support compact mode.
1220
- // [140] width and height of logo are not equal
1221
- // [141] logo is too small. It must be greater or equal than 32x32
1222
- // [142] logo is too big. It must be less or equal than 512x512
1223
- // [143] No main found in the package.json
1224
- // [144] common.installedFrom field found in io-package.json. Must be removed.
1225
- // [145] Missing mandatory translation into ${missingLang.join()} of some "common.news" in io-package.json.
1226
- // [146] instanceObjects must be an Array in io-package.json
1227
- // [147] instanceObject type has an invalid type: ${instanceObject.type}
1228
- // [148] instanceObject common.type has an invalid type! Expected "string", received "${typeof instanceObject.common.type}"
1229
- // [149] instanceObject common.type has an invalid value: ${instanceObject.common.type}
1230
- // [150] No "common.connectionType" found in io-package.json
1231
- // [151] "common.connectionType" type has an invalid value "${context.ioPackageJson.common.connectionType}"
1232
- // [152] No "common.dataSource" found in io-package.json
1233
- // [153] "common.dataSource" type has an invalid value "${context.ioPackageJson.common.dataSource}"
1234
- // [154] Missing suggested translation into ${missingLang.join()} of some "common.news" in io-package.json.
1235
- // [155] Invalid "common.tier" value: ${context.ioPackageJson.common.tier} at io-package.json. Only 1, 2 or 3 are allowed!
1236
- // [156] js-controller ${currentJsControllerVersion} listed as dependency but ${recommendedJsControllerVersion} is recommended. Please consider updating dependency at io-package.json.
1237
- // [157] js-controller ${currentJsControllerVersion} listed as dependency but ${requiredJsControllerVersion} is required as minimum, ${recommendedJsControllerVersion} is recommended. Please update dependency at io-package.json.
1238
- // [158] "common.title" is deprecated in io-package.json. Please remove from io-package.json.
1239
- // [159] common.dependencies "js-controller" dependency should always allow future versions (>=x.x.x) - recommended: {"js-controller": ">=${recommendedJsControllerVersion}"}
1240
- // [160] "admin" is not allowed in common.dependencies
1241
- // [161] "js-controller" is not allowed in common.globalDependencies
1242
- // [162] js-controller dependency missing. js-controller ${requiredJsControllerVersion} is required as minimum, ${recommendedJsControllerVersion} is recommended. Please add to dependencies at io-package.json.
1243
- // [163] common.mode "${context.ioPackageJson.common.mode}" requires JavaScript file for "main" in package.json
1244
- // [164] onlyWWW should have common.mode "none" in io-package.json
1245
- // [165] "common.mode" not found in io-package.json
1246
- // [166] "common.mode: ${context.ioPackageJson.common.mode}" is unknown in io-package.json.
1247
- // [167] scheduled adapters must have "common.schedule" property in io-package.json
1248
- // [168] "common.keywords" should not contain "${forbiddenKeywords.join(', ')}" io-package.json0
1249
- // [169] "common.keywords" must be an array within io-package.json and contain some useful keywords
1250
- // [169] "common.keywords" must be an array within io-package.json and contain some useful keywords
1251
- // [169] "common.keywords" must be an array within io-package.json and contain some useful keywords
1252
- // [170] "common.licenseInformation.type" is invalid. Select valid type (e.g. free)
1253
- // [171] "common.licenseInformation.link" is required for non-free adapters
1254
- // [172] "common.localLink" in io-package.json is deprecated. Please define object "common.localLinks": { "_default": "..." }
1255
- // [173] Potential sensitive data "${missingProtected.join()}" not listed at "protectedNative" in io-package.json
1256
- // [173] Potential sensitive data "${suspiciousKeys.join()}" not listed at "protectedNative" in io-package.json
1257
- // [174] Potential sensitive data "${missingProtected.join()}" not listed at "encryptedNative" in io-package.json
1258
- // [174] Potential sensitive data "${suspiciousKeys.join()}" not listed at "encryptedNative" in io-package.json
1259
- // [175] Release "${version}" at "common.news" in io-package.json is malformed.
1260
- // [176] Own adapter is not allowed to be listed at "common.restartAdapters" in io-package.json
1261
- // [177] "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.
1262
- // [178] "common.materialize" is deprecated in io-package.json. For admin version >= 5 please use the property "common.adminUI"
1263
- // [179] "common.materializeTab" is deprecated in io-package.json. For admin version >= 5 please use the property "common.adminUI".
1264
- // [180] "common.noConfig" is deprecated in io-package.json. For admin version >= 5 please use "common.adminUI.config":"none".
1265
- // [181] "common.license" in io-package.json is deprecated. Please define object "common.licenseInformation"
1266
- // [182] Please remove "common.license" from io-package.json as "common.licenseInformation" is declared.
1267
- // [183] "common.licenseInformation.license" is missing
1268
- // [184] ${blacklistIOPackageJson[blacklist].msg}
1269
- // [184] ${blacklistIOPackageJson[blacklist].msg}
1270
- // [185] "common.dependencies" must be an array at io-package.json
1271
- // [186] "common.globalDependencies" must be an array at io-package.json
1272
- // [187] "common.materialize" replaced by property "common.adminUI.config" at io-package.json. Please remove.
1273
- // [188] "common.materializeTab" replaced by property "common.adminUI.tab" at io-package.json. Please remove.
1274
- // [189] common.dependencies "admin" dependency should always allow future versions (>=x.x.x) - recommended: {"admin": ">=${recommendedAdminVersion}".
1275
- // [190] admin dependency missing. admin ${requiredAdminVersion} is required as minimum, ${recommendedAdminVersion} is recommended. Please add to dependencies at io-package.json.
1276
- // [191] admin dependency (${adminDependency['admin']}) at io-package.json is not required. Feel free to remove.
1277
- // [192] extension adapters must list web adapter as dependency in io-package.json
1278
- // [193] Encrypted native "${encrypted}" not listed at "protectedNative" in io-package.json
1279
- // [194] Protected native "${protected}" not listed at "encryptedNative" in io-package.json
1280
- // [195] Protected or encrypted element "${protected}" not listed as "native" in io-package.json
1281
- // [196] "common.supportCustoms" requires "common.adminUI.custom" to be defined
1282
- // [197] External icon ${context.ioPackageJson.common.extIcon} cannot be parsed
1283
- // [198] "common.encryptedNative" must be an array at io-package.json
1284
- // [199] "common.protectedNative" must be an array at io-package.json
1285
- // [200] Empty dependency objects found in "common.dependencies" at io-package.json. Please remove empty objects.
1286
- // [201] Empty dependency objects found in "common.globalDependencies" at io-package.json. Please remove empty objects.
1287
- // [202] Consider adding 'vis-2' to "common.restartAdapters" as 'vis' is already listed in io-package.json
1288
- // [203] Encryption of array elements "${key}" is not yet available
1289
- // [204] allowInit is only used with scheduled adapters and should be removed
1290
- // [205] Schema validation: ${errorMsg}
1291
- // [207] Could not download io-package.json schema for validation
1292
- // [208] Schema validation failed: ${error.message}
1182
+ // [1000] Cannot parse ioPackage.json: ${e}
1183
+ // [1001] io-package.json must have at least empty "native" attribute
1184
+ // [1002] io-package.json must have common object
1185
+ // [1003] "common.name" in io-package.json must be equal to "${context.adapterName.toLowerCase()}'". Now is ${context.ioPackageJson.common.name}
1186
+ // [1004] No "common.titleLang" found in io-package.json
1187
+ // [1005] "common.titleLang" must be an object. Now: ${JSON.stringify(context.ioPackageJson.common.titleLang)}
1188
+ // [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)}
1189
+ // [1007] No "common.version" found in io-package.json
1190
+ // [1008] No "common.desc" found in io-package.json
1191
+ // [1009] "common.desc" in io-package.json must be an object for many languages. Found only "${context.ioPackageJson.common.desc}"
1192
+ // [1010] Icon not found in the io-package.json
1193
+ // [1011] extIcon not found in the io-package.json
1194
+ // [1012] extIcon must be the same as an icon but with github path
1195
+ // [1013] Adapter should support compact mode
1196
+ // [1014] "common.noConfig=true" requires "common.adminUI.config" to be set to "none"'
1197
+ // [1015] "common.licenseInformation" not found in io-package.json
1198
+ // [1016] No SPDX license found at "common.licenseInformation". Please use one of listed here: https://spdx.org/licenses/
1199
+ // [1017] Licenses in package.json and in io-package.json are different
1200
+ // [1018] Versions in package.json and in io-package.json are different
1201
+ // [1019] No type found in io-package.json
1202
+ // [1020] Unknown type found in io-package.json
1203
+ // [1021] No authors found in io-package.json
1204
+ // [1022] authors must be an Array in io-package.json
1205
+ // [1023] Authors may not be empty in io-package.json
1206
+ // [1024] Main file not found under URL: ${context.githubUrl}/${context.packageJson.main}
1207
+ // [1025] External icon not found under URL: ${context.ioPackageJson.common.extIcon}
1208
+ // [1026] Missing mandatory translation into ${missingLang.join()} of "common.titleLang" in io-package.json.
1209
+ // [1027] Missing suggested translation into ${missingLang.join()} of "common.titleLang" in io-package.json.
1210
+ // [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)}
1211
+ // [1029] Admin support not specified. Please add "common.adminUI.config = json|materialize|html|none"
1212
+ // [1030] No "common.news" found in io-package.json
1213
+ // [1031] Too many "common.news" found in io-package.json. Must be less than 20. Please remove old news.
1214
+ // [1032] Many "common.news" found in io-package.json. Repository builder will truncate at 7 news. Please remove old news.
1215
+ // [1033] Missing mandatory translation into ${missingLang.join()} of "common.desc" in io-package.json.
1216
+ // [1034] Missing suggested translation into ${missingLang.join()} of "common.desc" in io-package.json.
1217
+ // [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.
1218
+ // [1036] No "common.news" found for actual version ${context.ioPackageJson.common.version} in io-package.json
1219
+ // [1037] "common.automaticUpgrade" will be defined by the user. Please remove from io-package.json
1220
+ // [1038] Main file not found under URL: ${context.githubUrl}/${context.packageJson.main} and not located at build/ directory too.
1221
+ // [1039] Please evaluate whether adapter can be modified to support compact mode.
1222
+ // [1040] width and height of logo are not equal
1223
+ // [1041] logo is too small. It must be greater or equal than 32x32
1224
+ // [1042] logo is too big. It must be less or equal than 512x512
1225
+ // [1043] No main found in the package.json
1226
+ // [1044] common.installedFrom field found in io-package.json. Must be removed.
1227
+ // [1045] Missing mandatory translation into ${missingLang.join()} of some "common.news" in io-package.json.
1228
+ // [1046] instanceObjects must be an Array in io-package.json
1229
+ // [1047] instanceObject type has an invalid type: ${instanceObject.type}
1230
+ // [1048] instanceObject common.type has an invalid type! Expected "string", received "${typeof instanceObject.common.type}"
1231
+ // [1049] instanceObject common.type has an invalid value: ${instanceObject.common.type}
1232
+ // [1050] No "common.connectionType" found in io-package.json
1233
+ // [1051] "common.connectionType" type has an invalid value "${context.ioPackageJson.common.connectionType}"
1234
+ // [1052] No "common.dataSource" found in io-package.json
1235
+ // [1053] "common.dataSource" type has an invalid value "${context.ioPackageJson.common.dataSource}"
1236
+ // [1054] Missing suggested translation into ${missingLang.join()} of some "common.news" in io-package.json.
1237
+ // [1055] Invalid "common.tier" value: ${context.ioPackageJson.common.tier} at io-package.json. Only 1, 2 or 3 are allowed!
1238
+ // [1056] js-controller ${currentJsControllerVersion} listed as dependency but ${recommendedJsControllerVersion} is recommended. Please consider updating dependency at io-package.json.
1239
+ // [1057] js-controller ${currentJsControllerVersion} listed as dependency but ${requiredJsControllerVersion} is required as minimum, ${recommendedJsControllerVersion} is recommended. Please update dependency at io-package.json.
1240
+ // [1058] "common.title" is deprecated in io-package.json. Please remove from io-package.json.
1241
+ // [1059] common.dependencies "js-controller" dependency should always allow future versions (>=x.x.x) - recommended: {"js-controller": ">=${recommendedJsControllerVersion}"}
1242
+ // [1060] "admin" is not allowed in common.dependencies
1243
+ // [1061] "js-controller" is not allowed in common.globalDependencies
1244
+ // [1062] js-controller dependency missing. js-controller ${requiredJsControllerVersion} is required as minimum, ${recommendedJsControllerVersion} is recommended. Please add to dependencies at io-package.json.
1245
+ // [1063] common.mode "${context.ioPackageJson.common.mode}" requires JavaScript file for "main" in package.json
1246
+ // [1064] onlyWWW should have common.mode "none" in io-package.json
1247
+ // [1065] "common.mode" not found in io-package.json
1248
+ // [1066] "common.mode: ${context.ioPackageJson.common.mode}" is unknown in io-package.json.
1249
+ // [1067] scheduled adapters must have "common.schedule" property in io-package.json
1250
+ // [1068] "common.keywords" should not contain "${forbiddenKeywords.join(', ')}" io-package.json0
1251
+ // [1069] "common.keywords" must be an array within io-package.json and contain some useful keywords
1252
+ // [1069] "common.keywords" must be an array within io-package.json and contain some useful keywords
1253
+ // [1069] "common.keywords" must be an array within io-package.json and contain some useful keywords
1254
+ // [1070] "common.licenseInformation.type" is invalid. Select valid type (e.g. free)
1255
+ // [1071] "common.licenseInformation.link" is required for non-free adapters
1256
+ // [1072] "common.localLink" in io-package.json is deprecated. Please define object "common.localLinks": { "_default": "..." }
1257
+ // [1073] Potential sensitive data "${missingProtected.join()}" not listed at "protectedNative" in io-package.json
1258
+ // [1073] Potential sensitive data "${suspiciousKeys.join()}" not listed at "protectedNative" in io-package.json
1259
+ // [1074] Potential sensitive data "${missingProtected.join()}" not listed at "encryptedNative" in io-package.json
1260
+ // [1074] Potential sensitive data "${suspiciousKeys.join()}" not listed at "encryptedNative" in io-package.json
1261
+ // [1075] Release "${version}" at "common.news" in io-package.json is malformed.
1262
+ // [1076] Own adapter is not allowed to be listed at "common.restartAdapters" in io-package.json
1263
+ // [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.
1264
+ // [1078] "common.materialize" is deprecated in io-package.json. For admin version >= 5 please use the property "common.adminUI"
1265
+ // [1079] "common.materializeTab" is deprecated in io-package.json. For admin version >= 5 please use the property "common.adminUI".
1266
+ // [1080] "common.noConfig" is deprecated in io-package.json. For admin version >= 5 please use "common.adminUI.config":"none".
1267
+ // [1081] "common.license" in io-package.json is deprecated. Please define object "common.licenseInformation"
1268
+ // [1082] Please remove "common.license" from io-package.json as "common.licenseInformation" is declared.
1269
+ // [1083] "common.licenseInformation.license" is missing
1270
+ // [1084] ${blacklistIOPackageJson[blacklist].msg}
1271
+ // [1084] ${blacklistIOPackageJson[blacklist].msg}
1272
+ // [1085] "common.dependencies" must be an array at io-package.json
1273
+ // [1086] "common.globalDependencies" must be an array at io-package.json
1274
+ // [1087] "common.materialize" replaced by property "common.adminUI.config" at io-package.json. Please remove.
1275
+ // [1088] "common.materializeTab" replaced by property "common.adminUI.tab" at io-package.json. Please remove.
1276
+ // [1089] common.dependencies "admin" dependency should always allow future versions (>=x.x.x) - recommended: {"admin": ">=${recommendedAdminVersion}".
1277
+ // [1090] admin dependency missing. admin ${requiredAdminVersion} is required as minimum, ${recommendedAdminVersion} is recommended. Please add to dependencies at io-package.json.
1278
+ // [1091] admin dependency (${adminDependency['admin']}) at io-package.json is not required. Feel free to remove.
1279
+ // [1092] extension adapters must list web adapter as dependency in io-package.json
1280
+ // [1093] Encrypted native "${encrypted}" not listed at "protectedNative" in io-package.json
1281
+ // [1094] Protected native "${protected}" not listed at "encryptedNative" in io-package.json
1282
+ // [1095] Protected or encrypted element "${protected}" not listed as "native" in io-package.json
1283
+ // [1096] "common.supportCustoms" requires "common.adminUI.custom" to be defined
1284
+ // [1097] External icon ${context.ioPackageJson.common.extIcon} cannot be parsed
1285
+ // [1098] "common.encryptedNative" must be an array at io-package.json
1286
+ // [1099] "common.protectedNative" must be an array at io-package.json
1287
+ // [1100] Empty dependency objects found in "common.dependencies" at io-package.json. Please remove empty objects.
1288
+ // [1101] Empty dependency objects found in "common.globalDependencies" at io-package.json. Please remove empty objects.
1289
+ // [1102] Consider adding 'vis-2' to "common.restartAdapters" as 'vis' is already listed in io-package.json
1290
+ // [1103] Encryption of array elements "${key}" is not yet available
1291
+ // [1104] allowInit is only used with scheduled adapters and should be removed
1292
+ // [1105] Schema validation: ${errorMsg}
1293
+ // [1107] Could not download io-package.json schema for validation
1294
+ // [1108] Schema validation failed: ${error.message}