Add markdown local links to listed rules (#4762)
This commit is contained in:
parent
b9e5cfb202
commit
ad29864d7f
|
@ -17,6 +17,9 @@
|
|||
* None.
|
||||
|
||||
#### Enhancements
|
||||
* Add local links to rule descriptions to every rule listed
|
||||
in `Rule Directory.md`.
|
||||
[kattouf](https://github.com/kattouf)
|
||||
|
||||
* Make forceExclude work with directly specified files.
|
||||
[jimmya](https://github.com/jimmya)
|
||||
|
|
|
@ -43,19 +43,19 @@ public struct RuleListDocumentation {
|
|||
## Default Rules
|
||||
|
||||
\(defaultRuleDocumentations
|
||||
.map { "* `\($0.ruleIdentifier)`: \($0.ruleName)" }
|
||||
.map { "* [`\($0.ruleIdentifier)`](\($0.ruleIdentifier).md): \($0.ruleName)" }
|
||||
.joined(separator: "\n"))
|
||||
|
||||
## Opt-In Rules
|
||||
|
||||
\(optInRuleDocumentations
|
||||
.map { "* `\($0.ruleIdentifier)`: \($0.ruleName)" }
|
||||
.map { "* [`\($0.ruleIdentifier)`](\($0.ruleIdentifier).md): \($0.ruleName)" }
|
||||
.joined(separator: "\n"))
|
||||
|
||||
## Analyzer Rules
|
||||
|
||||
\(analyzerRuleDocumentations
|
||||
.map { "* `\($0.ruleIdentifier)`: \($0.ruleName)" }
|
||||
.map { "* [`\($0.ruleIdentifier)`](\($0.ruleIdentifier).md): \($0.ruleName)" }
|
||||
.joined(separator: "\n"))
|
||||
|
||||
"""
|
||||
|
|
Loading…
Reference in New Issue