@iobroker/repochecker 5.6.2 → 5.6.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 +3 -0
- package/lib/M5000_Code.js +16 -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.6.3 (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,10 @@ 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(['tasks.js', 'gulpfile.js']);
|
|
1177
|
+
// Exact relative file paths (without leading slash) to exclude from dependency scanning
|
|
1178
|
+
const excludedSourceRelPaths = new Set(['lib/tools.js']);
|
|
1175
1179
|
const packageDependencies = context.packageJson.dependencies || {};
|
|
1176
1180
|
const packageDevDependencies = context.packageJson.devDependencies || {};
|
|
1177
1181
|
|
|
@@ -1194,9 +1198,19 @@ async function checkCode(context) {
|
|
|
1194
1198
|
continue;
|
|
1195
1199
|
}
|
|
1196
1200
|
|
|
1197
|
-
// Skip *.test.* and *.config.* files
|
|
1201
|
+
// Skip excluded file base names and *.test.* and *.config.* files
|
|
1198
1202
|
const fileBaseName = path.basename(filePath);
|
|
1199
|
-
if (
|
|
1203
|
+
if (
|
|
1204
|
+
excludedSourceFiles.has(fileBaseName) ||
|
|
1205
|
+
fileBaseName.includes('.test.') ||
|
|
1206
|
+
fileBaseName.includes('.config.')
|
|
1207
|
+
) {
|
|
1208
|
+
continue;
|
|
1209
|
+
}
|
|
1210
|
+
|
|
1211
|
+
// Skip excluded relative paths
|
|
1212
|
+
const relPath = filePath.slice(1); // Remove leading slash
|
|
1213
|
+
if (excludedSourceRelPaths.has(relPath)) {
|
|
1200
1214
|
continue;
|
|
1201
1215
|
}
|
|
1202
1216
|
|
package/package.json
CHANGED