Skip to content
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

Merged
merged 2 commits into from
Jun 28, 2023

Conversation

stephentoub
Copy link
Member

Contributes to dotnet/runtime#85525
This PR provides an analyzer. It still warrants a fixer.

@buyaa-n
Copy link
Contributor

buyaa-n commented Jun 27, 2023

JFYI: got a conflicts

@stephentoub stephentoub force-pushed the compositeformatanalyzer branch from a495373 to 116022b Compare June 28, 2023 04:01
@stephentoub
Copy link
Member Author

@buyaa-n, feedback and conflicts addressed.

Copy link
Contributor

@buyaa-n buyaa-n left a 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!

@stephentoub stephentoub force-pushed the compositeformatanalyzer branch from fe0d27a to 86308ae Compare June 28, 2023 15:39
@codecov
Copy link

codecov bot commented Jun 28, 2023

Codecov Report

Merging #6675 (86308ae) into main (0bcd02b) will decrease coverage by 0.01%.
The diff coverage is 93.37%.

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     

@stephentoub stephentoub merged commit 1951bd1 into dotnet:main Jun 28, 2023
@stephentoub stephentoub deleted the compositeformatanalyzer branch June 28, 2023 16:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants