@iobroker/repochecker 5.20.3 → 5.20.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
@@ -31,6 +31,14 @@ Example:
31
31
  Placeholder for the next version (at the beginning of the line):
32
32
  ### **WORK IN PROGRESS**
33
33
  -->
34
+ ### 5.20.5 (2026-08-08)
35
+
36
+ * (mcm1957) Extended `[E9507]` i18n directory check to also exclude `src-tab` and `src-vis` source directories from packaging checks.
37
+
38
+ ### 5.20.4 (2026-08-08)
39
+
40
+ * (mcm1957) Fixed `[E6012]`/`[E6013]` not being raised when direct install commands (e.g. `npm install` or `cd /opt/iobroker`) are placed inside fenced code blocks in README.md.
41
+
34
42
  ### 5.20.3 (2026-08-07)
35
43
 
36
44
  * (mcm1957) Fixed false positive `[S9508]` (and related packaging/i18n checks): negation entries (e.g. `!CHANGELOG_OLD.md`) in package.json `"files"` are now handled as exclusions instead of being wrongly matched. Related to #1097 and #1072.
@@ -18,7 +18,9 @@ const common = require('./common.js');
18
18
 
19
19
  // node.js versions required and recommended
20
20
  // Note: node version specify rules for engines clause and do NOT reflect the recommended node version for users
21
- const specialAdapters = ['admin', 'backitup', 'javascript', 'js-controller'];
21
+ const specialAdapters = [
22
+ /*'admin', 'backitup', 'javascript', 'js-controller'*/
23
+ ]; // no special handling required for now
22
24
  let recommendedNodeVersion = '22'; // This is the minimum node version that should be required at engines clause
23
25
  let requiredNodeVersion = '20'; // This is the minimum node version that must be required at engines clause
24
26
  const minimumNodeVersion = '18'; // This is the minimum node version that must be required by all adapters at engines clause
package/lib/M5000_Code.js CHANGED
@@ -1832,6 +1832,7 @@ async function checkCode(context) {
1832
1832
  '/src-admin',
1833
1833
  '/src-editor', // java-script adapter
1834
1834
  '/src-rules',
1835
+ '/src-tab',
1835
1836
  '/src-vis',
1836
1837
  '/src-widgets',
1837
1838
  '/admin-src',
@@ -240,18 +240,21 @@ function stripMarkdownForLanguageDetection(text) {
240
240
 
241
241
  /**
242
242
  * Strip markdown inline formatting for install-instruction text scanning.
243
- * Removes fenced/inline code blocks, expands links to "text URL" so that URL
244
- * checks still work, and removes bold/italic emphasis markers so that formatted
245
- * text like `install from **[GitHub](url)**` is still detected.
243
+ * Keeps the content of fenced/inline code (install commands like `npm install`
244
+ * or `cd /opt/iobroker` are normally placed inside ``` fences and must still be
245
+ * detected), expands links to "text URL" so that URL checks still work, and
246
+ * removes bold/italic emphasis markers so that formatted text like
247
+ * `install from **[GitHub](url)**` is still detected.
246
248
  *
247
249
  * @param {string} text - Raw markdown text
248
250
  * @returns {string} Text with inline formatting stripped
249
251
  */
250
252
  function stripMarkdownInlineFormatting(text) {
251
- // Remove fenced code blocks (``` ... ```)
252
- text = text.replace(/```[\s\S]*?```/g, '');
253
- // Remove inline code (`...`)
254
- text = text.replace(/`[^`\n]*`/g, '');
253
+ // Remove fenced code block delimiter lines (``` and ```lang) but KEEP the
254
+ // enclosed content so shell install commands remain scannable.
255
+ text = text.replace(/^[ \t]*```[^\n]*$/gm, '');
256
+ // Remove inline code backticks but keep the content
257
+ text = text.replace(/`/g, '');
255
258
  // Expand links [text](url) -> "text url" (preserve both visible text and URL for checks)
256
259
  text = text.replace(/\[([^\]]*)\]\(([^)]*)\)/g, '$1 $2');
257
260
  // Remove bold+italic (***) and bold (**) markers
@@ -25,8 +25,10 @@ const { minimatch } = require('minimatch');
25
25
  const SRC_DIRS_TO_IGNORE = [
26
26
  'src',
27
27
  'src-admin',
28
- 'src-editor',
28
+ 'src-editor', // java-script adapter
29
29
  'src-rules',
30
+ 'src-tab',
31
+ 'src-vis',
30
32
  'src-widgets',
31
33
  'admin-src',
32
34
  'rules-src',
@@ -32,6 +32,10 @@ const filterByAdapter = {
32
32
  // eslint-disable-next-line prettier/prettier
33
33
  backitup: [
34
34
  '[E5050] process.exit() used in * (lib/restore.js)*',
35
+ '[E5050] process.exit() used in * (src/lib/restore.ts)*',
36
+ '[S5004] Plain setInterval() found in source files (src/lib/restore/mysql.ts*',
37
+ '[W8905] Repository contains package.json files in non-root directories *',
38
+ '[W1144] Untranslated "common.news" entries detected (identical to English text): de(4.0.1); pl(4.0.1).', // reduce disussions ...
35
39
  ],
36
40
  'schlueter-thermostat': [
37
41
  '[W1073] Potential sensitive data "apiKey" not listed at "protectedNative" in io-package.json',
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "5.20.3",
2
+ "version": "5.20.5",
3
3
  "name": "@iobroker/repochecker",
4
4
  "dependencies": {
5
5
  "ajv": "^8.20.0",
@@ -15,7 +15,7 @@
15
15
  "@alcalzone/release-script": "^5.2.1",
16
16
  "@iobroker/eslint-config": "^2.3.4",
17
17
  "@tsconfig/node20": "^20.1.9",
18
- "@types/node": "^22.19.17",
18
+ "@types/node": "^26.1.2",
19
19
  "@types/semver": "^7.7.1"
20
20
  },
21
21
  "repository": {