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

Fix IDE0002 in LogTests.cs #12265

Merged
merged 1 commit into from
Oct 3, 2024

Conversation

paul1956
Copy link
Contributor

@paul1956 paul1956 commented Oct 3, 2024

Fixes IDE0002 in LogTests.cs

Proposed changes

  • Fix IDE0002 in LogTests.cs

Customer Impact

  • Development Only

Regression?

  • No, it was missed when global usings was added 4/21/2023

Risk

  • None
Microsoft Reviewers: Open in CodeFlow

@paul1956 paul1956 requested a review from a team as a code owner October 3, 2024 09:14
@paul1956 paul1956 changed the title Fix IDE0002 in LogTests.cs Fix IDE0002 in LogTests.cs from simplifying PR #11863 Oct 3, 2024
Copy link

codecov bot commented Oct 3, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 75.43737%. Comparing base (5bef748) to head (2beaa12).
Report is 4 commits behind head on main.

Additional details and impacted files
@@                 Coverage Diff                 @@
##                main      #12265         +/-   ##
===================================================
+ Coverage   75.43567%   75.43737%   +0.00169%     
===================================================
  Files           3103        3103                 
  Lines         634314      634301         -13     
  Branches       46876       46875          -1     
===================================================
+ Hits          478499      478500          +1     
+ Misses        152390      152377         -13     
+ Partials        3425        3424          -1     
Flag Coverage Δ
Debug 75.43737% <100.00000%> (+0.00169%) ⬆️
integration 17.98395% <ø> (-0.00078%) ⬇️
production 48.82537% <ø> (+0.00312%) ⬆️
test 97.02494% <100.00000%> (-0.00002%) ⬇️
unit 45.85659% <ø> (+0.00301%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Copy link
Member

@lonitra lonitra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@lonitra lonitra changed the title Fix IDE0002 in LogTests.cs from simplifying PR #11863 Fix IDE0002 in LogTests.cs Oct 3, 2024
@lonitra lonitra merged commit caf4fb9 into dotnet:main Oct 3, 2024
8 checks passed
@dotnet-policy-service dotnet-policy-service bot added this to the 10.0 Preview1 milestone Oct 3, 2024
@paul1956 paul1956 deleted the Fix-Error-IDE0002-in-LogTests.cs branch October 4, 2024 06:21
paul1956 added a commit to paul1956/winforms that referenced this pull request Oct 4, 2024
Fix IDE0002 in LogTests.cs
lonitra added a commit that referenced this pull request Oct 11, 2024
…ifying PR #11863 (#12261)

* No code Chnages just formatting

* Add tests for SignleInstanceHelper from #11863

* Moved to SDK RC2 (#12254)

* Moved to SDK RC2 to get the same build errors in VS and CLI build and be able to fix them.

Before this change the IntPreview version of VS was correctly complaining about a redundant cast(IDE0004) in ToolStrip.cs
    g.DrawLines(SystemPens.ControlText, (ReadOnlySpan<Point>)
        [
            new(verticalBeamStart, _lastInsertionMarkRect.Y), new(verticalBeamStart, _lastInsertionMarkRect.Bottom - 1),
            new(verticalBeamStart + 1, _lastInsertionMarkRect.Y), new(verticalBeamStart + 1, _lastInsertionMarkRect.Bottom - 1)
        ]);

But the CLI build required this cast.

After the upgrade to RC2, IDE0300 - Collection initialization can be simplified - became more robust and required code fixes that use collection expressions applied to the solution.

* Adds XML Comments to FileSystemProxy and SpecialDirectoriesProxy (#12141)

* Add XML Comments related to FileSystemProxy which includes SpecialDirectoriesProxy

* Fix some types

* Add some language keywords

* Update src/Microsoft.VisualBasic.Forms/src/Microsoft/VisualBasic/MyServices/FileSystemProxy.vb

Co-authored-by: Loni Tra <[email protected]>

* Update src/Microsoft.VisualBasic.Forms/src/Microsoft/VisualBasic/MyServices/FileSystemProxy.vb

Co-authored-by: Loni Tra <[email protected]>

* Update src/Microsoft.VisualBasic.Forms/src/Microsoft/VisualBasic/MyServices/FileSystemProxy.vb

Co-authored-by: Loni Tra <[email protected]>

* Update src/Microsoft.VisualBasic.Forms/src/Microsoft/VisualBasic/MyServices/FileSystemProxy.vb

Co-authored-by: Loni Tra <[email protected]>

* PR feedback

* Update all XML comments

* Fix Typo in FileSystemProxy that caused build to fail.

* Update XML Coments

* Update src/Microsoft.VisualBasic.Forms/src/Microsoft/VisualBasic/MyServices/SpecialDirectoriesProxy.vb

Co-authored-by: Tanya Solyanik <[email protected]>

* Update src/Microsoft.VisualBasic.Forms/src/Microsoft/VisualBasic/MyServices/SpecialDirectoriesProxy.vb

Co-authored-by: Tanya Solyanik <[email protected]>

* Redo all the comments in SpecialDirectoriesProxy

* Add cref per PR feedback and changed type to Namespace

* PR Feedback to add see cref's

---------

Co-authored-by: Loni Tra <[email protected]>
Co-authored-by: Tanya Solyanik <[email protected]>

* [main] Update dependencies from dotnet/runtime (#12266)

[main] Update dependencies from dotnet/runtime

* Fix IDE0002 in LogTests.cs (#12265)

Fix IDE0002 in LogTests.cs

* [main] Update dependencies from dotnet/arcade (#12271)

[main] Update dependencies from dotnet/arcade

* [main] Update dependencies from dotnet/runtime (#12272)

[main] Update dependencies from dotnet/runtime

* Improve code coverage for FileLogTraceListener from simplifying PR #11863  (#12264)

* Improve code coverage for FileLogTraceListener

* Update src/Microsoft.VisualBasic/tests/UnitTests/Microsoft/VisualBasic/Logging/FileLogTraceListenerTests.cs

Thanks I had no idea about boolData

Co-authored-by: Loni Tra <[email protected]>

---------

Co-authored-by: Loni Tra <[email protected]>

* Switch default feed to use wildcards only (#12268)

* Switch default feed to full wildcard

* Add other wildcards back

* Move local closer to usage

* PR Feedback

* Address PR Feedback

* PR Feedback

* PR Feedback inline private Sub, reuse commandLine

---------

Co-authored-by: Tanya Solyanik <[email protected]>
Co-authored-by: Loni Tra <[email protected]>
Co-authored-by: dotnet-maestro[bot] <42748379+dotnet-maestro[bot]@users.noreply.github.com>
Co-authored-by: Rich Lander <[email protected]>
@github-actions github-actions bot locked and limited conversation to collaborators Nov 3, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants