-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
CA1844 #24278
CA1844 #24278
Conversation
Co-authored-by: Youssef Victor <youssefvictor00@gmail.com>
Co-authored-by: Youssef Victor <youssefvictor00@gmail.com>
Co-authored-by: Youssef Victor <youssefvictor00@gmail.com>
For code analysis rule reference, we usually just have code snippets, not entire samples. However, you could upload the sample to https://github.com/dotnet/samples and then add a link to the full sample from the article. |
Co-authored-by: Genevieve Warren <24882762+gewarren@users.noreply.github.com>
* Add ca1844.md * Update ca1844.md * Fix lint errors * Remove trailing spaces * Fix build warnings * Update toc.yml * Update index.md * Update performance-warnings.md * Update performance-warnings.md * Update index.md * Update docs/fundamentals/code-analysis/quality-rules/ca1844.md Co-authored-by: Youssef Victor <youssefvictor00@gmail.com> * Update docs/fundamentals/code-analysis/quality-rules/ca1844.md Co-authored-by: Youssef Victor <youssefvictor00@gmail.com> * Update docs/fundamentals/code-analysis/quality-rules/ca1844.md Co-authored-by: Youssef Victor <youssefvictor00@gmail.com> * Apply suggestions from code review Co-authored-by: Genevieve Warren <24882762+gewarren@users.noreply.github.com> Co-authored-by: Youssef Victor <youssefvictor00@gmail.com> Co-authored-by: Genevieve Warren <24882762+gewarren@users.noreply.github.com>
Summary
Add docs for CA1844: Override Stream ReadAsync/WriteAsync Analyzer
Tracking issue
Quick question: when it comes to providing sample code, is there a limit to how big it should be? In this case, do you want me to provide an entire
Stream
subclass that the user can copy into their editor and compile immediately? I'm more than happy to do that, however it would result in a large amount of boiler-plate code that has nothing to do with the analyzer. Would it be better to just include sample methods without an entire stream class?