This repository was archived by the owner on Jan 12, 2024. It is now read-only.
This repository was archived by the owner on Jan 12, 2024. It is now read-only.
Use consistent tags in documentation comments #699
Open
Description
Most documentation comments in the compiler only use the <summary>
tag. For short comments, this is fine, but in many cases the summary is several paragraphs long and would be easier to read if it used standard documentation tags to structure the information. This is especially important for exceptions - exceptions mentioned in the <summary>
tag are easy to miss, whereas the special <exception>
tag makes them stand out more.
I think we need to use some rules for our doc comments. My proposal is:
- Limit
<summary>
to one paragraph. Anything longer than that should go in specific tags as appropriate, or the<remarks>
tag if none of the other tags apply. - Always put exceptions in an
<exception>
tag.
Tasks
- Use exception tags in C# documentation comments (Use the XML exception tag in doc comments (C#) #732)
- Use exception tags in F# documentation comments (Use the XML exception tag in doc comments (F#) #766)
- Limit summaries to one paragraph
- Decide if other changes to the documentation tags are needed
- Enable C# documentation generation to validate doc comments