@iobroker/repochecker 2.2.2 → 2.2.3

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 CHANGED
@@ -20,6 +20,13 @@ Branch (`master/main/dev`) is optional.
20
20
  -->
21
21
 
22
22
  ## Changelog
23
+
24
+ <!--
25
+ * (mcm1957) Added deprecate warnings for "main', 'materialize", "materializeTab" and "noConfig"
26
+ -->
27
+ ### 2.2.3 (2024-03-29)
28
+ * (mcm1957) Checking of license has been improved
29
+
23
30
  ### 2.2.2 (2024-03-29)
24
31
  * (mcm1957) Checking of adapter-core has been fixed
25
32
  * (mcm1957) Load all potential interesting files, fixes [#149]
package/doc/issues.json CHANGED
@@ -302,6 +302,12 @@
302
302
  "E176": {
303
303
  "title": "Own adapter is not allowed to be listed at `common.restartAdapters` in io-pacakge.json"
304
304
  },
305
+ "E182": {
306
+ "title": "Please remove `common.license` from io-package.json as `common.licenseInformation` is declared."
307
+ },
308
+ "E183": {
309
+ "title": "`common.licenseInformation.license` is missing"
310
+ },
305
311
  "E200": {
306
312
  "title": "Not found on npm. Please publish"
307
313
  },
@@ -512,6 +518,9 @@
512
518
  "W180": {
513
519
  "title": "`common.noConfig` is deprecated in io-package.json. For admin version >= 5 please use `common.adminUI.config`:`none`."
514
520
  },
521
+ "W181": {
522
+ "title": "`common.license` in io-package.json is deprecated. Please define object `common.licenseInformation`"
523
+ },
515
524
  "W302": {
516
525
  "title": "Use github actions instead of travis-ci"
517
526
  },
package/index.js CHANGED
@@ -896,7 +896,7 @@ function checkIOPackageJson(context) {
896
896
  }
897
897
 
898
898
  if (context.ioPackageJson.common.license) {
899
- context.warnings.push('[W114] "common.license" in io-package.json is deprecated. Please define object "common.licenseInformation"');
899
+ context.warnings.push('[W181] "common.license" in io-package.json is deprecated. Please define object "common.licenseInformation"');
900
900
  }
901
901
 
902
902
  if (!context.ioPackageJson.common.licenseInformation) {
@@ -906,9 +906,15 @@ function checkIOPackageJson(context) {
906
906
  } else {
907
907
  context.checks.push('"common.licenseInformation" found in io-package.json');
908
908
 
909
- // check if license valid
910
- if (!licenses.includes(context.ioPackageJson.common?.licenseInformation?.license)) {
911
- context.errors.push('[E116] No SPDX license found. Please use one of listed here: https://spdx.org/licenses/');
909
+ if (context.ioPackageJson.common.license) {
910
+ context.errors.push('[E182] Please remove "common.license" from io-package.json as "common.licenseInformation" is declared.');
911
+ }
912
+
913
+ // check if license valid
914
+ if (!context.ioPackageJson.common.licenseInformation.license) {
915
+ context.errors.push('[E183] "common.licenseInformation.license" is missing');
916
+ } else if (!licenses.includes(context.ioPackageJson.common?.licenseInformation?.license)) {
917
+ context.errors.push('[E116] No SPDX license found at "common.licenseInformation". Please use one of listed here: https://spdx.org/licenses/');
912
918
  } else {
913
919
  context.checks.push('"common.licenseInformation" is valid in io-package.json');
914
920
  }
@@ -1289,7 +1295,7 @@ function checkIOPackageJson(context) {
1289
1295
  }
1290
1296
  // do not put any code behind this line
1291
1297
 
1292
- // max number is E180
1298
+ // max number is E183
1293
1299
  }
1294
1300
  });
1295
1301
  });
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "2.2.2",
2
+ "version": "2.2.3",
3
3
  "name": "@iobroker/repochecker",
4
4
  "dependencies": {
5
5
  "axios": "^1.6.8",