SA1642: Language ignored in .NET 6.0 SDK RC2
See original GitHub issueIn .NET 6.0 SDK RC2, the language is not being taken into account when reporting SA1642
The language is setup correctly in stylecop.json
{
"settings": {
"documentationRules": {
"documentationCulture": "en-GB"
}
}
}
And the constructor comment uses Initialises
rather than Initializes
/// <summary>
/// Initialises a new instance of the <see cref="Class1"/> class.
/// </summary>
Expected:
No warning is issued
Actual:
SA1642 warning is issued
Remarks:
This seemed to work on preview versions of .NET 6.0 SDK, and continues to work through Visual Studio 2022.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:6
- Comments:6 (2 by maintainers)
Top Results From Across the Web
NET 6 StyleCop.Analyzers ignores "documentationCulture"
Straightforward solution. It seems to be a known StyleCop.Analyzers issue: GitHub issue: SA1642: Language ignored in .NET 6.0 SDK RC2 ...
Read more >Handle satellite assemblies in analyzer loader #56708
@sharwell sharwell mentioned this issue on Oct 26, 2021. SA1642: Language ignored in .NET 6.0 SDK RC2 DotNetAnalyzers/StyleCopAnalyzers#3397.
Read more >StyleCop SA1642: Not respecting language configuration
StyleCop SA1642: Not respecting language configuration. 5. Relates to 2. Relates to 2 issues (2 unresolved). RIDER-44408 Rider ignores changes stylecop.json.
Read more >Download .NET 6.0 (Linux, macOS, and Windows)
NET 6.0 downloads for Linux, macOS, and Windows. ... Build apps - SDK ... NET Desktop Runtime 6.0.21; Language support: C# 10.0: F#...
Read more >.NET 6.0 - default gitignore file? : r/dotnet
Hello,. I started a project in .NET 6 just to get acquainted with new tech. I am using gitkraken on a repo hosted...
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
Also in 17.5.5
@sharwell, is there anything that could be done here? For example, are the satellite assemblies required or could the resource strings be embedded in the main assembly somehow?