Skip to content

Update dependency NUnit.Analyzers to 4.13.0#1154

Open
renovate[bot] wants to merge 1 commit intodev8from
renovate/nunit.analyzers-4.x
Open

Update dependency NUnit.Analyzers to 4.13.0#1154
renovate[bot] wants to merge 1 commit intodev8from
renovate/nunit.analyzers-4.x

Conversation

@renovate
Copy link
Copy Markdown
Contributor

@renovate renovate Bot commented Jun 11, 2025

This PR contains the following updates:

Package Change Age Confidence
NUnit.Analyzers 4.8.14.13.0 age confidence

Release Notes

nunit/nunit.analyzers (NUnit.Analyzers)

v4.13.0: NUnit Analyzers 4.13 - May 2, 2026

Compare Source

NUnit Analyzers 4.13 - May 2, 2026

This release of the NUnit Analyzers updates analyzer handling for the NUnit 4.6 API change that replaces
ActualValueDelegate<> with Func<> - see nunit/nunit#4824 for more information.
Analyzers now also consider the return type of Func<> in assertions. The release also includes one bug fix and
some dependency updates.

The release contains contributions from the following users (in alphabetical order):

Issues Resolved

Features and Enhancements

  • #​982 Recognized Func<T> return values

Bugs

  • #​968 Whitespace issue in Does.Contain fixer when assert spans multiple lines

Tooling, Process, and Documentation

  • #​985 chore: Bump year to 2026 in copyrights
  • #​978 Bump cake.tool from 6.0.0 to 6.1.0
  • #​976 chore: Correct documentation
  • #​975 chore: bump version
  • #​956 Bump cake.tool from 4.0.0 to 6.0.0

v4.12.0: NUnit Analyzers 4.12 - March 3, 2026

Compare Source

NUnit Analyzers 4.12 - March 3, 2026

This release of the NUnit Analyzers improves NUnit1029 to account for TestCaseSource
support for params and optional arguments. It also introduces a new analyzer for incorrect
usage of Is.Not.Null.Or.Empty, fixes regressions in NUnit2005 and NUnit2055, and updates
NUnit package dependencies.

The release contains contributions from the following users (in alphabetical order):

Issues Resolved

Features and Enhancements

  • #​957 Relax NUnit1029 for TestCaseSource where method accepts a single "params" array
  • #​189 Warning when Is.Not.Null.Or.Empty used

Bugs

  • #​953 Code fix for NUnit2055 can generate invalid code for classic asserts
  • #​952 Code fix for NUnit2005 tries to use Is.Empty constraint on incompatible types.

Tooling, Process, and Documentation

  • #​973 chore: Bump NUnit version
  • #​970 chore: Bump NUnit to version 4.5.0
  • #​967 Fix note about works with Unity Test Framework
  • #​937 chore: bump version

v4.11.2: NUnit Analyzers 4.11.2 - November 2, 2025

Compare Source

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):

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

v4.11.1

Compare Source

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):

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

v4.11.0: NUnit Analyzers 4.11 - October 28, 2025

Compare Source

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:

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):

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

v4.10.0: NUnit Analyzers 4.10 - August 9, 2025

Compare Source

NUnit Analyzers 4.10 - August 9, 2025

This release of the NUnit Analyzers contains some minor improvements to NUnit2050, NUnit2056, and NUnit2007 as well
as some improvements to existing tests. Once again, @​manfred-brands was responsible for the majority of the work.

The release contains contributions from the following users (in alphabetical order):

Issues Resolved

Bugs

  • #​901 False positive on NUnit2050
  • #​899 NUnit2056 analyzer's code fix removes comments and empty lines above it.
  • #​896 NUnit2007 shouldn't trigger for generic types e.g. typeof(T)

Tooling, Process, and Documentation

  • #​905 NUnit4.4 alpha -> beta changes
  • #​897 chore: Correct typo in NUnit2045.md
  • #​894 Improve tests by adding ↓ to tests were it is missing in the source
  • #​887 chore: bump version

v4.9.2

Compare Source

This release of the NUnit Analyzers extends the NUnit3001 nullability suppressor
to also work in the context of Assert.EnterMultipleScope and other using statements.

The release contains contributions from the following users (in alphabetical order):

Issues Resolved

Features and Enhancements

  • #​892 Assert.EnterMultipleScope not detecting nullability properly

v4.9.1

Compare Source

This release of the NUnit Analyzers fixes a problem with the code-fix for translating
Assert.Multiple/Assert.MultipleAsync into the new Assert.EnterMultipleScope format
when the test method already is asynchronous and have a return type different from Task.

