question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

SA1642: Language ignored in .NET 6.0 SDK RC2

See original GitHub issue

In .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:open
  • Created 2 years ago
  • Reactions:6
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
DEVGITKZVTHcommented, May 10, 2023

Also in 17.5.5

0reactions
bjornhellandercommented, May 17, 2023

@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?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found