SA1629 code fix sometimes inserts periods just before last character
See original GitHub issueSA1629 will flag docs such as these as needing to end with a period:
/// <typeparam name="S">The service interface to retrieve</typeparam>
/// <param name="provider">The IServiceProvider implementation</param>
/// <returns>A reference to the service</returns>
The (bulk) code fix provider produced this:
/// <typeparam name="S">The service interface to retriev.e</typeparam>
/// <param name="provider">The IServiceProvider implementation.</param>
/// <returns>A reference to the servic.e</returns>
Note this doesn’t always repro. When I undo just a few lines to their period-less state and reapply the code fix, the period goes to the right place. It only happens when there are a massive number (possibly hundreds) of fixes applied in bulk.
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (7 by maintainers)
Top Results From Across the Web
SA1629 bug #2680 - DotNetAnalyzers/StyleCopAnalyzers
It also affects the code fix, as due to the wrong reporting location the period is inserted in the wrong spot.
Read more >StyleCopAnalyzers/documentation/SA1629.md at master
Cause. A section of the Xml header documentation for a C# element does not end with a period (also known as a full...
Read more >Irregular Periods (Abnormal Menstruation): Causes & ...
An irregular period is when your period comes early, late or not at all, or when the length of your menstrual cycle changes....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@AArnott In the last image (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/issues/2957#issuecomment-657241850), the code fix is correct. The
<code>
element designates a new paragraph. The equivalent inline element is<c>
. DotNetAnalyzers/DocumentationAnalyzers contains analyzers which should detect this case.In fact it can be in the middle of a paragraph!