Add rule information links to JSON schema for configuration files and corresponding examples (link is clickable in VS Code tooltips).

This commit is contained in:
David Anson 2023-11-03 20:23:13 -07:00
parent 1a376f60bb
commit 18497ff03c
4 changed files with 177 additions and 176 deletions

View file

@ -49,7 +49,8 @@ for (const rule of rules) {
tags[tag] = tagRules;
}
const scheme = {
"description": rule.names.join("/") + " - " + rule.description,
"description":
`${rule.names.join("/")} : ${rule.description} : ${rule.information}`,
"type": "boolean",
"default": true
};
@ -557,7 +558,7 @@ for (const rule of rules) {
// Add tags
for (const [ tag, tagTags ] of Object.entries(tags)) {
const scheme = {
"description": tag + " - " + tagTags.join(", "),
"description": `${tag} : ${tagTags.join(", ")}`,
"type": "boolean",
"default": true
};