@iobroker/repochecker 5.7.0 → 5.7.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 +3 -0
- package/lib/M5000_Code.js +10 -12
- package/lib/M5500__JsonConfig.js +7 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -25,6 +25,9 @@ Example:
|
|
|
25
25
|
Placeholder for the next version (at the beginning of the line):
|
|
26
26
|
### **WORK IN PROGRESS**
|
|
27
27
|
-->
|
|
28
|
+
### 5.7.1 (2026-04-07)
|
|
29
|
+
- (mcm1957) Improve jsonConfig schema validation messages.
|
|
30
|
+
|
|
28
31
|
### 5.7.0 (2026-04-06)
|
|
29
32
|
- (@copilot) [S8913] automerge suggestion is no longer shown when dependabot is not configured ([S8901]).
|
|
30
33
|
- (@copilot) Language detection: `GERMAN_WORDS` and `ENGLISH_WORDS` arrays sorted alphabetically; chapters titled "Haftungsausschluss" in README.md are now ignored when checking for German text.
|
package/lib/M5000_Code.js
CHANGED
|
@@ -1230,16 +1230,10 @@ async function checkCode(context) {
|
|
|
1230
1230
|
'.dev-server',
|
|
1231
1231
|
]);
|
|
1232
1232
|
// Exact file base names to exclude from dependency scanning
|
|
1233
|
-
const excludedSourceFiles = new Set([
|
|
1234
|
-
'tasks.js',
|
|
1235
|
-
'Gruntfile.js',
|
|
1236
|
-
'gulpfile.js'
|
|
1237
|
-
]);
|
|
1233
|
+
const excludedSourceFiles = new Set(['tasks.js', 'Gruntfile.js', 'gulpfile.js']);
|
|
1238
1234
|
|
|
1239
1235
|
// Exact relative file paths (without leading slash) to exclude from dependency scanning
|
|
1240
|
-
const excludedSourceRelPaths = new Set([
|
|
1241
|
-
'lib/tools.js'
|
|
1242
|
-
]);
|
|
1236
|
+
const excludedSourceRelPaths = new Set(['lib/tools.js']);
|
|
1243
1237
|
|
|
1244
1238
|
const packageDependencies = context.packageJson.dependencies || {};
|
|
1245
1239
|
const packageDevDependencies = context.packageJson.devDependencies || {};
|
|
@@ -1288,20 +1282,24 @@ async function checkCode(context) {
|
|
|
1288
1282
|
|
|
1289
1283
|
// Skip relative paths (./xxx, ../xxx) and absolute paths (/xxx)
|
|
1290
1284
|
// Skip dynamic generated strings (`${xxx}`) and debug vars
|
|
1291
|
-
if (
|
|
1285
|
+
if (
|
|
1286
|
+
importTarget.startsWith('.') ||
|
|
1292
1287
|
importTarget.startsWith('/') ||
|
|
1293
1288
|
importTarget.includes('~') || // '~debug~xx'
|
|
1294
1289
|
importTarget.includes('$') || // `${myvar}/xxx`
|
|
1295
1290
|
importTarget.includes('{') ||
|
|
1296
|
-
importTarget.includes('}')
|
|
1291
|
+
importTarget.includes('}')
|
|
1292
|
+
) {
|
|
1297
1293
|
continue;
|
|
1298
1294
|
}
|
|
1299
1295
|
|
|
1300
1296
|
// Skip obvious filenames
|
|
1301
|
-
if (
|
|
1297
|
+
if (
|
|
1298
|
+
importTarget.endsWith('.js') ||
|
|
1302
1299
|
importTarget.endsWith('.mjs') ||
|
|
1303
1300
|
importTarget.endsWith('.cjs') ||
|
|
1304
|
-
importTarget.endsWith('.ts')
|
|
1301
|
+
importTarget.endsWith('.ts')
|
|
1302
|
+
) {
|
|
1305
1303
|
continue;
|
|
1306
1304
|
}
|
|
1307
1305
|
|
package/lib/M5500__JsonConfig.js
CHANGED
|
@@ -705,7 +705,10 @@ async function validateJsonConfigSchema(context, filePath, jsonConfigData) {
|
|
|
705
705
|
|
|
706
706
|
// Create a concise, developer-friendly error message
|
|
707
707
|
let errorMsg;
|
|
708
|
-
if (error.keyword === '
|
|
708
|
+
if (error.keyword === 'if') {
|
|
709
|
+
// ignore this error block
|
|
710
|
+
errorMsg = '';
|
|
711
|
+
} else if (error.keyword === 'required') {
|
|
709
712
|
errorMsg = `Missing required property "${error.params.missingProperty}" in ${path || filePath}`;
|
|
710
713
|
} else if (error.keyword === 'additionalProperties') {
|
|
711
714
|
errorMsg = `Unknown property "${error.params.additionalProperty}" in ${path}`;
|
|
@@ -717,7 +720,9 @@ async function validateJsonConfigSchema(context, filePath, jsonConfigData) {
|
|
|
717
720
|
errorMsg = `Property "${path}" ${message}`;
|
|
718
721
|
}
|
|
719
722
|
|
|
720
|
-
|
|
723
|
+
if (errorMsg !== '') {
|
|
724
|
+
context.warnings.push(`[W5512] ${filePath} schema validation error: ${errorMsg}`);
|
|
725
|
+
}
|
|
721
726
|
}
|
|
722
727
|
} else {
|
|
723
728
|
context.warnings.push(`[W5512] ${filePath} does not validate against schema`);
|
package/package.json
CHANGED