Pryaxis / TShock

☕️⚡️TShock provides Terraria servers with server-side characters, anti-cheat, and community management tools.
GNU General Public License v3.0
2.42k stars 378 forks source link

Update dependency NUnit.Analyzers to 3.10.0 #2969

Open renovate[bot] opened 1 year ago

renovate[bot] commented 1 year ago

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
NUnit.Analyzers 3.5.0 -> 3.10.0 age adoption passing confidence

Release Notes

nunit/nunit.analyzers (NUnit.Analyzers) ### [`v3.10.0`](https://togithub.com/nunit/nunit.analyzers/releases/tag/3.10.0): NUnit Analyzers 3.10 (and 2.10) [Compare Source](https://togithub.com/nunit/nunit.analyzers/compare/3.9.0...3.10.0) NUnit Analyzers 3.10 (and 2.10) - November 27, 2023 This release adds a couple of improvements to the analyzers: - Check that users don't accidentally specify CallerArgumentExpression parameters - Relax analyzers for added support for IAsyncEnumerable on \*Source attributes These improvements extend the functionality in the beta that added support for NUnit 4 and for migrating to NUnit 4. Especially, the handling of the movement of classic asserts into a new namespace NUnit.Framework.Legacy and of the improved assert result messages - for more information see https://docs.nunit.org/articles/nunit/Towards-NUnit4.html. The analyzers can help updating the classic assert and fix the assert messages. The release contains contributions from the following users (in alphabetical order): - [@​manfred-brands](https://togithub.com/manfred-brands) - [@​mikkelbu](https://togithub.com/mikkelbu) - [@​stevenaw](https://togithub.com/stevenaw) Issues Resolved Features and Enhancements - [#​639](https://togithub.com/nunit/nunit.analyzers/issues/639) Rule to check users don't accidentally specify CallerArgumentExpression parameters - [#​634](https://togithub.com/nunit/nunit.analyzers/issues/634) Relax analyzers for added support for IAsyncEnumerable on \*Source attributes Tooling, Process, and Documentation - [#​648](https://togithub.com/nunit/nunit.analyzers/issues/648) chore: Skip branch builds on PRs - [#​644](https://togithub.com/nunit/nunit.analyzers/issues/644) chore: Update release notes for 3.10 beta - [#​429](https://togithub.com/nunit/nunit.analyzers/issues/429) Drop the VSIX project ### [`v3.9.0`](https://togithub.com/nunit/nunit.analyzers/releases/tag/3.9.0): NUnit Analyzers 3.9 (and 2.9) [Compare Source](https://togithub.com/nunit/nunit.analyzers/compare/3.8.0...3.9.0) NUnit Analyzers 3.9 (and 2.9) - October 27, 2023 This release contains bugfixes to NUnit2045 - Use Assert.Multiple - and NUnit1032 - An IDisposable field/property should be Disposed in a TearDown method - and corrects a StackOverflowException when tests calls methods recursively. The release contains contributions from the following users (in alphabetical order): - [@​andrewimcclement](https://togithub.com/andrewimcclement) - [@​manfred-brands](https://togithub.com/manfred-brands) - [@​mikkelbu](https://togithub.com/mikkelbu) - [@​NottsColin](https://togithub.com/NottsColin) - [@​RenderMichael](https://togithub.com/RenderMichael) Issues Resolved Bugs - [#​614](https://togithub.com/nunit/nunit.analyzers/issues/614) NUnit2045 does not respect lambda captures - [#​607](https://togithub.com/nunit/nunit.analyzers/issues/607) NUnit1032 false positive when test class is static - [#​602](https://togithub.com/nunit/nunit.analyzers/issues/602) Bug: StackOverflowException when test calls recursive method in 3.7. ### [`v3.8.0`](https://togithub.com/nunit/nunit.analyzers/releases/tag/3.8.0): NUnit Analyzers 3.8 (and 2.8) [Compare Source](https://togithub.com/nunit/nunit.analyzers/compare/3.7.0...3.8.0) NUnit Analyzers 3.8 (and 2.8) - September 25, 2023 This release contains a fix to the WithinUsageAnalyzer and handling of false duplicates when combining NUnit1032 - An IDisposable field/property should be Disposed in a TearDown method - with LifeCycle.InstancePerTestCase. The release contains contributions from the following users (in alphabetical order): - [@​andrewimcclement](https://togithub.com/andrewimcclement) - [@​fredjeronimo](https://togithub.com/fredjeronimo) - [@​HenryZhang-ZHY](https://togithub.com/HenryZhang-ZHY) - [@​manfred-brands](https://togithub.com/manfred-brands) - [@​mikkelbu](https://togithub.com/mikkelbu) Issues Resolved Features and Enhancements - [#​595](https://togithub.com/nunit/nunit.analyzers/issues/595) NUnit1032 false positive in LifeCycle.InstancePerTestCase test fixture using constructor Bugs - [#​596](https://togithub.com/nunit/nunit.analyzers/issues/596) WithinUsageAnalyzer threw an exception of type 'System.IndexOutOfRangeException' Tooling, Process, and Documentation - [#​598](https://togithub.com/nunit/nunit.analyzers/issues/598) Update NUnit1032.md to fix typo Dipose -> Dispose. ### [`v3.7.0`](https://togithub.com/nunit/nunit.analyzers/releases/tag/3.7.0): NUnit Analyzers 3.7 (and 2.7) [Compare Source](https://togithub.com/nunit/nunit.analyzers/compare/3.6.1...3.7.0) NUnit Analyzers 3.7 (and 2.7) - September 16, 2023 This release contains a lot of improvements and corrections to the supression of non-nullable fields and properties that are assigned in setup methods (and not in constructors). We have also added suppression of: - CA1812 - Avoid uninstantiated internal classes - on test classes - CA1001 - Types that own disposable fields should be disposable - when disposed is called in TearDown methods The release also contain some improvements to the performance of the analyzers by avoid repeated calls to GetTypeByMetadataName. Also ValuesAttribute is now also handled by the analyzer in a similar manner as TestCaseAttribute. Most of the work done in this release have either been driven by or made by [@​manfred-brands](https://togithub.com/manfred-brands). The release contains contributions from the following users (in alphabetical order): - [@​333fred](https://togithub.com/333fred) - [@​Corniel](https://togithub.com/Corniel) - [@​andrewimcclement](https://togithub.com/andrewimcclement) - [@​IlIlIllIllI](https://togithub.com/IlIlIllIllI) - [@​jhinder](https://togithub.com/jhinder) - [@​MaceWindu](https://togithub.com/MaceWindu) - [@​manfred-brands](https://togithub.com/manfred-brands) - [@​mikkelbu](https://togithub.com/mikkelbu) - [@​RenderMichael](https://togithub.com/RenderMichael) - [@​SeanKilleen](https://togithub.com/SeanKilleen) - [@​stevenaw](https://togithub.com/stevenaw) Issues Resolved Features and Enhancements - [#​585](https://togithub.com/nunit/nunit.analyzers/issues/585) NonNullableFieldOrPropertyIsUninitializedSuppressor doesn't check async methods called from SetUp - [#​582](https://togithub.com/nunit/nunit.analyzers/issues/582) NonNullableFieldOrPropertyIsUninitializedSuppressor does not detect assignments in try/finally blocks - [#​569](https://togithub.com/nunit/nunit.analyzers/issues/569) Added a suppressor when CA1812 fires on NUnit Test classes. - [#​568](https://togithub.com/nunit/nunit.analyzers/issues/568) Feature request: suppress CA1001 when Dispose is called in the TearDown method - [#​561](https://togithub.com/nunit/nunit.analyzers/issues/561) NUnit2021 error shown when comparing Uri and string - [#​548](https://togithub.com/nunit/nunit.analyzers/issues/548) Use RegisterCompilationStartAction to avoid repeated calls to GetTypeByMetadataName - [#​542](https://togithub.com/nunit/nunit.analyzers/issues/542) Allow the \*Source Analyzers to permit Task - [#​462](https://togithub.com/nunit/nunit.analyzers/issues/462) DiagnosticsSuppress does not suppress CS8634 - [#​344](https://togithub.com/nunit/nunit.analyzers/issues/344) Add a rule informing that .Within is not valid for non-numeric types. - [#​52](https://togithub.com/nunit/nunit.analyzers/issues/52) Reuse TestCaseAttribute logic for ValuesAttribute improvement Bugs - [#​587](https://togithub.com/nunit/nunit.analyzers/issues/587) Buggy interaction between the Assert.Multiple fixer and null reference suppression - [#​580](https://togithub.com/nunit/nunit.analyzers/issues/580) False positive for WithinUsageAnalyzer - [#​559](https://togithub.com/nunit/nunit.analyzers/issues/559) FP NUnit1001: CustomTypeConverters could convert from anything - [#​549](https://togithub.com/nunit/nunit.analyzers/issues/549) Code Fix for NUnit2010 on Ref Structs Creates CS0306 - [#​541](https://togithub.com/nunit/nunit.analyzers/issues/541) \[NUnit2045] Incorrect refactoring - [#​535](https://togithub.com/nunit/nunit.analyzers/issues/535) DiagnosticSuppressor doesn't suppress values passed as arguments - [#​534](https://togithub.com/nunit/nunit.analyzers/issues/534) QuickFix for Assert.Multiple looses white space before and comments after bug Tooling, Process, and Documentation - [#​579](https://togithub.com/nunit/nunit.analyzers/issues/579) chore: Bump Microsoft.NET.Test.Sdk - [#​578](https://togithub.com/nunit/nunit.analyzers/issues/578) chore(deps): Bump Microsoft.CodeAnalysis.NetAnalyzers - [#​573](https://togithub.com/nunit/nunit.analyzers/issues/573) chore(deps): Bump Microsoft.NET.Test.Sdk from 17.7.0 to 17.7.1 - [#​571](https://togithub.com/nunit/nunit.analyzers/issues/571) chore(deps): Bump System.Collections.Immutable from 6.0.0 to 7.0.0 - [#​567](https://togithub.com/nunit/nunit.analyzers/issues/567) chore(deps): Bump Microsoft.NET.Test.Sdk from 17.6.3 to 17.7.0 - [#​566](https://togithub.com/nunit/nunit.analyzers/issues/566) Update CONTRIBUTING.md to fix link to MS documentation. - [#​560](https://togithub.com/nunit/nunit.analyzers/issues/560) chore(deps): Bump Microsoft.NET.Test.Sdk from 17.6.2 to 17.6.3 - [#​558](https://togithub.com/nunit/nunit.analyzers/issues/558) chore(deps): Bump StyleCop.Analyzers.Unstable from 1.2.0.435 to 1.2.0.507 - [#​557](https://togithub.com/nunit/nunit.analyzers/issues/557) chore(deps): Bump Microsoft.CodeAnalysis.NetAnalyzers from 7.0.1 to 7.0.3 - [#​556](https://togithub.com/nunit/nunit.analyzers/issues/556) chore(deps): Bump Microsoft.NET.Test.Sdk from 17.6.1 to 17.6.2 - [#​553](https://togithub.com/nunit/nunit.analyzers/issues/553) chore(deps): Bump Microsoft.NET.Test.Sdk from 17.6.0 to 17.6.1 - [#​551](https://togithub.com/nunit/nunit.analyzers/issues/551) chore(deps): Bump NUnit3TestAdapter from 4.4.2 to 4.5.0 - [#​547](https://togithub.com/nunit/nunit.analyzers/issues/547) chore(deps): Bump CSharpIsNullAnalyzer from 0.1.300 to 0.1.495 - [#​543](https://togithub.com/nunit/nunit.analyzers/issues/543) chore(deps): Bump Microsoft.NET.Test.Sdk from 17.5.0 to 17.6.0 - [#​531](https://togithub.com/nunit/nunit.analyzers/issues/531) Markdown fixes ### [`v3.6.1`](https://togithub.com/nunit/nunit.analyzers/releases/tag/3.6.1): NUnit Analyzers 3.6.1 (and 2.6.1) - March 10, 2023 [Compare Source](https://togithub.com/nunit/nunit.analyzers/compare/3.6.0...3.6.1) NUnit Analyzers 3.6.1 (and 2.6.1) - March 10, 2023 This release of the NUnit Analyzers contain a single bug fix and some updates of dependencies. The bug fix removes a false from NUnit1030 - "The type of parameter provided by the TestCaseSource does not match the type of the parameter in the Test method" - when using TestCaseParameters. The release contains contributions from the following users (in alphabetical order): - [@​ehonda](https://togithub.com/ehonda) - [@​manfred-brands](https://togithub.com/manfred-brands) - [@​mikkelbu](https://togithub.com/mikkelbu) Issues Resolved Bugs - [#​523](https://togithub.com/nunit/nunit.analyzers/issues/523) False positive for NUnit1030 with TestCaseParameters bug Tooling, Process, and Documentation - [#​528](https://togithub.com/nunit/nunit.analyzers/issues/528) chore(deps): Bump NUnit3TestAdapter from 4.4.0 to 4.4.2 - [#​527](https://togithub.com/nunit/nunit.analyzers/issues/527) chore(deps): Bump NUnit3TestAdapter from 4.3.1 to 4.4.0 - [#​522](https://togithub.com/nunit/nunit.analyzers/issues/522) chore(deps): Bump Microsoft.NET.Test.Sdk from 17.4.1 to 17.5.0 ### [`v3.6.0`](https://togithub.com/nunit/nunit.analyzers/releases/tag/3.6.0): NUnit Analyzers 3.6 (and 2.6) [Compare Source](https://togithub.com/nunit/nunit.analyzers/compare/3.5.0...3.6.0) NUnit Analyzers 3.6 (and 2.6) - February 21, 2023 This release of the NUnit Analyzers improves on the analysis of nullable reference types - in particular in case of null coalescing operator and tuple deconstruction assignments. The release also adds two new diagnostics for the TestCaseSource attribute. The diagnostics examines the test data returned from the TestCaseSource: - NUnit1029 - The number of parameters provided by the TestCaseSource does not match the number of parameters in the Test method - NUnit1030 - The type of parameter provided by the TestCaseSource does not match the type of the parameter in the Test method In addition, the release also contains some bug fixes to existing analyzers, and we have added a GitHub Actions workflow and status badge. The release contains contributions from the following users (in alphabetical order): - [@​get-me-power](https://togithub.com/get-me-power) - [@​Hounsvad](https://togithub.com/Hounsvad) - [@​JasonBock](https://togithub.com/JasonBock) - [@​manfred-brands](https://togithub.com/manfred-brands) - [@​mikkelbu](https://togithub.com/mikkelbu) - [@​nowsprinting](https://togithub.com/nowsprinting) - [@​oskar](https://togithub.com/oskar) - [@​SeanKilleen](https://togithub.com/SeanKilleen) - [@​yaakov-h](https://togithub.com/yaakov-h) The majority of the code contributions were provided by [@​manfred-brands](https://togithub.com/manfred-brands). Issues Resolved Features and Enhancements - [#​503](https://togithub.com/nunit/nunit.analyzers/issues/503) DiagnosticsSuppressor doesn't suppress null coalescing operator - [#​499](https://togithub.com/nunit/nunit.analyzers/issues/499) DiagnosticSuppressor doesn't detect tuple deconstruction assignments - [#​442](https://togithub.com/nunit/nunit.analyzers/issues/442) Analyzer for TestCaseSource does not check Test method parameters Bugs - [#​509](https://togithub.com/nunit/nunit.analyzers/issues/509) Giving TestCaseAttribute an explicit decimal for a parameter that is a decimal gives a Nunit 1001 error - [#​496](https://togithub.com/nunit/nunit.analyzers/issues/496) NUnit2045 code-fix does not correctly lift asynchronous assertions into Assert.Multiple - [#​475](https://togithub.com/nunit/nunit.analyzers/issues/475) Code Fix for NUnit2010 on Ref Structs Creates CS1503 Tooling, Process, and Documentation - [#​519](https://togithub.com/nunit/nunit.analyzers/issues/519) chore: Update year to 2023 - [#​518](https://togithub.com/nunit/nunit.analyzers/issues/518) fix: Correct MSDN link on new pages - [#​516](https://togithub.com/nunit/nunit.analyzers/issues/516) Replace link to ruleset docs - [#​507](https://togithub.com/nunit/nunit.analyzers/issues/507) chore: Add Github Action build status badge - [#​500](https://togithub.com/nunit/nunit.analyzers/issues/500) Fix path to global.json - [#​497](https://togithub.com/nunit/nunit.analyzers/issues/497) chore(deps): Bump Microsoft.NET.Test.Sdk from 17.3.2 to 17.4.1 - [#​489](https://togithub.com/nunit/nunit.analyzers/issues/489) Add note about works with unity3d - [#​487](https://togithub.com/nunit/nunit.analyzers/issues/487) chore(deps): Bump NUnit3TestAdapter from 4.2.1 to 4.3.0 - [#​486](https://togithub.com/nunit/nunit.analyzers/issues/486) chore: Bump version to 3.6 (2.6) - [#​476](https://togithub.com/nunit/nunit.analyzers/issues/476) \[add] GitHub Actions workflow for running test

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

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.



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