@iobroker/repochecker 5.22.11 → 5.22.13

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
@@ -56,6 +56,14 @@ GITHUB_TOKEN=ghp_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
56
56
  Placeholder for the next version (at the beginning of the line):
57
57
  ### **WORK IN PROGRESS**
58
58
  -->
59
+ ### 5.22.13 (2026-10-12)
60
+ * (mcm1957) src-chart and src-preview added to source directories excluded from E9507 (missing i18n files) check
61
+ * (mcm1957) tasks*.js/mjs/cjs/ts files at repo root that import @iobroker/build-tools are now treated like tasks.js and excluded from code checks
62
+
63
+ ### 5.22.12 (2026-10-12)
64
+
65
+ * (mcm1957) E5507 (missing size attributes in jsonConfig) downgraded to W5507 for existing adapters; stays an error only for new adapters
66
+
59
67
  ### 5.22.11 (2026-10-11)
60
68
 
61
69
  * (mcm1957) False positive W0084/W5048 fixed: .prettierignore is valid alongside prettier.config.mjs (see: #1185)
package/lib/M5000_Code.js CHANGED
@@ -1804,6 +1804,22 @@ async function checkCode(context) {
1804
1804
  // lib/tools.* is normally excluded, but if another source file imports (requires) it,
1805
1805
  // it must be scanned like any other source file.
1806
1806
  const excludedSourceRelPaths = new Set();
1807
+
1808
+ // tasks*.js/mjs/cjs at repo root that use @iobroker/build-tools are build scripts
1809
+ // (e.g. tasks-admin.js, tasks-build.mjs) — treat them like tasks.js and skip scanning.
1810
+ for (const fileName of Object.keys(context)) {
1811
+ if (!fileName.startsWith('/') || typeof context[fileName] !== 'string') {
1812
+ continue;
1813
+ }
1814
+ const baseName = fileName.slice(1); // strip leading slash
1815
+ // Only match root-level files (no directory separator)
1816
+ if (baseName.includes('/')) {
1817
+ continue;
1818
+ }
1819
+ if (/^tasks.+\.(js|mjs|cjs|ts)$/.test(baseName) && context[fileName].includes('@iobroker/build-tools')) {
1820
+ excludedSourceRelPaths.add(baseName);
1821
+ }
1822
+ }
1807
1823
  const toolsRelPaths = ['lib/tools.js', 'lib/tools.mjs', 'lib/tools.cjs'];
1808
1824
  for (const toolsRelPath of toolsRelPaths) {
1809
1825
  let isImported = false;
@@ -220,10 +220,12 @@ function chk_responsive(context, path, jsonConfig, component, opts) {
220
220
  }
221
221
  }
222
222
  if (missing.length) {
223
- handleResponsiveError(
224
- context,
225
- `[E5507] missing size attributes [${missing.join(',')}] for ${component} at ${path}`,
226
- );
223
+ const msg = `[${context.cfg.isNewAdapter ? 'E' : 'W'}5507] missing size attributes [${missing.join(',')}] for ${component} at ${path}`;
224
+ if (context.cfg.isNewAdapter) {
225
+ handleResponsiveError(context, msg);
226
+ } else {
227
+ handleResponsiveWarning(context, msg);
228
+ }
227
229
  }
228
230
  }
229
231
 
@@ -31,6 +31,8 @@ const SRC_DIRS_TO_IGNORE = [
31
31
  'src-tab',
32
32
  'src-vis',
33
33
  'src-widgets',
34
+ 'src-chart',
35
+ 'src-preview',
34
36
  'admin-src',
35
37
  'rules-src',
36
38
  'admin/src',
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "5.22.11",
2
+ "version": "5.22.13",
3
3
  "name": "@iobroker/repochecker",
4
4
  "dependencies": {
5
5
  "ajv": "^8.20.0",