@iobroker/repochecker 2.9.0 → 2.10.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.
package/README.md CHANGED
@@ -20,6 +20,15 @@ Branch (`master/main/dev`) is optional.
20
20
  -->
21
21
 
22
22
  ## Changelog
23
+ ### 2.10.0 (2024-08-19)
24
+ * (mcm1957) Suggestions ([Sxxx] have been added).
25
+
26
+ ### 2.9.1 (2024-08-12)
27
+ * (mcm1957) E162 - correct dependency check for js-controller. [#267].
28
+ * (mcm1957) E605 - copyright year range including whitespaces is now accepted. [#269].
29
+ * (mcm1957) E016 - missing vaiableexpansion has been added. [#263].
30
+ * (mcm1957) E114 - typo at error message has been fixed [#261].
31
+
23
32
  ### 2.9.0 (2024-07-29)
24
33
  * (mcm1957) Adapt text if sources-dist(-stable).json need a correction [#97].
25
34
  * (mcm1957) Missing "common.mode" error text corrected [#249].
package/doc/issues.json CHANGED
@@ -671,18 +671,12 @@
671
671
  "W515": {
672
672
  "title": "Why you decided to disable i18n support?"
673
673
  },
674
- "W519": {
675
- "title": "Consider adding plugin `@alcalzone/release-script-plugin-manual-review`."
676
- },
677
674
  "W520": {
678
675
  "title": "`gulpfile.js` found in repo but `gulp` not found at devDependencies at package.json. Check whether it can be removed."
679
676
  },
680
677
  "W521": {
681
678
  "title": "`gulp` found at devDependencies at package.json but no `gulpfile.js` found. Is this dependency really required?"
682
679
  },
683
- "W522": {
684
- "title": "Please consider migrating to admin 5 UI (jsonConfig)."
685
- },
686
680
  "W523": {
687
681
  "title": "`package-lock.json` not found in repo! Please remove from .gitignore!"
688
682
  },
package/index.js CHANGED
@@ -416,7 +416,7 @@ function checkPackageJson(context) {
416
416
 
417
417
  // check if license valid
418
418
  if (!licenses.includes(context.packageJson.license)) {
419
- context.errors.push('[E016] ${context.packageJson.license} found in package.json is no valid SPDX license. Please use one of listed here: https://spdx.org/licenses/');
419
+ context.errors.push(`[E016] ${context.packageJson.license} found in package.json is no valid SPDX license. Please use one of listed here: https://spdx.org/licenses/`);
420
420
  } else {
421
421
  context.checks.push('"license" is valid in package.json');
422
422
  }
@@ -1322,7 +1322,7 @@ function checkIOPackageJson(context) {
1322
1322
  !(context.ioPackageJson.common.adminUI && context.ioPackageJson.common.adminUI.config === 'html') &&
1323
1323
  !(context.ioPackageJson.common.adminUI && context.ioPackageJson.common.adminUI.config === 'none')
1324
1324
  ) {
1325
- context.errors.push('[E114] Admin support not specified. Please add "common.adminUI.config = json|materialize<|html|none"');
1325
+ context.errors.push('[E114] Admin support not specified. Please add "common.adminUI.config = json|materialize|html|none"');
1326
1326
  } else {
1327
1327
  context.checks.push('"common.materialize" or valid "common.adminUI.config:xxx" found in io-package.json');
1328
1328
  }
@@ -1566,7 +1566,7 @@ function checkIOPackageJson(context) {
1566
1566
  }
1567
1567
 
1568
1568
 
1569
- if ( currentJsControllerVersion && compareVersions.compare( requiredJsControllerVersion, currentJsControllerVersion, '>=' )) {
1569
+ if ( currentJsControllerVersion && compareVersions.compare( requiredJsControllerVersion, currentJsControllerVersion, '>' )) {
1570
1570
  context.errors.push(`[E162] js-controller ${currentJsControllerVersion} listed as dependency but ${requiredJsControllerVersion} is required as minimum, ${recommendedJsControllerVersion} is recommended. Please update dependency at io-package.json.`);
1571
1571
  } else if ( currentJsControllerVersion && compareVersions.compare( recommendedJsControllerVersion, currentJsControllerVersion, '>' )) {
1572
1572
  context.warnings.push(`[W162] js-controller ${currentJsControllerVersion} listed as dependency but ${recommendedJsControllerVersion} is recommended. Please consider updating dependency at io-package.json.`);
@@ -2237,7 +2237,7 @@ function checkCode(context) {
2237
2237
  (!context.ioPackageJson.common.adminUI ||
2238
2238
  (context.ioPackageJson.common.adminUI.config !== 'json' && context.ioPackageJson.common.adminUI.config !== 'none')
2239
2239
  )) {
2240
- context.warnings.push('[W522] Please consider migrating to admin 5 UI (jsonConfig).');
2240
+ context.warnings.push('[S522] Please consider migrating to admin 5 UI (jsonConfig).');
2241
2241
  }
2242
2242
 
2243
2243
  if (context.ioPackageJson.common.materialize || (context.ioPackageJson.common.adminUI && context.ioPackageJson.common.adminUI.config === 'materialize')) {
@@ -2392,7 +2392,7 @@ console.log(`plugins: ${plugins}`);
2392
2392
  }
2393
2393
  }
2394
2394
  if (!context.packageJson.devDependencies['@alcalzone/release-script-plugin-manual-review']) {
2395
- context.warnings.push('[W519] Consider adding plugin "@alcalzone/release-script-plugin-manual-review".');
2395
+ context.warnings.push('[S519] Consider adding plugin "@alcalzone/release-script-plugin-manual-review".');
2396
2396
  } else {
2397
2397
  if (!plugins.includes('manual-review')) {
2398
2398
  context.warnings.push('[W520] Plugin "manual-review" missing at .releaseconfig.json. Please add.');
@@ -2503,7 +2503,7 @@ function checkReadme(context) {
2503
2503
  const year = new Date().getFullYear();
2504
2504
  const commitYear = context.lastCommitYear || 0;
2505
2505
  let readmeYear = 0;
2506
- let m = text.match(/\d\d\d\d-(\d\d\d\d)/);
2506
+ let m = text.match(/\d\d\d\d\s*-\s*(\d\d\d\d)/);
2507
2507
  if (m) {
2508
2508
  readmeYear = Number(m[1]);
2509
2509
  }
@@ -2574,7 +2574,7 @@ function checkLicenseFile(context) {
2574
2574
  const year = new Date().getFullYear();
2575
2575
  const commitYear = context.lastCommitYear || 0;
2576
2576
  let licenseYear = 0;
2577
- let m = text.match(/\d\d\d\d-(\d\d\d\d)/);
2577
+ let m = text.match(/\d\d\d\d\s*-\s*(\d\d\d\d)/);
2578
2578
  if (m) {
2579
2579
  licenseYear = Number(m[1]);
2580
2580
  }
package/package.json CHANGED
@@ -1,18 +1,18 @@
1
1
  {
2
- "version": "2.9.0",
2
+ "version": "2.10.0",
3
3
  "name": "@iobroker/repochecker",
4
4
  "dependencies": {
5
5
  "axios": "^1.7.2",
6
- "compare-versions": "^6.1.0",
6
+ "compare-versions": "^6.1.1",
7
7
  "image-size": "^1.1.1",
8
- "unzipper": "^0.12.1",
8
+ "unzipper": "^0.12.3",
9
9
  "json5": "^2.2.3"
10
10
  },
11
11
  "publishConfig": {
12
12
  "access": "public"
13
13
  },
14
14
  "devDependencies": {
15
- "@alcalzone/release-script": "^3.7.0",
15
+ "@alcalzone/release-script": "^3.8.0",
16
16
  "eslint": "^8.57.0"
17
17
  },
18
18
  "files": [