@iobroker/repochecker 5.6.2 → 5.6.4
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 +29 -3
- 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.6.4 (2026-03-27)
|
|
29
|
+
- (@copilot) Exclude `gulpfile.js` and `lib/tools.js` from W5042/S5043 dependency scanning; added easy-to-extend `excludedSourceFiles` and `excludedSourceRelPaths` Sets for future exclusions.
|
|
30
|
+
|
|
28
31
|
### 5.6.2 (2026-03-27)
|
|
29
32
|
- (@copilot) Suppress unwanted npm E404 error output when checking adapters that are not published on npm.
|
|
30
33
|
- (@copilot) Added E2006 error when an npm package has no published versions available, instead of silently skipping version checks.
|
package/lib/M5000_Code.js
CHANGED
|
@@ -1172,6 +1172,18 @@ async function checkCode(context) {
|
|
|
1172
1172
|
'.vscode',
|
|
1173
1173
|
'.dev-server',
|
|
1174
1174
|
]);
|
|
1175
|
+
// Exact file base names to exclude from dependency scanning
|
|
1176
|
+
const excludedSourceFiles = new Set([
|
|
1177
|
+
'tasks.js',
|
|
1178
|
+
'Gruntfile.js',
|
|
1179
|
+
'gulpfile.js'
|
|
1180
|
+
]);
|
|
1181
|
+
|
|
1182
|
+
// Exact relative file paths (without leading slash) to exclude from dependency scanning
|
|
1183
|
+
const excludedSourceRelPaths = new Set([
|
|
1184
|
+
'lib/tools.js'
|
|
1185
|
+
]);
|
|
1186
|
+
|
|
1175
1187
|
const packageDependencies = context.packageJson.dependencies || {};
|
|
1176
1188
|
const packageDevDependencies = context.packageJson.devDependencies || {};
|
|
1177
1189
|
|
|
@@ -1194,9 +1206,19 @@ async function checkCode(context) {
|
|
|
1194
1206
|
continue;
|
|
1195
1207
|
}
|
|
1196
1208
|
|
|
1197
|
-
// Skip *.test.* and *.config.* files
|
|
1209
|
+
// Skip excluded file base names and *.test.* and *.config.* files
|
|
1198
1210
|
const fileBaseName = path.basename(filePath);
|
|
1199
|
-
if (
|
|
1211
|
+
if (
|
|
1212
|
+
excludedSourceFiles.has(fileBaseName) ||
|
|
1213
|
+
fileBaseName.includes('.test.') ||
|
|
1214
|
+
fileBaseName.includes('.config.')
|
|
1215
|
+
) {
|
|
1216
|
+
continue;
|
|
1217
|
+
}
|
|
1218
|
+
|
|
1219
|
+
// Skip excluded relative paths
|
|
1220
|
+
const relPath = filePath.slice(1); // Remove leading slash
|
|
1221
|
+
if (excludedSourceRelPaths.has(relPath)) {
|
|
1200
1222
|
continue;
|
|
1201
1223
|
}
|
|
1202
1224
|
|
|
@@ -1208,7 +1230,11 @@ async function checkCode(context) {
|
|
|
1208
1230
|
common.debug(` Found import: "${importTarget}"`);
|
|
1209
1231
|
|
|
1210
1232
|
// Skip relative paths (./xxx, ../xxx) and absolute paths (/xxx)
|
|
1211
|
-
if (importTarget.startsWith('.') ||
|
|
1233
|
+
if (importTarget.startsWith('.') ||
|
|
1234
|
+
importTarget.startsWith('/') ||
|
|
1235
|
+
importTarget.includes('$') ||
|
|
1236
|
+
importTarget.includes('{') ||
|
|
1237
|
+
importTarget.includes('}')) {
|
|
1212
1238
|
continue;
|
|
1213
1239
|
}
|
|
1214
1240
|
|
package/package.json
CHANGED