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
C#8 simplified using to reduce nesting #8797
Conversation
Codecov Report
@@ Coverage Diff @@
## master #8797 +/- ##
==========================================
+ Coverage 56.03% 56.06% +0.03%
==========================================
Files 922 922
Lines 65944 65824 -120
Branches 12070 12070
==========================================
- Hits 36951 36904 -47
+ Misses 25985 25914 -71
+ Partials 3008 3006 -2
Flags with carried forward coverage won't be shown. Click here to find out more. |
I had started annotating the GitUI project. This is going to conflict pretty heavily. I hope to finish up that work this week. Was this an automated refactoring? It should be, as far as I know. If so, can we hold off on merging this and do it again after I get the GitUI null annotations in? |
I can rebase this and #8789 on your PR (and wait with further #8788 PRs) until you are done. #8789 is regex only (maybe a few manual touchups). |
Thanks @gerhardol. I'll try and finish up that PR this week. Turns out that annotating the GitUI assembly was quite challenging. |
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.
👍
@gerhardol just to say that I am still working on this. I'm down to 59 annotation errors in 8 files within the GitUI project. The last ones are tricky, but I'm getting there. There's been some very loose and wild use of null throughout the code. It's satisfying to map this all out as a first step towards tightening some of these usages up. |
Thanks, I assumed that, annotation is a big change. I will see when you are ready! |
e0df4df
to
93f2217
Compare
squashed comments and rebased after the GitUI annotations PR was merged. Some manual changes due to conflicts. Will squash the IntelliSense and manual commit at next update. |
93f2217
to
cd823e0
Compare
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.
Don't hold this up for #8878. It doesn't look like there'll be much in the way of conflicts. I will deal with any that arise 👍
Intellisense suggestions Some manual changes A few simplified object creations too
cd823e0
to
97a2b33
Compare
squashed and rebased, no further changes |
@msftbot merge in 24 hours |
Hello @gerhardol! Because you've given me some instructions on how to help merge this pull request, I'll be modifying my merge approach. Here's how I understand your requirements for merging this pull request:
If this doesn't seem right to you, you can tell me to cancel these instructions and use the auto-merge policy that has been configured for this repository. Try telling me "forget everything I just told you". |
Follow up to #8729
Proposed changes
Some using statements missed in #8729 applied (using Intellisense suggestions only, no manual changes)
The second commit makes manual changes, to also use simplified using also if return is not in the using (so scope is marginally expanded).
Test methodology
Manual
✒️ I contribute this code under The Developer Certificate of Origin.