Docs normalization#18831
Docs normalization#18831AlexWaygood merged 29 commits intoastral-sh:mainfrom MeGaGiGaGon:docs-normalization
Conversation
|
AlexWaygood
left a comment
There was a problem hiding this comment.
Thanks! One of these changes feels unnecessary to me, but the rest LGTM :-)
There was a problem hiding this comment.
I'm not sure there's a need to change this file -- we just end up with a very small Fix safety section, and I think the content in that paragraph naturally fits with the content of the preceding two paragraphs. I don't think it's essential that every rule is totally consistent in the docs sections it has.
There was a problem hiding this comment.
The main reason I did is for the consistency - like what I've been doing, if you are writing a tool to try and detect all rules missing the section, it's a one-off edge case, since in the searching I did I could not find another rule that had this format.
There was a problem hiding this comment.
Eh, fair enough. It would certainly be nice to enforce (one day...) in CI that all rules which are sometimes unsafe have a Fix safety section in their docs explaining why.
Summary
While working on a detector for #15584, I noticed several inconsistencies in the docs, so this PR fixes them.
#[derive(ViolationMetadata)]#[derive(ViolationMetadata)]## Fix Safetyinstead of## Fix safetyTest Plan
N/A, no functionality/tests affected