dotnet / dotnet/docs

CA1305 doesn't document the `UICulture`-related descriptors

Open
#32,337 0 comments 0 reactions 0 assignees View on GitHub
dotnet-fundamentals/svc
Dominant language
No language data
Stars
4.8k
Forks
6.1k
Avg merge
19h 10m
Merged PRs (30d)
268

Description

CA1305 flags format calls with `[Current|Installed]UICulture`:

https://github.com/dotnet/roslyn-analyzers/blob/c2bc164fe991d87662dc5b6d3aa94bf276392241/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/Runtime/SpecifyIFormatProvider.cs#L58-L76

The motivation behind this isn't documented. Why this is wrong? Are there cases where suppression is the appropriate action?

https://github.com/dotnet/roslyn-analyzers/blob/c2bc164fe991d87662dc5b6d3aa94bf276392241/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/MicrosoftNetCoreAnalyzersResources.resx#L406

---
#### Document Details

⚠ *Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.*

* ID: ee726c26-f355-a0d8-9d7d-63d770e2a23c
* Version Independent ID: f8c1f8a7-0dcb-7e6d-0eaf-8acf31a65c42
* Content: [CA1305: Specify IFormatProvider (code analysis) - .NET](https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca1305)
* Content Source: [docs/fundamentals/code-analysis/quality-rules/ca1305.md](https://github.com/dotnet/docs/blob/main/docs/fundamentals/code-analysis/quality-rules/ca1305.md)
* Product: **dotnet-fundamentals**
* GitHub Login: @gewarren
* Microsoft Alias: **gewarren**

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.