Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Enable NuGet Audit and Fix Errors #12120

Merged
merged 5 commits into from
Sep 12, 2024
Merged

Enable NuGet Audit and Fix Errors #12120

merged 5 commits into from
Sep 12, 2024

Conversation

lonitra
Copy link
Member

@lonitra lonitra commented Sep 11, 2024

Related: dotnet/arcade#15019

Microsoft Reviewers: Open in CodeFlow

@lonitra lonitra requested a review from ericstj September 11, 2024 18:06
@lonitra lonitra requested a review from a team as a code owner September 11, 2024 18:06
@lonitra lonitra requested a review from ViktorHofer September 11, 2024 18:07
</PropertyGroup>
<!-- Additional unchanging dependencies -->
<PropertyGroup>
<MicrosoftTargetingPackNETFrameworkv472PackageVersion>1.0.0</MicrosoftTargetingPackNETFrameworkv472PackageVersion>
<MicrosoftWindowsDesktopAppRefv30PackageVersion>3.0.0</MicrosoftWindowsDesktopAppRefv30PackageVersion>
<NewtonsoftJsonVersion>13.0.1</NewtonsoftJsonVersion>
<VsWherePackageVersion>2.6.7</VsWherePackageVersion>
<!-- Pin transitive dependency to avoid vulnerable 8.0.0 version. -->
<SystemFormatsAsn1PackageVersion>8.0.1</SystemFormatsAsn1PackageVersion>
Copy link
Member Author

Choose a reason for hiding this comment

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

Created issue to track unpinning this #12121

[WinFormsFact]
public void Dispose_Invoke_CallsDisposeDisposing()
{
Mock<ApplicationContext> mockContext = new(MockBehavior.Strict);
mockContext
Copy link
Member Author

@lonitra lonitra Sep 11, 2024

Choose a reason for hiding this comment

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

With the upgrade to latest moq version, I get errors with moq complaining that there is no protected Dispose(bool) method even though there is. I have opted to avoiding mocking a test object and creating a real test object instead or just removing the Dispose setup if it doesn't look to be necessary.

Copy link

codecov bot commented Sep 11, 2024

Codecov Report

Attention: Patch coverage is 95.12195% with 2 lines in your changes missing coverage. Please review.

Project coverage is 75.22675%. Comparing base (eae09f9) to head (e963b90).
Report is 15 commits behind head on main.

Additional details and impacted files
@@                 Coverage Diff                 @@
##                main      #12120         +/-   ##
===================================================
+ Coverage   75.21471%   75.22675%   +0.01203%     
===================================================
  Files           3076        3079          +3     
  Lines         633053      633195        +142     
  Branches       46814       46817          +3     
===================================================
+ Hits          476149      476332        +183     
+ Misses        153517      153465         -52     
- Partials        3387        3398         +11     
Flag Coverage Δ
Debug 75.22675% <95.12195%> (+0.01203%) ⬆️
integration 18.01478% <ø> (-0.00662%) ⬇️
production 48.51558% <ø> (+0.02125%) ⬆️
test 97.02329% <95.12195%> (+0.00007%) ⬆️
unit 45.50033% <ø> (+0.03284%) ⬆️

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

@lonitra lonitra merged commit ee9bd2f into dotnet:main Sep 12, 2024
8 checks passed
@lonitra lonitra deleted the nugetaudit branch September 12, 2024 20:41
@dotnet-policy-service dotnet-policy-service bot added this to the 10.0 Preview1 milestone Sep 12, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Oct 14, 2024
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants