@iobroker/repochecker 5.22.9 → 5.22.11

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,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.11 (2026-10-11)
60
+
61
+ * (mcm1957) False positive W0084/W5048 fixed: .prettierignore is valid alongside prettier.config.mjs (see: #1185)
62
+ * (mcm1957) False positive E4051 fixed: standard GPL license header line "Copyright (C) 2007 Free Software Foundation, Inc." is now excluded from email validation
63
+
64
+ ### 5.22.10 (2026-10-04)
65
+
66
+ * (mcm1957) src-devices directory is now excluded from source code checks like src-admin
67
+
59
68
  ### 5.22.9 (2026-10-02)
60
69
 
61
70
  * (mcm1957) drop node 20
@@ -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
- const obsoletePrettierFiles = ['/.prettierignore', '/.prettierrc.js'];
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')) {
@@ -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 || '').split('\n').filter(line => COPYRIGHT_NOTICE_REGEX.test(line));
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
  ];
@@ -1765,6 +1765,7 @@ async function checkCode(context) {
1765
1765
  '/test',
1766
1766
  '/tools',
1767
1767
  '/src-admin',
1768
+ '/src-devices', // lgtv
1768
1769
  '/src-editor', // java-script adapter
1769
1770
  '/src-rules',
1770
1771
  '/src-tab',
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "5.22.9",
2
+ "version": "5.22.11",
3
3
  "name": "@iobroker/repochecker",
4
4
  "dependencies": {
5
5
  "ajv": "^8.20.0",