The release contains contributions from the following users (in alphabetical order):

Issues Resolved

Bugs

  • #​888 Assert.MultipleAsync -> EnterMultipleScope autofix produce invalid code

v4.9.0: NUnit Analyzers 4.9 - June 11, 2025

Compare Source

NUnit Analyzers 4.9 - June 11, 2025

This release of the NUnit Analyzers adds several new analyzers. For the RangeAttribute,
the analyzers now warn about potential issues at runtime.

It also introduces an analyzer and code fix for translating
Assert.Multiple/Assert.MultipleAsync into the new Assert.EnterMultipleScope format, as well
as for converting is T checks into Is.InstanceOf<T>() constraints.

For NUnit2021, the analyzer now respects UsingPropertiesComparer, including enhancements
that will be available in NUnit 4.4.

Finally, this release includes improvements to NUnit2007, NUnit2045, and NUnit4002.
See the list of resolved issues below for more details.

The release contains contributions from the following users (in alphabetical order):

Issues Resolved

Features and Enhancements

  • #​880 NUnit2007 could flag typeof() as a constant first parameter
  • #​866 When Assert.Multiple is found, should suggest to convert to Assert.EnterMultipleScope
  • #​865 NUnit 2045 suggest Assert.Multiple, but should suggest Assert.EnterMultipleScope
  • #​857 NUnit2021 Should not raise for UsingPropertiesComparer
  • #​765 Add Rule for converting is T into Is.InstanceOf()
  • #​89 Test the correct usage of the Range attribute

Bugs

  • #​879 NUnit4002 shouldn't trigger for T vs nullable<T> struct types

Tooling, Process, and Documentation


Configuration

📅 Schedule: (in timezone Asia/Shanghai)

  • Branch creation
    • "before 1am,before 5am,before 9am"
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Enabled.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate Bot force-pushed the renovate/nunit.analyzers-4.x branch from 346804a to 1eab5cd Compare June 12, 2025 23:16
@renovate renovate Bot changed the title Update dependency NUnit.Analyzers to 4.9.0 Update dependency NUnit.Analyzers to 4.9.1 Jun 12, 2025
@renovate renovate Bot force-pushed the renovate/nunit.analyzers-4.x branch from 1eab5cd to 80bf7b5 Compare June 17, 2025 19:08
@renovate renovate Bot changed the title Update dependency NUnit.Analyzers to 4.9.1 Update dependency NUnit.Analyzers to 4.9.2 Jun 17, 2025
@renovate renovate Bot force-pushed the renovate/nunit.analyzers-4.x branch from 80bf7b5 to cf5538f Compare August 9, 2025 12:32
@renovate renovate Bot changed the title Update dependency NUnit.Analyzers to 4.9.2 Update dependency NUnit.Analyzers to 4.10.0 Aug 9, 2025
@renovate renovate Bot force-pushed the renovate/nunit.analyzers-4.x branch from cf5538f to eb6686f Compare October 29, 2025 04:31
@renovate renovate Bot changed the title Update dependency NUnit.Analyzers to 4.10.0 Update dependency NUnit.Analyzers to 4.11.0 Oct 29, 2025
@renovate renovate Bot force-pushed the renovate/nunit.analyzers-4.x branch from eb6686f to a9867e6 Compare October 31, 2025 01:14
@renovate renovate Bot changed the title Update dependency NUnit.Analyzers to 4.11.0 Update dependency NUnit.Analyzers to 4.11.1 Oct 31, 2025
@renovate renovate Bot force-pushed the renovate/nunit.analyzers-4.x branch from a9867e6 to 2da4735 Compare November 2, 2025 13:34
@renovate renovate Bot changed the title Update dependency NUnit.Analyzers to 4.11.1 Update dependency NUnit.Analyzers to 4.11.2 Nov 2, 2025
@renovate renovate Bot force-pushed the renovate/nunit.analyzers-4.x branch from 2da4735 to d2e8e7f Compare January 30, 2026 09:45
@renovate renovate Bot force-pushed the renovate/nunit.analyzers-4.x branch from d2e8e7f to 3a042e0 Compare March 7, 2026 18:04
@renovate renovate Bot changed the title Update dependency NUnit.Analyzers to 4.11.2 Update dependency NUnit.Analyzers to 4.12.0 Mar 7, 2026
@renovate renovate Bot force-pushed the renovate/nunit.analyzers-4.x branch from 3a042e0 to d7a172c Compare May 2, 2026 17:33
@renovate renovate Bot changed the title Update dependency NUnit.Analyzers to 4.12.0 Update dependency NUnit.Analyzers to 4.13.0 May 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants