You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,6 +27,9 @@ Example:
27
27
-->
28
28
### **WORK IN PROGRESS**
29
29
- (@copilot) Added [W5048] check: warns about obsolete eslint/prettier config files (`.eslintignore`, `.eslintrc.json`, `.prettierignore`, `.prettierrc.js`, `.prettierrc.json`) when `@iobroker/eslint-config` is used as a devDependency.
30
+
- (@copilot) Added [W4047]: warn when adapter is found in the latest repository but not yet available in the stable repository. Related to [#820].
31
+
- (@copilot) Added `[E9506]`: error when an i18n directory is explicitly excluded by `.npmignore`, which would cause translations to be missing from the npm package.
32
+
- (@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.
30
33
31
34
### 5.9.1 (2026-04-08)
32
35
- (@copilot) Added `isNewAdapter` flag: set to `true` when adapter is not listed in the latest repository, with an info log when set.
`[W3009] Workflow "${WORKFLOW_FILE}" is missing recommended concurrency configuration. See `+
246
+
`[W3009] Workflow "${WORKFLOW_FILE_SHORT}" is missing recommended concurrency configuration. See `+
246
247
`"https://github.com/ioBroker/ioBroker.example/blob/e7db900495bb3c2b89dc35d863dda4ccf33f5def/JavaScript/.github/workflows/test-and-release.yml#L17" for details.`,
247
248
);
248
249
}else{
@@ -258,11 +259,11 @@ async function checkTests(context) {
258
259
if(!jobs['check-and-lint']){
259
260
if(!context.cfg.onlyWWW){
260
261
context.errors.push(
261
-
`[E3010] Workflow "${WORKFLOW_FILE}": job "check-and-lint" is missing. Please add it.`,
262
+
`[E3010] Workflow "${WORKFLOW_FILE_SHORT}": job "check-and-lint" is missing. Please add it.`,
262
263
);
263
264
}else{
264
265
context.warnings.push(
265
-
`[S3010] Workflow "${WORKFLOW_FILE}": job "check-and-lint" is missing. Consider adding it.`,
266
+
`[S3010] Workflow "${WORKFLOW_FILE_SHORT}": job "check-and-lint" is missing. Consider adding it.`,
266
267
);
267
268
}
268
269
}else{
@@ -271,7 +272,7 @@ async function checkTests(context) {
271
272
// W3013: check-and-lint must use ioBroker/testing-action-check@v1
`[E9507] i18n directory "${i18nDir.replace(/^\//,'')}" found in repository but is not included in package.json "files". Translations will be missing from the npm package.`,
211
+
);
212
+
}
213
+
}
214
+
141
215
returncontext;
142
216
}
143
217
@@ -192,6 +266,16 @@ async function checkNpmIgnore(context) {
192
266
context.errors.push(`[E9010] file ${file} found in repository, but not found in .npmignore`);
193
267
}
194
268
});
269
+
270
+
// Check that i18n directories are not excluded by .npmignore
271
+
consti18nDirs=findI18nDirs(context.filesList);
272
+
for(consti18nDirofi18nDirs){
273
+
if(isI18nDirExcluded(i18nDir,rules)){
274
+
context.errors.push(
275
+
`[E9506] i18n directory "${i18nDir.replace(/^\//,'')}" is excluded by .npmignore. Translations will be missing from the npm package.`,
0 commit comments