-
Notifications
You must be signed in to change notification settings - Fork 511
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Code fix: SA1600 (ElementsMustBeDocumented) #764
Comments
Rusult! |
@oatkins 😑 |
Hi,
Could quite easily be documented as:
I think there is value in this, particularly in the case of correctly named properties. thoughts? |
@jimmymain It was my impression that several people working on this find automatically-generated documentation wrong (or useless) more frequently than it is correct (or useful). Right now I can't find the conversation I was thinking of. While they obviously have good intentions, I'm definitely not a fan of the behavior of tools like GhostDoc. That said, please keep the following in mind:
|
On the whole, I agree, though my feeling is that my case for properties is pretty strong. |
The documentation rules are there for a reason. The developer should write documentation that helps someone who reads the code to better understand it. Auto generated documentation for properties do not provide any value at all and the only effect it has is that it suppresses the diagnostic. This defeats the purpose. |
Hi, I understand and appreciate your point of view. There should then be a convenient way of suppressing the analysis for only On Thu, 12 Nov 2015 at 13:06 Dennis Fischer [email protected]
|
I have added a github project that documents properties and methods. https://github.com/jimmymain/Documentation.Analyzers Regards |
Hi, From the thread it looks like this hasn't been fixed. Would you accept fixes for this if I worked on it? This is an important CodeFix and I'd like to get it working Cheers |
@chrisahhh Perhaps try my code fixes: it's had a few thousand downloads, nobody has ever added any suggestions or bugs, so give it a whirl, and let me know if anything can be improved. |
Implement a code fix for #120.
In general the code fix would create the necessary XML elements in a new documentation comment, but not fill in the details. However, for certain cases we can fill in these details. For example:
The
<summary>
element for constructors and finalizers can be created according to SA1642 and SA1643.If the member needing documentation overrides or implements a member from a base class or interface, the content can be simplified to just
<inheritdoc/>
.If the member returns a
Task
, the<returns>
element should read as follows (note we may use different wording):The text was updated successfully, but these errors were encountered: