Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bump NUnit.Analyzers from 4.2.0 to 4.3.0 (#637)
Bumps [NUnit.Analyzers](https://github.com/nunit/nunit.analyzers) from 4.2.0 to 4.3.0. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/nunit/nunit.analyzers/releases">NUnit.Analyzers's releases</a>.</em></p> <blockquote> <p>NUnit Analyzers 4.3 - August 9, 2024</p> <p>This release of the NUnit Analyzers contains some bug fixes to existing analyzers and code fixes - among other improvements to trivia when using the code fix of NUnit2049.</p> <p>For new features we now warn against using <code>TestContext.Write</code> as this will be obsolete in NUnit at some point; NUnit1001 now recognises and check generic TestCase attributes; and we have added a new analyzer and code fix for simplifying usages of <code>ValuesAttribute</code>.</p> <p>The release contains contributions from the following users (in alphabetical order):</p> <ul> <li><a href="https://github.com/andrewimcclement"><code>@andrewimcclement</code></a></li> <li><a href="https://github.com/Bartleby2718"><code>@Bartleby2718</code></a></li> <li><a href="https://github.com/DrPepperBianco"><code>@DrPepperBianco</code></a></li> <li><a href="https://github.com/KaiBNET"><code>@KaiBNET</code></a></li> <li><a href="https://github.com/maettu-this"><code>@maettu-this</code></a></li> <li><a href="https://github.com/manfred-brands"><code>@manfred-brands</code></a></li> <li><a href="https://github.com/mikkelbu"><code>@mikkelbu</code></a></li> <li><a href="https://github.com/RenderMichael"><code>@RenderMichael</code></a></li> <li><a href="https://github.com/SeanKilleen"><code>@SeanKilleen</code></a></li> <li><a href="https://github.com/trampster"><code>@trampster</code></a></li> </ul> <p>Issues Resolved</p> <p>Features and Enhancements</p> <ul> <li><a href="https://redirect.github.com/nunit/nunit.analyzers/issues/770">#770</a> Add rule to detect calls to TestContext.Write methods and CodeFix to replace usages with Out.Write</li> <li><a href="https://redirect.github.com/nunit/nunit.analyzers/issues/767">#767</a> Augment NUnit1001 to recognized and check generic TestCase attributes</li> <li><a href="https://redirect.github.com/nunit/nunit.analyzers/issues/755">#755</a> New diagnostic: The Values attribute can be simplified.</li> </ul> <p>Bugs</p> <ul> <li><a href="https://redirect.github.com/nunit/nunit.analyzers/issues/766">#766</a> Error when TearDown method is defined in partial test classes - Syntax node is not within syntax tree</li> <li><a href="https://redirect.github.com/nunit/nunit.analyzers/issues/743">#743</a> NUnit1032 (missing Dispose), if dispose is wrapped in "(… as IDisposable)?.Dispose()"</li> <li><a href="https://redirect.github.com/nunit/nunit.analyzers/issues/739">#739</a> Null suppression does not work when Assert is fully qualified</li> <li><a href="https://redirect.github.com/nunit/nunit.analyzers/issues/713">#713</a> Code fix for NUnit2049 places the comma at a wrong place and messes up indentation bug</li> </ul> <p>Tooling, Process, and Documentation</p> <ul> <li><a href="https://redirect.github.com/nunit/nunit.analyzers/issues/764">#764</a> Update the solution file</li> <li><a href="https://redirect.github.com/nunit/nunit.analyzers/issues/761">#761</a> Update nunit.analyzers.nuspec to specify that NUnit.Analyzers v4 is intended to be used with NUnit 4.</li> <li><a href="https://redirect.github.com/nunit/nunit.analyzers/issues/756">#756</a> error NUnit1032 is incorrect when InstancePerTestCase and constructor is used to initialize IDisposible</li> <li><a href="https://redirect.github.com/nunit/nunit.analyzers/issues/741">#741</a> chore(deps): Bump Microsoft.NET.Test.Sdk from 17.9.0 to 17.10.0 in /src</li> <li><a href="https://redirect.github.com/nunit/nunit.analyzers/issues/737">#737</a> Update NUnit2013.md to fix code block</li> <li><a href="https://redirect.github.com/nunit/nunit.analyzers/issues/736">#736</a> chore: bump version</li> <li><a href="https://redirect.github.com/nunit/nunit.analyzers/issues/734">#734</a> Why dropping composite message formatting support also for Assert.Pass/Fail/... where there are no actual and constraint parameters?</li> </ul> </blockquote> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/nunit/nunit.analyzers/blob/master/CHANGES.md">NUnit.Analyzers's changelog</a>.</em></p> <blockquote> <p># NUnit Analyzers 4.3 - August 9, 2024</p> <p>This release of the NUnit Analyzers contains some bug fixes to existing analyzers and code fixes - among other improvements to trivia when using the code fix of NUnit2049.</p> <p>For new features we now warn against using <code>TestContext.Write</code> as this will be obsolete in NUnit at some point; NUnit1001 now recognises and check generic TestCase attributes; and we have added a new analyzer and code fix for simplifying usages of <code>ValuesAttribute</code>.</p> <p>The release contains contributions from the following users (in alphabetical order):</p> <ul> <li><a href="https://github.com/andrewimcclement"><code>@andrewimcclement</code></a></li> <li><a href="https://github.com/Bartleby2718"><code>@Bartleby2718</code></a></li> <li><a href="https://github.com/DrPepperBianco"><code>@DrPepperBianco</code></a></li> <li><a href="https://github.com/KaiBNET"><code>@KaiBNET</code></a></li> <li><a href="https://github.com/maettu-this"><code>@maettu-this</code></a></li> <li><a href="https://github.com/manfred-brands"><code>@manfred-brands</code></a></li> <li><a href="https://github.com/mikkelbu"><code>@mikkelbu</code></a></li> <li><a href="https://github.com/RenderMichael"><code>@RenderMichael</code></a></li> <li><a href="https://github.com/SeanKilleen"><code>@SeanKilleen</code></a></li> <li><a href="https://github.com/trampster"><code>@trampster</code></a></li> </ul> <p>Issues Resolved</p> <p>Features and Enhancements</p> <ul> <li><a href="https://redirect.github.com/nunit/nunit.analyzers/issues/770">#770</a> Add rule to detect calls to TestContext.Write methods and CodeFix to replace usages with Out.Write</li> <li><a href="https://redirect.github.com/nunit/nunit.analyzers/issues/767">#767</a> Augment NUnit1001 to recognized and check generic TestCase attributes</li> <li><a href="https://redirect.github.com/nunit/nunit.analyzers/issues/755">#755</a> New diagnostic: The Values attribute can be simplified.</li> </ul> <p>Bugs</p> <ul> <li><a href="https://redirect.github.com/nunit/nunit.analyzers/issues/766">#766</a> Error when TearDown method is defined in partial test classes - Syntax node is not within syntax tree</li> <li><a href="https://redirect.github.com/nunit/nunit.analyzers/issues/743">#743</a> NUnit1032 (missing Dispose), if dispose is wrapped in "(… as IDisposable)?.Dispose()"</li> <li><a href="https://redirect.github.com/nunit/nunit.analyzers/issues/739">#739</a> Null suppression does not work when Assert is fully qualified</li> <li><a href="https://redirect.github.com/nunit/nunit.analyzers/issues/713">#713</a> Code fix for NUnit2049 places the comma at a wrong place and messes up indentation bug</li> </ul> <p>Tooling, Process, and Documentation</p> <ul> <li><a href="https://redirect.github.com/nunit/nunit.analyzers/issues/764">#764</a> Update the solution file</li> <li><a href="https://redirect.github.com/nunit/nunit.analyzers/issues/761">#761</a> Update nunit.analyzers.nuspec to specify that NUnit.Analyzers v4 is intended to be used with NUnit 4.</li> <li><a href="https://redirect.github.com/nunit/nunit.analyzers/issues/756">#756</a> error NUnit1032 is incorrect when InstancePerTestCase and constructor is used to initialize IDisposible</li> <li><a href="https://redirect.github.com/nunit/nunit.analyzers/issues/741">#741</a> chore(deps): Bump Microsoft.NET.Test.Sdk from 17.9.0 to 17.10.0 in /src</li> <li><a href="https://redirect.github.com/nunit/nunit.analyzers/issues/737">#737</a> Update NUnit2013.md to fix code block</li> <li><a href="https://redirect.github.com/nunit/nunit.analyzers/issues/736">#736</a> chore: bump version</li> <li><a href="https://redirect.github.com/nunit/nunit.analyzers/issues/734">#734</a> Why dropping composite message formatting support also for Assert.Pass/Fail/... where there are no actual and constraint parameters?</li> </ul> <h1>NUnit Analyzers 4.2 - April 24, 2024</h1> <p>This release of the Analyzers extends NUnit2050 to also cover <code>Assume</code> and Nunit1032 to consider dispose of a type having explicit interface implementation. Furthermore, named parameters are now handled correctly codefixes for classical asserts, and NUnit2010 improves the logic for determining <code>Equals</code> methods.</p> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/nunit/nunit.analyzers/commit/52a0670ad7adc21dc2fb0b8fdaf6aa60c83ccab4"><code>52a0670</code></a> Merge pull request <a href="https://redirect.github.com/nunit/nunit.analyzers/issues/775">#775</a> from nunit/release4.3</li> <li><a href="https://github.com/nunit/nunit.analyzers/commit/cf272705cdb59e20bf79d549ea1a80de8cafb213"><code>cf27270</code></a> chore: Update release notes</li> <li><a href="https://github.com/nunit/nunit.analyzers/commit/b59c56447a9ee3402106bbde03b42e5b44a87828"><code>b59c564</code></a> Merge pull request <a href="https://redirect.github.com/nunit/nunit.analyzers/issues/772">#772</a> from manfred-brands/Issue770_TestContext.Write</li> <li><a href="https://github.com/nunit/nunit.analyzers/commit/bf26b78e0c55eaa7a6d22c1b84a09579ee92e488"><code>bf26b78</code></a> Fix linting error</li> <li><a href="https://github.com/nunit/nunit.analyzers/commit/9501ab848c8ec060fa82d97c2abeb24ef7c71382"><code>9501ab8</code></a> Code review changes</li> <li><a href="https://github.com/nunit/nunit.analyzers/commit/a00035e20407661c5852d17219f5bd1d67ec47e1"><code>a00035e</code></a> Merge pull request <a href="https://redirect.github.com/nunit/nunit.analyzers/issues/773">#773</a> from manfred-brands/Issue767_GenericTestCase</li> <li><a href="https://github.com/nunit/nunit.analyzers/commit/ab3d365f21c72ae88af477ebcb60bf4bf1c88291"><code>ab3d365</code></a> Merge pull request <a href="https://redirect.github.com/nunit/nunit.analyzers/issues/754">#754</a> from Bartleby2718/713-NUnit2049-indentation</li> <li><a href="https://github.com/nunit/nunit.analyzers/commit/48bf08fe727585776669c6e7bc894b5c4c94e37d"><code>48bf08f</code></a> Merge pull request <a href="https://redirect.github.com/nunit/nunit.analyzers/issues/774">#774</a> from manfred-brands/Issue766_PartialTestClasses</li> <li><a href="https://github.com/nunit/nunit.analyzers/commit/7c962001c492e26feb6ecf4047818eeda11e74b0"><code>7c96200</code></a> Field is only needed for NUNIT4 tests</li> <li><a href="https://github.com/nunit/nunit.analyzers/commit/f017e6dae59e7a24ffb13e1a8c78088c63211775"><code>f017e6d</code></a> C#11 is not available for .NET6.0</li> <li>Additional commits viewable in <a href="https://github.com/nunit/nunit.analyzers/compare/4.2.0...4.3.0">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=NUnit.Analyzers&package-manager=nuget&previous-version=4.2.0&new-version=4.3.0)](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>
- Loading branch information