@iobroker/repochecker 5.22.10 → 5.22.12
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 +9 -0
- package/lib/M0000_PackageJson.js +2 -1
- package/lib/M4000_Repository.js +11 -1
- package/lib/M5000_Code.js +1 -1
- package/lib/M5500__JsonConfig.js +6 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -56,6 +56,15 @@ 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.12 (2026-10-12)
|
|
60
|
+
|
|
61
|
+
* (mcm1957) E5507 (missing size attributes in jsonConfig) downgraded to W5507 for existing adapters; stays an error only for new adapters
|
|
62
|
+
|
|
63
|
+
### 5.22.11 (2026-10-11)
|
|
64
|
+
|
|
65
|
+
* (mcm1957) False positive W0084/W5048 fixed: .prettierignore is valid alongside prettier.config.mjs (see: #1185)
|
|
66
|
+
* (mcm1957) False positive E4051 fixed: standard GPL license header line "Copyright (C) 2007 Free Software Foundation, Inc." is now excluded from email validation
|
|
67
|
+
|
|
59
68
|
### 5.22.10 (2026-10-04)
|
|
60
69
|
|
|
61
70
|
* (mcm1957) src-devices directory is now excluded from source code checks like src-admin
|
package/lib/M0000_PackageJson.js
CHANGED
|
@@ -1768,7 +1768,8 @@ async function checkEslintFileChecks(context) {
|
|
|
1768
1768
|
const eslintVersion = eslintVersionRaw ? semver.coerce(eslintVersionRaw) : null;
|
|
1769
1769
|
const hasEslintV9OrHigher = !!(eslintVersion && semver.gte(eslintVersion, '9.0.0'));
|
|
1770
1770
|
const obsoleteEslintFiles = ['/.eslintignore', '/.eslintrc.json'];
|
|
1771
|
-
|
|
1771
|
+
// .prettierignore is still valid with prettier.config.mjs (it controls which files prettier skips)
|
|
1772
|
+
const obsoletePrettierFiles = ['/.prettierrc.js'];
|
|
1772
1773
|
|
|
1773
1774
|
if (hasEslintConfig) {
|
|
1774
1775
|
if (!fileExistsInList(context, '/eslint.config.mjs')) {
|
package/lib/M4000_Repository.js
CHANGED
|
@@ -406,6 +406,13 @@ const DISPOSABLE_EMAIL_DOMAINS = [
|
|
|
406
406
|
// contain the word "copyright" (e.g. the MIT "above copyright notice" sentence).
|
|
407
407
|
const COPYRIGHT_NOTICE_REGEX = /copyright\s*(?:\(c\)|©)?\s*\d{4}(?:\s*-\s*\d{4})?/i;
|
|
408
408
|
|
|
409
|
+
// Copyright lines containing any of these substrings are excluded from email validation.
|
|
410
|
+
// They originate from well-known third-party license templates (e.g. the GPL header)
|
|
411
|
+
// and would otherwise produce false-positive E4051/S4051 warnings.
|
|
412
|
+
const COPYRIGHT_LINE_EXCLUSIONS = [
|
|
413
|
+
'Free Software Foundation, Inc.',
|
|
414
|
+
];
|
|
415
|
+
|
|
409
416
|
function extractEmails(text) {
|
|
410
417
|
if (!text || typeof text !== 'string') {
|
|
411
418
|
return [];
|
|
@@ -528,7 +535,10 @@ async function checkEmailAddresses(context) {
|
|
|
528
535
|
// where <year> is a single year (nnnn) or a range (nnnn-mmmm / nnnn - mmmm).
|
|
529
536
|
// Requiring the year specification avoids matching license boilerplate such
|
|
530
537
|
// as "The above copyright notice and this permission notice shall be ...".
|
|
531
|
-
const copyrightLines = (content || '')
|
|
538
|
+
const copyrightLines = (content || '')
|
|
539
|
+
.split('\n')
|
|
540
|
+
.filter(line => COPYRIGHT_NOTICE_REGEX.test(line))
|
|
541
|
+
.filter(line => !COPYRIGHT_LINE_EXCLUSIONS.some(excl => line.includes(excl)));
|
|
532
542
|
const invalid = [];
|
|
533
543
|
for (const line of copyrightLines) {
|
|
534
544
|
const email = extractEmails(line)[0];
|
package/lib/M5000_Code.js
CHANGED
|
@@ -1311,10 +1311,10 @@ async function checkCode(context) {
|
|
|
1311
1311
|
|
|
1312
1312
|
// W5048: Check for obsolete eslint/prettier config files when @iobroker/eslint-config is used
|
|
1313
1313
|
if (context.packageJson.devDependencies && context.packageJson.devDependencies['@iobroker/eslint-config']) {
|
|
1314
|
+
// .prettierignore is still valid (it controls which files prettier skips), so not listed here
|
|
1314
1315
|
const obsoleteFiles = [
|
|
1315
1316
|
'/.eslintignore',
|
|
1316
1317
|
'/.eslintrc.json',
|
|
1317
|
-
'/.prettierignore',
|
|
1318
1318
|
'/.prettierrc.js',
|
|
1319
1319
|
'/.prettierrc.json',
|
|
1320
1320
|
];
|
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