-
Notifications
You must be signed in to change notification settings - Fork 469
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
Add string.Format / StringBuilder.AppendFormat CompositeFormat analyzer #6675
Conversation
66c5085
to
0b7952e
Compare
src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/Performance/UseCompositeFormat.cs
Outdated
Show resolved
Hide resolved
src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/Performance/UseCompositeFormat.cs
Show resolved
Hide resolved
src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/Performance/UseCompositeFormat.cs
Outdated
Show resolved
Hide resolved
src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/Performance/UseCompositeFormat.cs
Show resolved
Hide resolved
JFYI: got a conflicts |
a495373
to
116022b
Compare
@buyaa-n, feedback and conflicts addressed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Build still failing because of generated files, seems need to run msbuild /t:pack
once more:
Missing entry in D:\a\_work\1\s\src\NetAnalyzers\RulesMissingDocumentation.md
CA1863 | <[https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1863>](https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1863%3E) | Use 'CompositeFormat' |
One or more auto-generated documentation files were either edited manually, or not updated. Please revert changes made to the following files (if manually edited) and run `msbuild /t:pack` at the root of the repo to automatically update them:
Otherwise LGTM, thank you!
fe0d27a
to
86308ae
Compare
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #6675 +/- ##
==========================================
- Coverage 96.36% 96.36% -0.01%
==========================================
Files 1392 1394 +2
Lines 324270 324631 +361
Branches 10621 10644 +23
==========================================
+ Hits 312497 312836 +339
- Misses 9225 9239 +14
- Partials 2548 2556 +8 |
Contributes to dotnet/runtime#85525
This PR provides an analyzer. It still warrants a fixer.