Skip to content

Commit 51e1506

Browse files
authored
Bump NUnit.Analyzers from 4.10.0 to 4.11.2 (#984)
[//]: # (dependabot-start) ⚠️ **Dependabot is rebasing this PR** ⚠️ Rebasing might not happen immediately, so don't worry if this takes some time. Note: if you make any changes to this PR yourself, they will take precedence over the rebase. --- [//]: # (dependabot-end) Updated [NUnit.Analyzers](https://github.com/nunit/nunit.analyzers) from 4.10.0 to 4.11.2. <details> <summary>Release notes</summary> _Sourced from [NUnit.Analyzers's releases](https://github.com/nunit/nunit.analyzers/releases)._ ## 4.11.2 NUnit Analyzers 4.11.2 - November 2, 2025 This release of the NUnit Analyzers fixes a problem in the `NUnit2057` analyzer for unnecessary use of lambda expressions. The release also extends `NUnit2021` so that it can determining if `Is.NaN` or `Is.Not.NaN` constraints are used on incompatible types. The release contains contributions from the following users (in alphabetical order): * @​MaceWindu * @​manfred-brands * @​stevenaw Issues Resolved Features and Enhancements * #​929 Alert when using Is.NaN or Is.Not.NaN on an incompatible type Bugs * #​945 [NUnit2057] Reported for Throws assert ## 4.11.1 NUnit Analyzers 4.11.1 - October 30, 2025 This release of the NUnit Analyzers fixes a regression related to the analysis of nullable enum parameters in `NUnit1001` and `NUnit1031`. The release also contains a new analyzer and codefix for unnecessary usage of lambda expressions in asserts. The release contains contributions from the following users (in alphabetical order): * @​MaceWindu * @​maksim-sovkov * @​manfred-brands Issues Resolved Features and Enhancements * #​927 Add new rule for unnecessary use of lambda expressions Bugs * #​939 NUnit1001 - false positive for arguments with nullable enum parameters * #​938 [NUnit1031] False positive for nullable structs ## 4.11.0 NUnit Analyzers 4.11 - October 28, 2025 This release of the NUnit Analyzers includes improvements and fixes related to `IDisposable` handling and initialization in `SetUp` and `OneTimeSetUp` methods. It also introduces the ability to configure additional methods that should be treated as `SetUp` and `TearDown` methods by the analyzers. This can be done in the `.editorconfig`, and there are four configurations for this: * `dotnet_diagnostic.NUnit.additional_setup_methods` * `dotnet_diagnostic.NUnit.additional_teardown_methods` * `dotnet_diagnostic.NUnit.additional_one_time_setup_methods` * `dotnet_diagnostic.NUnit.additional_one_time_teardown_methods` Each configuration accepts a list of method names, separated by commas, semicolons, or spaces. For example: ```ini dotnet_diagnostic.NUnit.additional_setup_methods = CustomSetup, MyInit ``` As in recent releases, a major part of this work was contributed by @​manfred-brands. The release contains contributions from the following users (in alphabetical order): * @​AlisonAMorrison * @​BodrickLight * @​cbersch * @​manfred-brands * @​mikkelbu * @​PiotrKlecha * @​sbe-schleupen Issues Resolved Features and Enhancements * #​921 NUnit1032 - disposals in overridden methods not detected * #​919 NUnit1032/NUnit3002 - local functions not analyzed * #​918 NUnit2045 - false positive for inline usings * #​911 NUnit3002 doesn't recognize the using statement. * #​910 using declarations not recognized by NUnit2045 Bugs * #​922 NUnit1001 - false positive for arguments with generic parameters * #​914 Wrong position of NUnit1001 diagnostic for TestCase with four parameters or more Tooling, Process, and Documentation * #​926 chore: Bump NUnit3TestAdapter * #​908 chore: bump version * #​885 Bump to NUnit version 4.4 when this is released Commits viewable in [compare view](nunit/nunit.analyzers@4.10.0...4.11.2). </details> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=NUnit.Analyzers&package-manager=nuget&previous-version=4.10.0&new-version=4.11.2)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details>
2 parents 26ada04 + 80f0858 commit 51e1506

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

RefreshTests.GameServer/RefreshTests.GameServer.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.0.0" />
1717
<PackageReference Include="NUnit" Version="4.4.0" />
1818
<PackageReference Include="NUnit3TestAdapter" Version="5.2.0" />
19-
<PackageReference Include="NUnit.Analyzers" Version="4.10.0">
19+
<PackageReference Include="NUnit.Analyzers" Version="4.11.2">
2020
<PrivateAssets>all</PrivateAssets>
2121
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
2222
</PackageReference>

0 commit comments

Comments
 (0)