@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 +8 -0
- package/lib/M5000_Code.js +16 -0
- package/lib/M5500__JsonConfig.js +6 -4
- package/lib/M9000_GitNpmIgnore.js +2 -0
- package/package.json +1 -1
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;
|
package/lib/M5500__JsonConfig.js
CHANGED
|
@@ -220,10 +220,12 @@ function chk_responsive(context, path, jsonConfig, component, opts) {
|
|
|
220
220
|
}
|
|
221
221
|
}
|
|
222
222
|
if (missing.length) {
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
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
|
|
package/package.json
CHANGED