We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c624c88 commit 175a755Copy full SHA for 175a755
scripts/expand_module_list_with_repo_data.js
@@ -101,7 +101,14 @@ async function addInformationFromPackageJson (moduleList) {
101
"smart mirror"
102
];
103
104
- module.tags = moduleData.keywords
+ module.tags = moduleData.keywords;
105
+
106
+ const duplicates = module.tags.filter((tag, index) => module.tags.indexOf(tag) !== index);
107
+ if (duplicates.length > 0) {
108
+ module.issues.push(`There are duplicates in the keywords in your package.json: ${duplicates.join(", ")}`);
109
+ }
110
111
+ module.tags = module.tags
112
.map((tag) => {
113
tag = tag.toLowerCase();
114
if (tag === "smarthome") {
0 commit comments