@iobroker/repochecker 5.22.4 → 5.22.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
@@ -56,6 +56,10 @@ 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.5 (2026-09-22)
60
+
61
+ * (mcm1957) W5612/E5612 no longer report strings that never need a translation (e.g. "iobroker", "AABBCCDDEEFF"); matched case-insensitively
62
+
59
63
  ### 5.22.4 (2026-09-13)
60
64
 
61
65
  * (mcm1957) object structure check now reports states with role 'button' that do not have read:false and write:true
@@ -33,6 +33,16 @@ const TRANSLATABLE_ATTRS = [
33
33
  'validatorErrorText',
34
34
  ];
35
35
  const MAX_W5612_WARNINGS = 10;
36
+
37
+ // Strings that do not need a translation at all and therefore must not raise
38
+ // W5612/E5612. Compared case-insensitively against the attribute value.
39
+ const W5612_TRANSLATION_EXCLUSIONS = [
40
+ 'aabbccddeeff',
41
+ 'iobroker',
42
+ 'xxxxxxxxxxxxxxxxxxxxxxxx.yyyyyy.zzzzzzzzzzzzzzzzzzzzzzzzzzz',
43
+ 'example@gmail.com',
44
+ 'url',
45
+ ];
36
46
  const MAX_W5606_EXAMPLES = 2;
37
47
  const MIN_WORDS_FOR_W5606 = 5;
38
48
  const MAX_56XX_ISSUES_PER_CODE = 10;
@@ -596,6 +606,10 @@ function checkJsonConfigTranslations(context, configFile, jsonConfig, i18nDir, w
596
606
  }
597
607
  // i18n enabled: check that the string is a valid key in the English translations
598
608
  if (!Object.prototype.hasOwnProperty.call(enTranslations, value)) {
609
+ if (W5612_TRANSLATION_EXCLUSIONS.includes(value.toLowerCase())) {
610
+ // Value is on the list of strings that never need a translation
611
+ continue;
612
+ }
599
613
  if (value.match(/[a-zA-Z]/) && value.length >= 3) {
600
614
  // do not force translations of labels containing no characters
601
615
  if (w5612State.count < MAX_W5612_WARNINGS) {
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "5.22.4",
2
+ "version": "5.22.5",
3
3
  "name": "@iobroker/repochecker",
4
4
  "dependencies": {
5
5
  "ajv": "^8.20.0",