Skip to content

Commit 479641b

Browse files
authored
Merge pull request #818 from ioBroker/copilot/add-warning-for-missing-adapter
Add W4047: warn when adapter is present in latest repo but absent from stable
2 parents 105bb4e + dac7cba commit 479641b

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ Example:
2626
### **WORK IN PROGRESS**
2727
-->
2828
### **WORK IN PROGRESS**
29+
- (@copilot) Added [W4047]: warn when adapter is found in the latest repository but not yet available in the stable repository. Related to [#820].
2930
- (@copilot) Added `[E9506]`: error when an i18n directory is explicitly excluded by `.npmignore`, which would cause translations to be missing from the npm package.
3031
- (@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.
3132

lib/M4000_Repository.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,10 @@ async function checkRepository(context) {
165165
context.checks.push('Meta URL (stable) is OK in latest repository');
166166
}
167167
}
168+
} else if (!context.cfg.isNewAdapter) {
169+
context.warnings.push(
170+
`[W4047] Adapter "${context.adapterName}" is not yet available in the stable repository.`,
171+
);
168172
}
169173
}
170174

@@ -545,3 +549,4 @@ exports.checkRepository = checkRepository;
545549
// [4044] Missing schema definition for JSON5 config files in .vscode/settings.json. Add: {"fileMatch": ${JSON.stringify(json5ConfigFiles)}, "url": "${config.schemaUrls.jsonConfig}"}
546550
// [4045] Incorrect schema URL for JSON5 config files in .vscode/settings.json. Expected: "${config.schemaUrls.jsonConfig}", found: "${json5ConfigSchema.url}"
547551
// [4046] Could not read .vscode/settings.json file: ${error.message}
552+
// [4047] Adapter "${context.adapterName}" is not yet available in the stable repository.

0 commit comments

Comments
 (0)