@iobroker/repochecker 5.11.1 → 5.12.0

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
@@ -25,27 +25,58 @@ Example:
25
25
  Placeholder for the next version (at the beginning of the line):
26
26
  ### **WORK IN PROGRESS**
27
27
  -->
28
+ ### 5.12.0 (2026-05-20)
29
+
30
+ - (@copilot) Added `[S6022]`: suggest adding a link to `CHANGELOG_OLD.md` in `README.md` when the file exists but no reference to it is found in the readme.
31
+ - (@copilot) Extended `@types/node` version checks (`W0066`, `S0067`, `E0068`) to cover all dependency types (`dependencies`, `devDependencies`, `optionalDependencies`), not just `devDependencies`. Defaults to Node.js 20 when no `engines` clause is present. Fixed `context.error.push` typo bug and `0;` no-op in `S0065` check. Related to #855.
32
+ - (@copilot) Added workflow run tagging checks in `M3000_Testing.js`: validates latest `test-and-release.yml` run status, verifies GitHub tags for current/package and npm (`latest` and newest) releases, and checks tag-triggered workflow run outcomes with clickable run links.
33
+ - (@copilot) Extended testing workflow checks to use configurable required action versions (`ioBroker/testing-action-check`, `ioBroker/testing-action-adapter`, `ioBroker/testing-action-deploy`) and warn when lower action versions are used.
34
+ - (@copilot) Split non-matrix node.js minimum/recommended thresholds into dedicated values for `check-and-lint` and `deploy` workflow jobs.
35
+ - (@copilot) Changed deploy trusted-publishing permission check from warning `W3018` to suggestion `S3018`.
36
+ - (@copilot) Added node.js version checks for `check-and-lint` (E3020, S3021) and `deploy` (E3022, S3023) jobs in `test-and-release.yml`, raising an error if below minimum and a suggestion if below recommended version. Minimum/recommended values are adjusted upward if the adapter's `engines:node` clause requires a higher version.
37
+ - (@copilot) Added checks for `adapter-tests` matrix: warns (W3024) about non-recommended node versions, errors (E3025) when required node versions are missing, warns (W3026) when recommended node versions are absent, and warns (W3027) when OS entries (`ubuntu-latest`, `windows-latest`, `macos-latest`) are missing from the matrix.
38
+ - (@copilot) Added `testingNodeJs` constants to `lib/config.js` for configuring node.js version requirements and OS requirements for `test-and-release.yml` checks.
39
+ - (@copilot) Added `[W1116]`: warn when the sentry plugin is configured in `common.plugins` of io-package.json but `@sentry/*` packages are listed as `dependencies` in package.json (explicit sentry dependencies are not needed when using the sentry plugin).
40
+ - (@copilot) Added `[S5051]`: suggest using `this.delay()` instead of custom `sleep`/`wait` function implementations found in adapter source files.
41
+ - (@mcm1957) Require node.js 20 and recommedn node.js 22 now
42
+ - (@copilot) Fixed `GLOBAL ERROR: TypeError: Cannot read properties of undefined (reading 'includes')` in `checkCode` when running in local mode (`--local`).
43
+ - (@copilot) CLI now exits with code `1` when errors are found, enabling use in command chains like `npx @iobroker/repochecker repo --local && npm run release`.
44
+ - (@copilot) Added `[W8918]`: warn when any workflow in `.github/workflows/` references an action from `iobroker`, `iobroker-community-adapters`, or `iobroker-bot-orga` without a versioned tag (e.g. `@main` or `@master`). [#851]
45
+ - (@copilot) Added `[S0065]`/`[W0066]`/`[S0067]`: check `@types/node` devDependency against the minimum Node.js version from the `engines` clause in package.json. Suggests adding it if missing, warns if it allows a higher major version, and suggests updating if it only covers lower versions.
46
+ - (@copilot) Fixed `[W0066]` `@types/node` semver check to correctly detect ranges that allow any higher major version (e.g. `^24.10.1` with min Node.js 20 now raises the warning as expected).
47
+ - (@copilot) Added [E5049]/[W5049]: scan source files for `process.env` usage. Reports an error when `common.compact` is `true` or not defined (compact mode incompatible), and a warning when `common.compact` is explicitly `false`.
48
+ - (@copilot) Added [E5050]/[W5050]: scan source files for `process.exit()` calls. Reports an error when `common.compact` is `true` or not defined (incompatible with compact mode), and a warning when `common.compact` is explicitly `false`.
49
+ - (@copilot) Warn when dependabot npm root entries do not ignore major or minor @types/node updates.
50
+ - (@copilot) Added `[W6021]`: warn when `## License` is not the last section in README.md.
51
+ - (@copilot) Added `[W1115]`: warn when a plugin listed in `common.plugins` of io-package.json is missing its corresponding `@iobroker/plugin-<name>` dependency in package.json.
52
+
28
53
  ### 5.11.1 (2026-04-25)
54
+
29
55
  - (@ticaki) Local mode has been fixed.
30
56
 
31
57
  ### 5.11.0 (2026-04-21)
58
+
32
59
  - (@copilot) Added `[W2007]`: warn when the npm `latest` dist-tag points to an alpha/pre-release version, as such releases will be ignored by repository updates.
33
60
  - (@copilot) Added `lib/postprocessing.js` module: new adapters (where `isNewAdapter` is set) now have selected warnings and suggestions promoted to errors or warnings according to a configurable severity-remap table, making the checker stricter for new adapter submissions.
34
61
  - (@copilot) Fixed adapter detection to ensure the `isNewAdapter` flag is set before configuration logging. Added a new `getLatestRepo` preprocessing step so that the flag is correctly visible in the environment log output.
35
62
  - (@copilot) Added German translation of OBJECTDUMP.md as OBJECTDUMP_de.md.
36
63
 
37
64
  ### 5.10.4 (2026-04-12)
65
+
38
66
  - (@copilot) Enhanced E6013 check: detects additional discouraged installation methods in README.md, including `iobroker`/`iob` npm install and url commands, and `npm install`/`npm i` with `owner/iobroker.adaptername` GitHub shorthand. Updated error message to mention "directly from GitHub, directly from npm or using npm commands".
39
67
 
40
68
  ### 5.10.3 (2026-04-11)
69
+
41
70
  - (@copilot) Fixed false positive W5042 for TypeScript type-only imports: `import type { Foo } from 'pkg'` no longer registers `pkg` as a required runtime dependency. Related to [#833]
42
71
 
43
72
  ### 5.10.2 (2026-04-11)
73
+
44
74
  - (@copilot) Fixed false positive `[E9507]` for i18n directories inside source directories (`src-rules`, `rules-src`, `src-editor`, `src-widgets`, `admin/src`, etc.) by expanding the ignored source directory list and checking the full parent path instead of only the top-level segment. Related to [#828].
45
75
  - (@copilot) Added adapter-specific exceptions to E0050 blacklist: `@iobroker/plugin-sentry` is now allowed as a dependency for `ioBroker.javascript`.
46
76
  - (@copilot) Added system-provided packages ignore list for W5042: `@iobroker/plugin-sentry` will no longer raise "dependency might be missing" warnings as it is provided by js-controller.
47
77
 
48
78
  ### 5.10.1 (2026-04-10)
79
+
49
80
  - (@copilot) Fixed `TypeError: minimatch is not a function` in `checkNpmIgnore` by correctly destructuring `minimatch` from the `minimatch` v10+ package export.
50
81
  - (@copilot) Added `minimatch` as an explicit dependency in `package.json` (used by `M9000_GitNpmIgnore.js` for glob pattern matching).
51
82
  - (@copilot) Fixed false positives in `[E9507]` when i18n directories are covered by glob patterns in `package.json` `"files"` field.
@@ -54,23 +85,28 @@ Example:
54
85
  - (@copilot) Added `[E9507]`: error when an i18n directory is present in the repository but not covered by the `"files"` field in `package.json`, which would cause translations to be missing from the npm package.
55
86
 
56
87
  ### 5.9.1 (2026-04-08)
88
+
57
89
  - (@copilot) Added `isNewAdapter` flag: set to `true` when adapter is not listed in the latest repository, with an info log when set.
58
90
  - (@copilot) Added `--strict` command line option: when active, outputs an info log "running in strict mode".
59
91
  - (@copilot) `[S6020]` suggestion to add `CHANGELOG_OLD.md` is now only shown when `isNewAdapter` is set or strict mode is active.
60
92
 
61
93
  ### 5.9.0 (2026-04-08)
94
+
62
95
  - (@copilot) Added checks W1114/S1114: warn when `common.schedule` is set to a non-empty value for daemon adapters (not supported), and suggest removal when `common.schedule` is an empty string for daemon adapters (unused). Related to [#806].
63
96
  - (@copilot) Added checks to help maintain organized changelog files: warns when CHANGELOG.md is present (changelog belongs in README.md), when both CHANGELOG.md and CHANGELOG_OLD.md coexist, when the README changelog exceeds 20 entries without a CHANGELOG_OLD.md, and suggests adding CHANGELOG_OLD.md when no such file exists. [W6017, W6018, W6019, S6020]
64
97
 
65
98
  ### 5.8.0 (2026-04-07)
99
+
66
100
  - (@copilot) Limit the listing of `allowedValues` in schema validation errors (E1105, W5512) to 5 values, appending `...` when there are more possibilities.
67
101
  - (@copilot) [W5046] Added warning when `admin/jsonConfig.json` or `admin/jsonConfig.json5` is present but `common.adminUI.config` is not set to `"json"` in `io-package.json`.
68
102
  - (@copilot) [W5047] Added warning listing obsolete files (`admin/index.html`, `admin/index_m.html`, `admin/style.css`) when jsonConfig is used.
69
103
 
70
104
  ### 5.7.1 (2026-04-07)
105
+
71
106
  - (mcm1957) Improve jsonConfig schema validation messages.
72
107
 
73
108
  ### 5.7.0 (2026-04-06)
109
+
74
110
  - (@copilot) [S8913] automerge suggestion is no longer shown when dependabot is not configured ([S8901]).
75
111
  - (@copilot) Language detection: `GERMAN_WORDS` and `ENGLISH_WORDS` arrays sorted alphabetically; chapters titled "Haftungsausschluss" in README.md are now ignored when checking for German text.
76
112
  - (@copilot) Added [W8915]: warn when a dependabot npm entry has no cooldown or a cooldown of less than 5 days configured, recommending at least 7 days to reduce supply chain risk.
@@ -79,18 +115,23 @@ Example:
79
115
  - (@copilot) Added schema validation for all present jsonConfig files (`admin/jsonConfig.json`, `admin/jsonCustom.json`, `admin/jsonTab.json` and their `.json5` variants) against the official jsonConfig JSON schema; errors reported as E5512, schema download failures as W5513, and exceptions as E5514. [#803]
80
116
 
81
117
  ### 5.6.9 (2026-04-02)
118
+
82
119
  - (mcm1957) Ignore "widgets" directory when scanning for imported packages.
83
120
 
84
121
  ### 5.6.7 (2026-04-02)
122
+
85
123
  - (@copilot) Fixed false positive package detection in `extractImports`: dynamic imports like `import("pkg")` no longer incorrectly trigger the `import ... from ...` pattern, preventing values in log strings (e.g. `from 'force_full'`) from being mistaken for package names.
86
124
 
87
125
  ### 5.6.6 (2026-03-29)
126
+
88
127
  - (mcm1957) Severity for [S3010] has been corrected.
89
128
 
90
129
  ### 5.6.5 (2026-03-27)
130
+
91
131
  - (@copilot) Exclude `gulpfile.js` and `lib/tools.js` from W5042/S5043 dependency scanning; added easy-to-extend `excludedSourceFiles` and `excludedSourceRelPaths` Sets for future exclusions.
92
132
 
93
133
  ### 5.6.2 (2026-03-27)
134
+
94
135
  - (@copilot) Suppress unwanted npm E404 error output when checking adapters that are not published on npm.
95
136
  - (@copilot) Added E2006 error when an npm package has no published versions available, instead of silently skipping version checks.
96
137
  - (@copilot) Handle unpublished npm packages: detect "Unpublished on ..." response from npm registry and report a specific E2000 error instead of the generic "not found" message; suppress raw npm error logs for unpublished packages in README/LICENSE year checks. [#766]
@@ -98,20 +139,25 @@ Example:
98
139
  - (@copilot) Added W5042 and S5043 checks: source files (`*.js`, `*.mjs`, `*.cjs`, `*.ts`) are now scanned for `require`/`import` statements (excluding `admin/`, `doc/`, `src-admin/`, `test/` directories and `*.test.*`/`*.config.*` files). W5042 warns when an imported package is not listed in `dependencies` of `package.json`. S5043 suggests using the `node:` prefix when importing known Node.js built-in modules without it.
99
140
 
100
141
  ### 5.5.5 (2026-03-24)
142
+
101
143
  - (mcm1957) remove '[S6014] README.md section "## Installation" should be removed unless the adapter requires special installation handling.'
102
144
 
103
145
  ### 5.5.4 (2026-03-22)
146
+
104
147
  - (@copilot) Fixed E6015/W6016 false positives: German (and English) language detection now ignores fenced code blocks, inline code, blockquote lines, link URLs, and image markup before analyzing the README text.
105
148
 
106
149
  ### 5.5.3 (2026-03-19)
150
+
107
151
  - (@copilot) Fixed E3016 false positive: transitive `needs` dependencies are now considered, so `deploy` depending on `adapter-tests` which already depends on `check-and-lint` is correctly accepted. Related to [#756].
108
152
  - (@copilot) W5041 warning now includes the list of languages that contain the example keys (e.g. `languages: en, de, ru`).
109
153
 
110
154
  ### 5.5.2 (2026-03-17)
155
+
111
156
  - (@copilot) E5040 and W5041 messages now include the specific detected key(s) (e.g. `option1`, `option2`, or both) instead of the generic `option1/option2` placeholder. Only one issue is raised even when multiple keys are detected.
112
157
  - (@copilot) Fixed E1111/W1111 checks: E1111 and W1111 are now renamed to E5040 and W5041 (correct numbering range for M5000_Code module). Both checks now correctly exempt adapters where `option1`/`option2` keys are genuinely used in `admin/index.html`, `admin/index_m.html`, or as keys in `admin/jsonConfig.json`/`admin/jsonConfig.json5`. Related to [#746].
113
158
 
114
159
  ### 5.5.1 (2026-03-17)
160
+
115
161
  - (@copilot) Added W5039 check: warns when `admin/words.js` exists but is not referenced anywhere in the codebase for adapters using jsonConfig. The file seems to be outdated and should be removed [#745].
116
162
  - (@copilot) Added W3018 and W3019 checks: when deploy job uses `ioBroker/testing-action-deploy@v1`, warns if job-level permissions (`contents: write`, `id-token: write`) are missing (W3018) or if the `npm-token` parameter is specified (W3019), as trusted publishing will not work in either case. Related to [#742].
117
163
  - (@copilot) Added W1113 check: warns when `native` config object contains properties but `common.adminUI.config` is set to `"none"`, as the native config will not be used without an admin UI config.
@@ -126,12 +172,15 @@ Example:
126
172
  - (@copilot) Extended E6013 check: now also triggers on "Install the adapter via ioBroker Admin as a ZIP file" and "Install from own URL" phrases (case-insensitive). Related to [#727].
127
173
 
128
174
  ### 5.4.1 (2026-03-13)
175
+
129
176
  - (mcm197) E3008 has been fixed
130
177
 
131
178
  ### 5.4.0 (2026-03-11)
179
+
132
180
  - (@copilot) OnlyWWW adapters no longer require testing dependencies or adapter test workflows (skips E3000, E3011, and W3015 checks for adapters with `common.onlyWWW = true`).
133
181
 
134
182
  ### 5.3.0 (2026-03-11)
183
+
135
184
  - (@copilot) Added validation for dependabot configuration: checks for required ecosystems (github-actions, npm), schedule settings, open-pull-requests-limit, and automerge workflow configuration (checks S8901–S8914).
136
185
  - (@copilot) Extended W5034 check to also warn when `.ts` and `.js`/`.cjs`/`.mjs` versions of the same file exist in the same directory.
137
186
  - (@copilot) E3003 YAML parse error for workflow files now logs only the first line (without the file excerpt).
@@ -139,25 +188,29 @@ Example:
139
188
  - (@copilot) Extended testing checks (M3000_Testing.js): added checks for testing devDependency, test-and-release.yml workflow file presence, validity and required configuration.
140
189
 
141
190
  ### 5.2.3 (2026-02-26)
191
+
142
192
  - (@copilot) Fixed crash when `devDependencies` is missing from package.json. [#675]
143
193
 
144
194
  ### 5.2.2 (2026-02-25)
195
+
145
196
  - (mcm1957) Add warning if fa-icon entry still exists.
146
197
  - (@copilot) Added W6011/W7004 checks: warn when copyright lines in README.md or LICENSE are separated by an empty line instead of trailing two spaces.
147
198
  - (@copilot) Fixed false positive W6009/W7003: warning for non-consecutive copyright lines (separated by other text or empty lines) is no longer issued. [#672]
148
199
  - (@copilot) Fixed false positive S0048/S0047 for npm alias dependencies (e.g. `"npm:real-package@^1.2.3"`). [#667]
149
200
  - (@copilot) Added jsonConfig components `iframe` and `iframeSendTo` with minAdmin 7.7.28.
150
201
  - (@copilot) Added jsonConfig component `yamlEditor` with minAdmin 7.7.31. [#660]
151
- - (@copilot) Restructured `validComponents` entries in M5500__JsonConfig.js to objects with `function` and `minAdmin` properties.
202
+ - (@copilot) Restructured `validComponents` entries in M5500\_\_JsonConfig.js to objects with `function` and `minAdmin` properties.
152
203
  - (@copilot) Added `checkDocker` and `infoBox` as known jsonConfig components to fix false-positive E5504 errors; set minAdmin 7.7.31 for `checkDocker`. [#663]
153
204
  - (mcm1957) require js-controlelr 6 and admin 7 now. [#641] [#589]
154
205
  - (mcm1957) required and suggested releases of standard packages have been updated.
155
206
  - (mcm1957) Dependencies to packages named 'admin' and 'iobroker' have been disallowed. [#617]
156
207
 
157
208
  ### 5.1.1 (2025-12-01)
209
+
158
210
  - (@copilot) Updated repository URLs from http://repo.iobroker.live to https://download.iobroker.net
159
211
 
160
212
  ### 5.1.0 (2025-11-25)
213
+
161
214
  - (@copilot) Added check for conflicting JSON/JSON5 files with same base name in same directory (E5038) [#169]
162
215
  - (@copilot) Added .releaseconfig.json verification to check plugins listed match installed devDependencies (E5036, W5037)
163
216
  - (@copilot) Added YAML file validation check (E5035) to verify .yml and .yaml files are well-structured [#618]
@@ -170,12 +223,15 @@ Example:
170
223
  - (mcm1957) Pathc information has been added to error E5509. [#394]
171
224
 
172
225
  ### 5.0.2 (2025-10-03)
226
+
173
227
  - (mcm1957) Some debug log has been removed.
174
228
 
175
229
  ### 5.0.1 (2025-10-03)
230
+
176
231
  - (mcm1957) A crash at adapters which do not contain news entry at io-package.json has been fixed. [#572]
177
232
 
178
233
  ### 5.0.0 (2025-10-02)
234
+
179
235
  - (mcm1957) Suppress W6010 if adapter not yet published at npm. [#567]
180
236
  - (@copilot) Added check for deprecated common.jsonConfig property - warns if adminUI exists (W1109), errors if adminUI missing (E1109)
181
237
  - (@copilot) Added check (W0063) for unneeded devDependencies when @iobroker/testing >= 5.1.1 is installed
@@ -200,6 +256,7 @@ Example:
200
256
  - (@copilot) Fixed deprecated function checking for adapter methods called outside class context
201
257
 
202
258
  ### 4.2.0 (2025-09-20)
259
+
203
260
  - (mcm1957) 'Request' replacement text changed to suggest 'node:fetch' [#498].
204
261
  - (@copilot) Fixed false positive W533 warnings for deprecated adapter methods when called on local functions with same names [#520].
205
262
  - (mcm1957) '[W438] .vscode/settings.json file missing "json.schemas" property' has been converted to suggestion [#516].
@@ -209,7 +266,7 @@ Example:
209
266
  - (copilot) Added check for outdated lib/tools.js file usage (W532) [#432].
210
267
  - (copilot) Added VS Code schema definitions checker for .vscode/settings.json - validates json.schemas for io-package.json and jsonConfig files [#336].
211
268
  - (copilot) Change W510 to E510: Convert missing admin i18n files from warning to error [#400].
212
- - (copilot) Renumbered all issues in M500__JsonConfig.js from 500-511 range to 550-561 range [#481].
269
+ - (copilot) Renumbered all issues in M500\_\_JsonConfig.js from 500-511 range to 550-561 range [#481].
213
270
  - (copilot) Added check for .commitinfo file - error if present (E905), warning if not in .gitignore (W906) [#467].
214
271
  - (copilot) Added check for allowInit attribute [#181].
215
272
  - (copilot) Added detection for empty dependency objects in io-package.json (E200, E201) [#422].
@@ -218,6 +275,7 @@ Example:
218
275
  - (copilot) Fixed W195 warning for array elements - add W203 warning for unsupported array encryption [#399].
219
276
 
220
277
  ### 4.1.0 (2025-09-11)
278
+
221
279
  - (mcm1957) eslint-config and testing suggestions have been updated.
222
280
  - (mcm1957) adapter-core suggestions has been updated.
223
281
  - (mcm1957) URGENT and IMPORTANT issued are watched now.
@@ -226,13 +284,15 @@ Example:
226
284
  - (mcm1957) Text for S191 has been extended [#393].
227
285
  - (mcm1957) Text for S052 has been corrected [#434].
228
286
  - (mcm1957) Formatting if W174 has been improved [#408].
229
- - (mcm1957) @types/* as dependency now raise a warning [#421].
287
+ - (mcm1957) @types/\* as dependency now raise a warning [#421].
230
288
  - (mcm1957) Dependencies have been updated.
231
289
 
232
290
  ### 4.0.2 (2025-08-12)
291
+
233
292
  - (mcm1957) js-controller 6.0.11 recommended now.
234
293
 
235
294
  ### 4.0.1 (2025-08-11)
295
+
236
296
  - (mcm1957) Wrong suggestion to add admin dependency has been corrected [#452].
237
297
  - (mcm1957) Text for E952 has been corrected [#446].
238
298
  - (mcm1957) Adapt wording at W098 / E029 [#448].
@@ -241,30 +301,37 @@ Example:
241
301
  - (mcm1957) jsonConfig expertMode flag added [#386].
242
302
 
243
303
  ### 4.0.0 (2025-08-05)
304
+
244
305
  - (mcm1957) use jsdelivr.com to retrive files from github.
245
306
  - (mcm1957) Dependencies have been updated.
246
307
 
247
308
  ### 3.5.8 (2025-05-17)
309
+
248
310
  - (mcm1957) add authorization for github using OWN_GITHUB_TOKEN.
249
311
 
250
312
  ### 3.5.5 (2025-04-28)
313
+
251
314
  - (mcm1957) Node.js 20 is suggested now.
252
315
  - (mcm1957) Suggested release for several packages has been encreased.
253
316
  - (mcm1957) Do not raise E186 if E190 is raised anyway. [#387]
254
317
  - (mcm1957) Dependencies have been updated.0
255
318
 
256
319
  ### 3.5.4 (2025-03-03)
320
+
257
321
  - (mcm1957) Ignore boolean paramters when checking protectedNative/encryptedNative. [#395]
258
322
 
259
323
  ### 3.5.3 (2025-02-21)
324
+
260
325
  - (mcm1957) Crash has been fixed if protectedNative/encryptedNative is not an array. [#385]
261
326
 
262
327
  ### 3.5.2 (2025-02-19)
328
+
263
329
  - (mcm1957) Incorrect admin suggestion for very olf html adapters corrected. [#383]
264
330
  - (mcm1957) Errors during parsing if icon improved. [#381]
265
331
  - (mcm1957) Crash if protectedNative or encryptedNative is missing. [#382]
266
332
 
267
333
  ### 3.5.0 (2025-02-18)
334
+
268
335
  - (mcm1957) Fixed dependency warning ([W174]) has been reduces to suggestion. [#374]
269
336
  - (mcm1957) Some changes to jsonConfig check have been implemented.
270
337
  - (mcm1957) common.supportCustoms check has been added. [#379]
@@ -272,21 +339,25 @@ Example:
272
339
  - (mcm1957) Check that key listed at encryptedNative is listed at protectedNative too. [#342]
273
340
  - (mcm1957) Check that extension adapters require web adapter. [#311]
274
341
  - (mcm1957) List of suspicious keys to protect has been extended. [#358]
275
- - (mcm1957) checking of 'admin' globalDependency has been added.
342
+ - (mcm1957) checking of 'admin' globalDependency has been added.
276
343
  - (mcm1957) checking of 'publishConfig.registry' has been added.
277
344
  - (mcm1957) New commandline option --noinfo added.
278
345
  - (mcm1957) Logging has been adapted.
279
346
 
280
347
  ### 3.4.4 (2025-02-12)
348
+
281
349
  - (mcm1957) Some external attributes added to valid package.json attributes.
282
350
 
283
351
  ### 3.4.2 (2025-02-12)
352
+
284
353
  - (mcm1957) 'type' and 'types' added to valid package.json attributes.
285
354
 
286
355
  ### 3.4.1 (2025-02-11)
356
+
287
357
  - (mcm1957) Add 'publishConfig' to valid package.json attributes.
288
358
 
289
359
  ### 3.4.0 (2025-02-11)
360
+
290
361
  - (mcm1957) Do not suggest to migrate to adapter-dev if only gulpfile.js exists. (#334).
291
362
  - (mcm1957) Warn if onlyWWW adapter uses adapter-core (#251).
292
363
  - (mcm1957) Singleton checks have been reduced to suggestion level.
@@ -303,12 +374,15 @@ Example:
303
374
  - (mcm1957) Adapt copyright year advisory.
304
375
 
305
376
  ### 3.3.2 (2025-01-20)
377
+
306
378
  - (mcm1957) Avoid crash if some file cannot be downloaded.
307
379
 
308
380
  ### 3.3.1 (2025-01-19)
381
+
309
382
  - (mcm1957) Report malformed semver specifications has been fixed.
310
383
 
311
384
  ### 3.3.0 (2025-01-19)
385
+
312
386
  - (mcm1957) "common.singleton" causes a warning now for non-onlyWWW Adapters.
313
387
  - (mcm1957) "$schema" has been blacklisted at io-package.json.
314
388
  - (mcm1957) Warn if 'common.nondeletable' flag is detected.
@@ -319,27 +393,33 @@ Example:
319
393
  - (mcm1957) Releaseinfo has been added to "checks" log.
320
394
 
321
395
  ### 3.2.4 (2025-01-16)
396
+
322
397
  - (mcm1957) Suggested release of testing and adapter-core increased.
323
398
 
324
399
  ### 3.2.3 (2025-01-11)
400
+
325
401
  - (mcm1957) An error is issued if js-controller dependency is missing.
326
402
  - (mcm1957) Required js-controller has been increased to 5.0.19.
327
403
  - (mcm1957) Recommended js-controller version is omitted if identical to required one.
328
404
 
329
405
  ### 3.2.2 (2024-11-01)
406
+
330
407
  - (mcm1957) Link to open issues has been corrected.
331
408
  - (mcm1957) Component name added to responsive check issues.
332
409
 
333
410
  ### 3.2.1 (2024-11-01)
411
+
334
412
  - (mcm1957) Size checking for "divider" and "staticImage" suspended.
335
413
 
336
414
  ### 3.2.0 (2024-11-01)
415
+
337
416
  - (oweitman) Script has been extended to use optionally local data for checking.
338
417
  - (mcm1957) Warning if i18n is not used has been fixed [#324].
339
418
  - (mcm1957) Check for importent issues has been added.
340
419
  - (mcm1957) Checking of jsonConfig (initially) added.
341
420
 
342
421
  ### 3.1.4 (2024-10-26)
422
+
343
423
  - (mcm1957) linter has been activated and issues reported have been fixed.
344
424
  - (mcm1957) Blacklist for package/dependencies has been extended.
345
425
  - (mcm1957) Recommend adapter-core 3.2.2 now.
@@ -347,12 +427,15 @@ Example:
347
427
  - (mcm1957) Abort processing if iobroker.live not reachable. [#321]
348
428
 
349
429
  ### 3.1.3 (2024-10-11)
430
+
350
431
  - (mcm1957) Checker no longer crash id no npm package exists.
351
432
 
352
433
  ### 3.1.2 (2024-10-04)
434
+
353
435
  - (mcm1957) Require node 18 minimum as engines clause.
354
436
 
355
437
  ### 3.1.1 (2024-10-04)
438
+
356
439
  - (mcm1957) "[E166] 'common.mode: extension' is unknown" has been fixed [#308]
357
440
  - (mcm1957) "[E904] file iob_npm.done found in repository, but not found in .gitignore" removed as covered by [E503]. [#309]
358
441
  - (mcm1957) "[E500] node_modules found" has been retricted to adapetr root. [#297]
@@ -360,22 +443,27 @@ Example:
360
443
  - (mcm1957) Change "[W113] Adapter should support compact mode" text and honor common.compact set to false. [#300]
361
444
 
362
445
  ### 3.1.0 (2024-09-29)
446
+
363
447
  - (mcm1957) "@iobroker/plugin-sentry" blacklisted as dependency [#301]
364
448
  - (mcm1957) Accept .ts files as main file too. [#303]
365
449
  - (mcm1957) [E405] and [E426] incorrect path has been corrected. [#299]
366
450
 
367
451
  ### 3.0.7 (2024-09-19)
452
+
368
453
  - (mcm1957) "[W523] 'package-lock.json"'not found in repo!" reduced to suggestion. [#298]
369
454
 
370
455
  ### 3.0.6 (2024-09-13)
456
+
371
457
  - (mcm1957) "[E124] Main file not found" no longer raised if `common.nogit` is set
372
458
  - (mcm1957) 'Text of "common.main" is deprecated' has been adapted. [#266]
373
459
  - (mcm1957) Ignore errors caused by complex .gitignor/.npmignore. [#288]
374
460
 
375
461
  ### 3.0.5 (2024-09-13)
462
+
376
463
  - (mcm1957) '@iobroker/dev-server' is valid as dev-dependency. [#260]
377
464
 
378
465
  ### 3.0.4 (2024-09-12)
466
+
379
467
  - (mcm1957) Abort with incorrect dependency definition fixed [#287]
380
468
  - (mcm1957) Improve handling of malformed dependency definitions [#284]
381
469
  - (mcm1957) Improve handling of malformed .releaseconfig.json files [#283]
@@ -385,28 +473,34 @@ Example:
385
473
  - (mcm1957) Do no longer require a js-controller dependency for wwwOnly adapters. [#250]
386
474
 
387
475
  ### 3.0.3 (2024-09-12)
476
+
388
477
  - (mcm1957) Check for iob_npm.done at `.npmignore` has been removed [#294]
389
478
 
390
479
  ### 3.0.2 (2024-09-11)
480
+
391
481
  - (mcm1957) Handling of a missing LICENSE file corrected. [#282]
392
482
  - (mcm1957) [W126] Missing mandatory translation is an error now. [#293]
393
483
  - (mcm1957) Record repochcker version used for tests.
394
484
  - (mcm1957) Record GitHub commit-sha of last commit used for tests.
395
485
 
396
486
  ### 3.0.0 (2024-09-10)
487
+
397
488
  - (mcm1957) Error and warning numbering has been reviewed and duplicates removed.
398
489
  - (mcm1957) index.js has been split into seperated modules.
399
490
 
400
491
  ### 2.10.0 (2024-08-19)
492
+
401
493
  - (mcm1957) Suggestions ([Sxxx] have been added).
402
494
 
403
495
  ### 2.9.1 (2024-08-12)
496
+
404
497
  - (mcm1957) E162 - correct dependency check for js-controller. [#267].
405
498
  - (mcm1957) E605 - copyright year range including whitespaces is now accepted. [#269].
406
499
  - (mcm1957) E016 - missing vaiable expansion has been added. [#263].
407
500
  - (mcm1957) E114 - typo at error message has been fixed [#261].
408
501
 
409
502
  ### 2.9.0 (2024-07-29)
503
+
410
504
  - (mcm1957) Adapt text if sources-dist(-stable).json need a correction [#97].
411
505
  - (mcm1957) Missing "common.mode" error text corrected [#249].
412
506
  - (mcm1957) Files "iob" and "iobroker" are disallowed now [#248].
@@ -414,10 +508,12 @@ Example:
414
508
  - (mcm1957) Text of E114 (missing adminUI) adapted.
415
509
 
416
510
  ### 2.8.1 (2024-07-28)
511
+
417
512
  - (mcm1957) Check of js-controller version has been corrected [#247].
418
513
  - (mcm1957) Honor '>' at dependency checks too [#246].
419
514
 
420
515
  ### 2.8.0 (2024-07-28)
516
+
421
517
  - (mcm1957) Copyright year check has been fixed for single year entries.
422
518
  - (mcm1957) js-controller version check added [#233].
423
519
  - (mcm1957) Check for fixed version dependencies and for github dependencies [#233].
@@ -427,12 +523,15 @@ Example:
427
523
  - (mcm1957) "common.noConfig" must match "common.adminUI" setting [#170].
428
524
 
429
525
  ### 2.7.2 (2024-07-26)
526
+
430
527
  - (mcm1957) package-lock.json check fixed.
431
528
 
432
529
  ### 2.7.1 (2024-07-26)
530
+
433
531
  - (mcm1957) Reduce setTimeout/setInterval error to warning temporary.
434
532
 
435
533
  ### 2.7.0 (2024-07-26)
534
+
436
535
  - (mcm1957) Some non trivial keywords related to adapter are enforced now [#234].
437
536
  - (mcm1957) Severity if [E105] / [W105] has been corrected [#204].
438
537
  - (mcm1957) Disallow 'globalDependencies' at package.json [#204].
@@ -446,29 +545,36 @@ Example:
446
545
  - (mcm1957) Copyright year now honors commit year and npm publish year too [#237].
447
546
 
448
547
  ### 2.6.1 (2024-06-24)
548
+
449
549
  - (mcm1957) Check "[W156] Adapter should support admin 5 UI (jsonConfig)" checks for reactUi now.
450
550
 
451
551
  ### 2.6.0 (2024-06-24)
552
+
452
553
  - (mcm1957) Check has been aded to ensure keywords and common.keywords are present. [#200]
453
554
  - (mcm1957) Detection of react has been added, gulpfile.js is accepted for react based UIs now. [#223]
454
555
 
455
556
  ### 2.5.1 (2024-06-24)
557
+
456
558
  - (mcm1957) Suggestion to update dependencies to recommended version added.
457
559
  - (mcm1957) Adapter-core recommended set to 3.1.6 [#220]
458
560
 
459
561
  ### 2.5.0 (2024-05-30)
562
+
460
563
  - (mcm1957) Check to ensure that dependency revisions are available at repository added. [#180]
461
564
 
462
565
  ### 2.4.0 (2024-05-30)
566
+
463
567
  - (mcm1957) Add check to protect sensitive data. [#195]
464
568
  - (mcm1957) Add check to verify that dependencies and globalDepencies are of type array. [#90]
465
569
 
466
570
  ### 2.3.1 (2024-05-07)
571
+
467
572
  - (mcm1957) Reduce number of missing translation warnings.
468
573
  - (mcm1957) Seperate between required and recommended translations.
469
574
  - (mcm1957) Log missing translations in detail.
470
575
 
471
576
  ### 2.3.0 (2024-05-07)
577
+
472
578
  - (mcm1957) Elements marked as deprectaed added to blacklist.
473
579
  - (mcm1957) Blacklist added to block elements at package.json and io-package.json.
474
580
  - (mcm1957) Error [E000] will be raised now if repository cannot be accessed at all [#194].
@@ -477,13 +583,16 @@ Example:
477
583
  - (mcm1957) Raise an error if version at package.json is lower than latest release at npmjs [#192]
478
584
 
479
585
  ### 2.2.3 (2024-03-29)
586
+
480
587
  - (mcm1957) Checking of license has been improved
481
588
 
482
589
  ### 2.2.2 (2024-03-29)
590
+
483
591
  - (mcm1957) Checking of adapter-core has been fixed
484
592
  - (mcm1957) Load all potential interesting files, fixes [#149]
485
593
 
486
594
  ### 2.2.1 (2024-03-26)
595
+
487
596
  - (mcm1957) Added check that own adapter is not listed at common.restartAdapters
488
597
  - (mcm1957) Added check of version strings at common.news
489
598
  - (mcm1957) Added check for recommended node version (node 18 for now)
@@ -492,40 +601,51 @@ Example:
492
601
  - (mcm1957) Added check for adapter-core version (>= 3.0.6)
493
602
 
494
603
  ### 2.2.0 (2024-03-24)
604
+
495
605
  - (klein0r) Added check for licenseInformation
496
606
  - (klein0r) Added check for deprecated license
497
607
  - (klein0r) Added check for required attribute common.tier
498
608
  - (klein0r) Added check for disallowed attribute common.automaticUpgrade
499
609
 
500
610
  ### 2.1.13 (2024-01-02)
611
+
501
612
  - (bluefox) Corrected rule W156: adminUI.config === 'none' is allowed
502
613
 
503
614
  ### 2.1.12 (2023-09-21)
615
+
504
616
  - (bluefox) Added check of using '\_' in adapter name
505
617
 
506
618
  ### 2.1.11 (2023-09-05)
619
+
507
620
  - (bluefox) Added check of iobroker.js-controller in dependencies
508
621
 
509
622
  ### 2.1.7 (2023-08-14)
623
+
510
624
  - (mcm57) Update index.js - fix typo in error message (packet.json)
511
625
  - (mcm57) Update index.js - renumber E504/1 to 519 - fixes #112
512
626
 
513
627
  ### 2.1.6 (2022-12-08)
628
+
514
629
  - (bluefox) added better error logging
515
630
 
516
631
  ### 2.1.5 (2022-12-07)
632
+
517
633
  - (bluefox) added check of `.releaseconfig.json` file
518
634
 
519
635
  ### 2.1.4 (2022-08-19)
636
+
520
637
  - (bluefox) Added check for adapter name: it may not start with '\_'
521
638
 
522
639
  ### 2.1.2 (2022-07-14)
640
+
523
641
  - (bluefox) Fixed some errors
524
642
 
525
643
  ### 2.1.0 (2022-05-26)
644
+
526
645
  - (bluefox) Added support for jsonConfig.json5 and jsonCustom.json5
527
646
 
528
647
  ### 2.0.5 (2022-05-22)
648
+
529
649
  - (bluefox) Made it possible to run with npx
530
650
 
531
651
  ## License
@@ -551,5 +671,4 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
551
671
  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
552
672
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
553
673
 
554
-
555
674
  THE SOFTWARE.
package/index.js CHANGED
@@ -338,6 +338,10 @@ if (typeof module !== 'undefined' && module.parent) {
338
338
  console.log('\n\nNO suggestions encountered.');
339
339
  }
340
340
  console.log(`\ncreated by repochecker ${context.version} based on commit ${context.lastCommitSha}`);
341
+
342
+ if (common.isLocal() && context.errors.length) {
343
+ process.exit(1);
344
+ }
341
345
  },
342
346
  );
343
347
  }