Skip to content

Conversation

@Evangelink
Copy link
Member

Description

Allows to use latest C# syntax across the codebase.

Fix suggestions about (their default severity is and remains as info, let me know if you prefer warning):

  • collection initialization
  • object initialization

Set simplify using rule severity to warning and apply code fix.

@Evangelink Evangelink requested a review from nohwnd January 18, 2022 14:55
nohwnd and others added 6 commits January 25, 2022 11:51
# Conflicts:
#	scripts/build/TestPlatform.Settings.targets
#	src/Microsoft.TestPlatform.AdapterUtilities/ManagedNameConstants.cs
#	src/Microsoft.TestPlatform.AdapterUtilities/TestIdProvider.cs
#	src/Microsoft.TestPlatform.Common/DataCollection/AfterTestRunEndResult.cs
#	src/Microsoft.TestPlatform.Common/Filtering/FilterExpression.cs
#	src/Microsoft.TestPlatform.Common/Logging/InternalTestLoggerEvents.cs
#	src/Microsoft.TestPlatform.Common/Utilities/FakesUtilities.cs
#	src/Microsoft.TestPlatform.Common/Utilities/MetadataReaderHelper.cs
#	src/Microsoft.TestPlatform.CrossPlatEngine/AttachmentsProcessing/DataCollectorAttachmentsProcessorsFactory.cs
#	src/Microsoft.TestPlatform.CrossPlatEngine/AttachmentsProcessing/TestRunAttachmentsProcessingManager.cs
#	src/Microsoft.TestPlatform.CrossPlatEngine/Execution/ExecutionManager.cs
#	src/Microsoft.TestPlatform.ObjectModel/Client/TestSessionInfo.cs
#	src/Microsoft.TestPlatform.ObjectModel/DataCollector/Attributes/DataCollectorAttachmentProcessor.cs
#	src/Microsoft.TestPlatform.TestHostProvider/Hosting/DotnetTestHostManager.cs
#	src/Microsoft.TestPlatform.VsTestConsole.TranslationLayer/VsTestConsoleProcessManager.cs
#	src/vstest.console/Publisher/TextFileTelemetryPublisher.cs
#	test/Microsoft.TestPlatform.AcceptanceTests/AcceptanceTestBase.cs
#	test/Microsoft.TestPlatform.AcceptanceTests/AppDomainTests.cs
#	test/Microsoft.TestPlatform.AcceptanceTests/ArgumentProcessorTests.cs
#	test/Microsoft.TestPlatform.AcceptanceTests/BlameDataCollectorTests.cs
#	test/Microsoft.TestPlatform.AcceptanceTests/CUITTest.cs
#	test/Microsoft.TestPlatform.AcceptanceTests/CodeCoverageAcceptanceTestBase.cs
#	test/Microsoft.TestPlatform.AcceptanceTests/CodeCoverageTests.cs
#	test/Microsoft.TestPlatform.AcceptanceTests/DataCollectionTests.cs
#	test/Microsoft.TestPlatform.AcceptanceTests/DebugAssertTests.cs
#	test/Microsoft.TestPlatform.AcceptanceTests/DeprecateExtensionsPathWarningTests.cs
#	test/Microsoft.TestPlatform.AcceptanceTests/DifferentTestFrameworkSimpleTests.cs
#	test/Microsoft.TestPlatform.AcceptanceTests/DisableAppdomainTests.cs
#	test/Microsoft.TestPlatform.AcceptanceTests/DiscoveryTests.cs
#	test/Microsoft.TestPlatform.AcceptanceTests/DotnetArchitectureSwitchTests.Windows.cs
#	test/Microsoft.TestPlatform.AcceptanceTests/DotnetArchitectureSwitchTests.cs
#	test/Microsoft.TestPlatform.AcceptanceTests/DotnetTestTests.cs
#	test/Microsoft.TestPlatform.AcceptanceTests/EventLogCollectorTests.cs
#	test/Microsoft.TestPlatform.AcceptanceTests/ExecutionTests.cs
#	test/Microsoft.TestPlatform.AcceptanceTests/ExecutionThreadApartmentStateTests.cs
#	test/Microsoft.TestPlatform.AcceptanceTests/FilePatternParserTests.cs
#	test/Microsoft.TestPlatform.AcceptanceTests/FrameworkTests.cs
#	test/Microsoft.TestPlatform.AcceptanceTests/ListExtensionsTests.cs
#	test/Microsoft.TestPlatform.AcceptanceTests/LoggerTests.cs
#	test/Microsoft.TestPlatform.AcceptanceTests/MultitargetingTestHostTests.cs
#	test/Microsoft.TestPlatform.AcceptanceTests/PlatformTests.cs
#	test/Microsoft.TestPlatform.AcceptanceTests/PortableNugetPackageTests.cs
#	test/Microsoft.TestPlatform.AcceptanceTests/ResultsDirectoryTests.cs
#	test/Microsoft.TestPlatform.AcceptanceTests/RunsettingsTests.cs
#	test/Microsoft.TestPlatform.AcceptanceTests/SelfContainedAppTests.cs
#	test/Microsoft.TestPlatform.AcceptanceTests/TelemetryTests.cs
#	test/Microsoft.TestPlatform.AcceptanceTests/TestCaseFilterTests.cs
#	test/Microsoft.TestPlatform.AcceptanceTests/TestPlatformNugetPackageTests.cs
#	test/Microsoft.TestPlatform.AcceptanceTests/TranslationLayerTests/CodeCoverageTests.cs
#	test/Microsoft.TestPlatform.AcceptanceTests/TranslationLayerTests/CustomTestHostTests.cs
#	test/Microsoft.TestPlatform.AcceptanceTests/TranslationLayerTests/DifferentTestFrameworkSimpleTests.cs
#	test/Microsoft.TestPlatform.AcceptanceTests/TranslationLayerTests/DiscoverTests.cs
#	test/Microsoft.TestPlatform.AcceptanceTests/TranslationLayerTests/LiveUnitTestingTests.cs
#	test/Microsoft.TestPlatform.AcceptanceTests/TranslationLayerTests/RunSelectedTests.cs
#	test/Microsoft.TestPlatform.AcceptanceTests/TranslationLayerTests/RunTests.cs
#	test/Microsoft.TestPlatform.AcceptanceTests/TranslationLayerTests/RunTestsWithDifferentConfigurationTests.cs
#	test/Microsoft.TestPlatform.AcceptanceTests/TranslationLayerTests/RunTestsWithFilterTests.cs
#	test/Microsoft.TestPlatform.CrossPlatEngine.UnitTests/AttachmentsProcessing/TestRunAttachmentsProcessingManagerTests.cs
#	test/Microsoft.TestPlatform.SmokeTests/DataCollectorTests.Coverlet.cs
#	test/Microsoft.TestPlatform.SmokeTests/DotnetHostArchitectureVerifierTests.cs
#	test/Microsoft.TestPlatform.SmokeTests/ExecutionTests.cs
#	test/Microsoft.TestPlatform.TestUtilities/IntegrationTestBase.cs
#	test/Microsoft.TestPlatform.TestUtilities/NumberOfProcessLaunchedUtility.cs
#	test/Microsoft.TestPlatform.TestUtilities/Workspace.cs
@Evangelink Evangelink changed the title Allow latest C# syntax Apply modern code styles Jan 25, 2022
@Evangelink Evangelink merged commit 361bf62 into microsoft:main Jan 28, 2022
@Evangelink Evangelink deleted the allow-latest-csharp-syntax branch January 28, 2022 10:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants