RULEAPI-641 Document how comments can be added to rules (#114)
This commit is contained in:
parent
2784140e8b
commit
b042d4cc78
12
README.adoc
12
README.adoc
@ -178,6 +178,18 @@ you have to run `update` immediately after,
|
||||
because rule-api relies on the files in the directory to determine the covered set of rules
|
||||
when generating the deprecation notes for superseded rules.
|
||||
|
||||
== Comment a rule
|
||||
|
||||
Comments and links that were created on Jira have been gathered in a `comments-and-links.adoc` file for each concerned rule. +
|
||||
You can add a comment anywhere in a rule by adding the following lines in the `*.adoc` file:
|
||||
[source]
|
||||
----
|
||||
\ifdef::env-github,rspecator-view[]
|
||||
John Doe (9 Jun 2021, 15:49): my comment on the rule
|
||||
\endif::env-github,rspecator-view[]
|
||||
----
|
||||
This way, your comment will only be visible in GitHub preview and on the Search Page (and will not be visible for the user).
|
||||
|
||||
== Untriaged Pull Requests
|
||||
|
||||
Untriaged PRs are the ones without any label. You can easily see all of them with the filter https://github.com/SonarSource/rspec/pulls?q=is%3Aopen+is%3Apr+no%3Alabel[`Label > Unlabeled`]. +
|
||||
|
Loading…
x
Reference in New Issue
Block a user