@iobroker/repochecker 5.6.3 → 5.6.5

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
@@ -25,7 +25,7 @@ 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)
28
+ ### 5.6.5 (2026-03-27)
29
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
30
 
31
31
  ### 5.6.2 (2026-03-27)
package/lib/M5000_Code.js CHANGED
@@ -1165,6 +1165,7 @@ async function checkCode(context) {
1165
1165
  'build',
1166
1166
  'doc',
1167
1167
  'src-admin',
1168
+ 'src-widgets',
1168
1169
  'admin-src',
1169
1170
  'test',
1170
1171
  'node_modules',
@@ -1173,9 +1174,17 @@ async function checkCode(context) {
1173
1174
  '.dev-server',
1174
1175
  ]);
1175
1176
  // Exact file base names to exclude from dependency scanning
1176
- const excludedSourceFiles = new Set(['tasks.js', 'gulpfile.js']);
1177
+ const excludedSourceFiles = new Set([
1178
+ 'tasks.js',
1179
+ 'Gruntfile.js',
1180
+ 'gulpfile.js'
1181
+ ]);
1182
+
1177
1183
  // Exact relative file paths (without leading slash) to exclude from dependency scanning
1178
- const excludedSourceRelPaths = new Set(['lib/tools.js']);
1184
+ const excludedSourceRelPaths = new Set([
1185
+ 'lib/tools.js'
1186
+ ]);
1187
+
1179
1188
  const packageDependencies = context.packageJson.dependencies || {};
1180
1189
  const packageDevDependencies = context.packageJson.devDependencies || {};
1181
1190
 
@@ -1222,7 +1231,21 @@ async function checkCode(context) {
1222
1231
  common.debug(` Found import: "${importTarget}"`);
1223
1232
 
1224
1233
  // Skip relative paths (./xxx, ../xxx) and absolute paths (/xxx)
1225
- if (importTarget.startsWith('.') || importTarget.startsWith('/')) {
1234
+ // Skip dynamic generated strings (`${xxx}`) and debug vars
1235
+ if (importTarget.startsWith('.') ||
1236
+ importTarget.startsWith('/') ||
1237
+ importTarget.includes('~') || // '~debug~xx'
1238
+ importTarget.includes('$') || // `${myvar}/xxx`
1239
+ importTarget.includes('{') ||
1240
+ importTarget.includes('}')) {
1241
+ continue;
1242
+ }
1243
+
1244
+ // Skip obvious filenames
1245
+ if (importTarget.endsWith('.js') ||
1246
+ importTarget.endsWith('.mjs') ||
1247
+ importTarget.endsWith('.cjs') ||
1248
+ importTarget.endsWith('.ts')) {
1226
1249
  continue;
1227
1250
  }
1228
1251
 
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "5.6.3",
2
+ "version": "5.6.5",
3
3
  "name": "@iobroker/repochecker",
4
4
  "dependencies": {
5
5
  "ajv": "^8.18.0",