Skip to content

Commit

Permalink
Release 4.2.0 (dotnet#1003)
Browse files Browse the repository at this point in the history
  • Loading branch information
josefpihrt authored and JochemHarmes committed Oct 30, 2023
1 parent 4172c37 commit 53e55f3
Show file tree
Hide file tree
Showing 29 changed files with 341 additions and 35 deletions.
2 changes: 2 additions & 0 deletions ChangeLog.md
Expand Up @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [4.2.0] - 2022-11-27

### Added

- Add Arm64 VS 2022 extension support ([#990](https://github.com/JosefPihrt/Roslynator/pull/990) by @snickler).
Expand Down
15 changes: 14 additions & 1 deletion docs/Configuration.md
Expand Up @@ -75,6 +75,9 @@ roslynator_arrow_token_new_line = after|before
roslynator_binary_operator_new_line = after|before
# Applicable to: rcs0027
roslynator_blank_line_after_file_scoped_namespace_declaration = true|false
# Applicable to: rcs0060
roslynator_blank_line_between_closing_brace_and_switch_section = true|false
# Applicable to: rcs0014, rcs1036
Expand Down Expand Up @@ -326,6 +329,10 @@ dotnet_diagnostic.rcs0058.severity = none
dotnet_diagnostic.rcs0059.severity = none
# Options: roslynator_null_conditional_operator_new_line
# Add/remove line after file scoped namespace declaration
dotnet_diagnostic.rcs0060.severity = none
# Options: roslynator_blank_line_after_file_scoped_namespace_declaration
# Add braces (when expression spans over multiple lines)
dotnet_diagnostic.rcs1001.severity = suggestion
Expand Down Expand Up @@ -508,7 +515,7 @@ dotnet_diagnostic.rcs1078.severity = none
dotnet_diagnostic.rcs1079.severity = none
# Use 'Count/Length' property instead of 'Any' method
dotnet_diagnostic.rcs1080.severity = suggestion
dotnet_diagnostic.rcs1080.severity = none
# Split variable declaration
dotnet_diagnostic.rcs1081.severity = none
Expand Down Expand Up @@ -933,6 +940,12 @@ dotnet_diagnostic.rcs1253.severity = none
dotnet_diagnostic.rcs1254.severity = suggestion
# Options: roslynator_enum_flag_value_style
# Simplify argument null check
dotnet_diagnostic.rcs1255.severity = none
# Invalid argument null check
dotnet_diagnostic.rcs1256.severity = suggestion
# Use pattern matching
dotnet_diagnostic.rcs9001.severity = silent
Expand Down
29 changes: 22 additions & 7 deletions docs/api.txt
@@ -1,10 +1,11 @@
assembly Roslynator.Core, Version=4.1.2.0, Culture=neutral, PublicKeyToken=926ea54d246a765e
assembly Roslynator.CSharp, Version=4.1.2.0, Culture=neutral, PublicKeyToken=926ea54d246a765e
assembly Roslynator.CSharp.Workspaces, Version=4.1.2.0, Culture=neutral, PublicKeyToken=926ea54d246a765e
assembly Roslynator.Testing.Common, Version=4.1.2.0, Culture=neutral, PublicKeyToken=926ea54d246a765e
assembly Roslynator.Testing.CSharp, Version=4.1.2.0, Culture=neutral, PublicKeyToken=926ea54d246a765e
assembly Roslynator.Testing.CSharp.Xunit, Version=4.1.2.0, Culture=neutral, PublicKeyToken=926ea54d246a765e
assembly Roslynator.Workspaces.Core, Version=4.1.2.0, Culture=neutral, PublicKeyToken=926ea54d246a765e
assembly Roslynator.Core, Version=4.2.0.0, Culture=neutral, PublicKeyToken=926ea54d246a765e
assembly Roslynator.CSharp, Version=4.2.0.0, Culture=neutral, PublicKeyToken=926ea54d246a765e
assembly Roslynator.CSharp.Workspaces, Version=4.2.0.0, Culture=neutral, PublicKeyToken=926ea54d246a765e
assembly Roslynator.Testing.Common, Version=4.2.0.0, Culture=neutral, PublicKeyToken=926ea54d246a765e
assembly Roslynator.Testing.CSharp, Version=4.2.0.0, Culture=neutral, PublicKeyToken=926ea54d246a765e
assembly Roslynator.Testing.CSharp.MSTest, Version=4.2.0.0, Culture=neutral, PublicKeyToken=926ea54d246a765e
assembly Roslynator.Testing.CSharp.Xunit, Version=4.2.0.0, Culture=neutral, PublicKeyToken=926ea54d246a765e
assembly Roslynator.Workspaces.Core, Version=4.2.0.0, Culture=neutral, PublicKeyToken=926ea54d246a765e

namespace Roslynator

Expand Down Expand Up @@ -1769,6 +1770,20 @@ namespace Roslynator.Testing.CSharp
public CSharpTestOptions WithMetadataReferences(IEnumerable<MetadataReference> values);
public CSharpTestOptions WithParseOptions(CSharpParseOptions parseOptions);

namespace Roslynator.Testing.CSharp.MSTest

public abstract class MSTestCompilerDiagnosticFixVerifier<TFixProvider> : CSharpCompilerDiagnosticFixVerifier<TFixProvider> where TFixProvider : CodeFixProvider, new()

protected MSTestCompilerDiagnosticFixVerifier();

public abstract class MSTestDiagnosticVerifier<TAnalyzer, TFixProvider> : CSharpDiagnosticVerifier<TAnalyzer, TFixProvider> where TAnalyzer : DiagnosticAnalyzer, new() where TFixProvider : CodeFixProvider, new()

protected MSTestDiagnosticVerifier();

public abstract class MSTestRefactoringVerifier<TRefactoringProvider> : CSharpRefactoringVerifier<TRefactoringProvider> where TRefactoringProvider : CodeRefactoringProvider, new()

protected MSTestRefactoringVerifier();

namespace Roslynator.Testing.CSharp.Xunit

public abstract class XunitCompilerDiagnosticFixVerifier<TFixProvider> : CSharpCompilerDiagnosticFixVerifier<TFixProvider> where TFixProvider : CodeFixProvider, new()
Expand Down
7 changes: 7 additions & 0 deletions docs/api/README.md
Expand Up @@ -96,6 +96,10 @@
* [CSharpDiagnosticVerifier\<TAnalyzer, TFixProvider\>](Roslynator/Testing/CSharp/CSharpDiagnosticVerifier-2/README.md)
* [CSharpRefactoringVerifier\<TRefactoringProvider\>](Roslynator/Testing/CSharp/CSharpRefactoringVerifier-1/README.md)
* [CSharpTestOptions](Roslynator/Testing/CSharp/CSharpTestOptions/README.md)
* [Roslynator.Testing.CSharp.MSTest](Roslynator/Testing/CSharp/MSTest/README.md)
* [MSTestCompilerDiagnosticFixVerifier\<TFixProvider\>](Roslynator/Testing/CSharp/MSTest/MSTestCompilerDiagnosticFixVerifier-1/README.md)
* [MSTestDiagnosticVerifier\<TAnalyzer, TFixProvider\>](Roslynator/Testing/CSharp/MSTest/MSTestDiagnosticVerifier-2/README.md)
* [MSTestRefactoringVerifier\<TRefactoringProvider\>](Roslynator/Testing/CSharp/MSTest/MSTestRefactoringVerifier-1/README.md)
* [Roslynator.Testing.CSharp.Xunit](Roslynator/Testing/CSharp/Xunit/README.md)
* [XunitCompilerDiagnosticFixVerifier\<TFixProvider\>](Roslynator/Testing/CSharp/Xunit/XunitCompilerDiagnosticFixVerifier-1/README.md)
* [XunitDiagnosticVerifier\<TAnalyzer, TFixProvider\>](Roslynator/Testing/CSharp/Xunit/XunitDiagnosticVerifier-2/README.md)
Expand All @@ -111,12 +115,15 @@
* &ensp; [&bull;](#class-hierarchy-System_Object "Object") &ensp; [CodeVerifier](Roslynator/Testing/CodeVerifier/README.md)<a id="class-hierarchy-Roslynator_Testing_CodeVerifier"></a>
* &ensp; [&bull;](#class-hierarchy-System_Object "Object") &ensp; [&bull;](#class-hierarchy-Roslynator_Testing_CodeVerifier "CodeVerifier") &ensp; [CompilerDiagnosticFixVerifier\<TFixProvider\>](Roslynator/Testing/CompilerDiagnosticFixVerifier-1/README.md)<a id="class-hierarchy-Roslynator_Testing_CompilerDiagnosticFixVerifier_1"></a>
* &ensp; [&bull;](#class-hierarchy-System_Object "Object") &ensp; [&bull;](#class-hierarchy-Roslynator_Testing_CodeVerifier "CodeVerifier") &ensp; [&bull;](#class-hierarchy-Roslynator_Testing_CompilerDiagnosticFixVerifier_1 "CompilerDiagnosticFixVerifier<TFixProvider>") &ensp; [CSharpCompilerDiagnosticFixVerifier\<TFixProvider\>](Roslynator/Testing/CSharp/CSharpCompilerDiagnosticFixVerifier-1/README.md)<a id="class-hierarchy-Roslynator_Testing_CSharp_CSharpCompilerDiagnosticFixVerifier_1"></a>
* &ensp; [&bull;](#class-hierarchy-System_Object "Object") &ensp; [&bull;](#class-hierarchy-Roslynator_Testing_CodeVerifier "CodeVerifier") &ensp; [&bull;](#class-hierarchy-Roslynator_Testing_CompilerDiagnosticFixVerifier_1 "CompilerDiagnosticFixVerifier<TFixProvider>") &ensp; [&bull;](#class-hierarchy-Roslynator_Testing_CSharp_CSharpCompilerDiagnosticFixVerifier_1 "CSharpCompilerDiagnosticFixVerifier<TFixProvider>") &ensp; [MSTestCompilerDiagnosticFixVerifier\<TFixProvider\>](Roslynator/Testing/CSharp/MSTest/MSTestCompilerDiagnosticFixVerifier-1/README.md)<a id="class-hierarchy-Roslynator_Testing_CSharp_MSTest_MSTestCompilerDiagnosticFixVerifier_1"></a>
* &ensp; [&bull;](#class-hierarchy-System_Object "Object") &ensp; [&bull;](#class-hierarchy-Roslynator_Testing_CodeVerifier "CodeVerifier") &ensp; [&bull;](#class-hierarchy-Roslynator_Testing_CompilerDiagnosticFixVerifier_1 "CompilerDiagnosticFixVerifier<TFixProvider>") &ensp; [&bull;](#class-hierarchy-Roslynator_Testing_CSharp_CSharpCompilerDiagnosticFixVerifier_1 "CSharpCompilerDiagnosticFixVerifier<TFixProvider>") &ensp; [XunitCompilerDiagnosticFixVerifier\<TFixProvider\>](Roslynator/Testing/CSharp/Xunit/XunitCompilerDiagnosticFixVerifier-1/README.md)<a id="class-hierarchy-Roslynator_Testing_CSharp_Xunit_XunitCompilerDiagnosticFixVerifier_1"></a>
* &ensp; [&bull;](#class-hierarchy-System_Object "Object") &ensp; [&bull;](#class-hierarchy-Roslynator_Testing_CodeVerifier "CodeVerifier") &ensp; [DiagnosticVerifier\<TAnalyzer, TFixProvider\>](Roslynator/Testing/DiagnosticVerifier-2/README.md)<a id="class-hierarchy-Roslynator_Testing_DiagnosticVerifier_2"></a>
* &ensp; [&bull;](#class-hierarchy-System_Object "Object") &ensp; [&bull;](#class-hierarchy-Roslynator_Testing_CodeVerifier "CodeVerifier") &ensp; [&bull;](#class-hierarchy-Roslynator_Testing_DiagnosticVerifier_2 "DiagnosticVerifier<TAnalyzer, TFixProvider>") &ensp; [CSharpDiagnosticVerifier\<TAnalyzer, TFixProvider\>](Roslynator/Testing/CSharp/CSharpDiagnosticVerifier-2/README.md)<a id="class-hierarchy-Roslynator_Testing_CSharp_CSharpDiagnosticVerifier_2"></a>
* &ensp; [&bull;](#class-hierarchy-System_Object "Object") &ensp; [&bull;](#class-hierarchy-Roslynator_Testing_CodeVerifier "CodeVerifier") &ensp; [&bull;](#class-hierarchy-Roslynator_Testing_DiagnosticVerifier_2 "DiagnosticVerifier<TAnalyzer, TFixProvider>") &ensp; [&bull;](#class-hierarchy-Roslynator_Testing_CSharp_CSharpDiagnosticVerifier_2 "CSharpDiagnosticVerifier<TAnalyzer, TFixProvider>") &ensp; [MSTestDiagnosticVerifier\<TAnalyzer, TFixProvider\>](Roslynator/Testing/CSharp/MSTest/MSTestDiagnosticVerifier-2/README.md)<a id="class-hierarchy-Roslynator_Testing_CSharp_MSTest_MSTestDiagnosticVerifier_2"></a>
* &ensp; [&bull;](#class-hierarchy-System_Object "Object") &ensp; [&bull;](#class-hierarchy-Roslynator_Testing_CodeVerifier "CodeVerifier") &ensp; [&bull;](#class-hierarchy-Roslynator_Testing_DiagnosticVerifier_2 "DiagnosticVerifier<TAnalyzer, TFixProvider>") &ensp; [&bull;](#class-hierarchy-Roslynator_Testing_CSharp_CSharpDiagnosticVerifier_2 "CSharpDiagnosticVerifier<TAnalyzer, TFixProvider>") &ensp; [XunitDiagnosticVerifier\<TAnalyzer, TFixProvider\>](Roslynator/Testing/CSharp/Xunit/XunitDiagnosticVerifier-2/README.md)<a id="class-hierarchy-Roslynator_Testing_CSharp_Xunit_XunitDiagnosticVerifier_2"></a>
* &ensp; [&bull;](#class-hierarchy-System_Object "Object") &ensp; [&bull;](#class-hierarchy-Roslynator_Testing_CodeVerifier "CodeVerifier") &ensp; [RefactoringVerifier\<TRefactoringProvider\>](Roslynator/Testing/RefactoringVerifier-1/README.md)<a id="class-hierarchy-Roslynator_Testing_RefactoringVerifier_1"></a>
* &ensp; [&bull;](#class-hierarchy-System_Object "Object") &ensp; [&bull;](#class-hierarchy-Roslynator_Testing_CodeVerifier "CodeVerifier") &ensp; [&bull;](#class-hierarchy-Roslynator_Testing_RefactoringVerifier_1 "RefactoringVerifier<TRefactoringProvider>") &ensp; [CSharpRefactoringVerifier\<TRefactoringProvider\>](Roslynator/Testing/CSharp/CSharpRefactoringVerifier-1/README.md)<a id="class-hierarchy-Roslynator_Testing_CSharp_CSharpRefactoringVerifier_1"></a>
* &ensp; [&bull;](#class-hierarchy-System_Object "Object") &ensp; [&bull;](#class-hierarchy-Roslynator_Testing_CodeVerifier "CodeVerifier") &ensp; [&bull;](#class-hierarchy-Roslynator_Testing_RefactoringVerifier_1 "RefactoringVerifier<TRefactoringProvider>") &ensp; [&bull;](#class-hierarchy-Roslynator_Testing_CSharp_CSharpRefactoringVerifier_1 "CSharpRefactoringVerifier<TRefactoringProvider>") &ensp; [MSTestRefactoringVerifier\<TRefactoringProvider\>](Roslynator/Testing/CSharp/MSTest/MSTestRefactoringVerifier-1/README.md)<a id="class-hierarchy-Roslynator_Testing_CSharp_MSTest_MSTestRefactoringVerifier_1"></a>
* &ensp; [&bull;](#class-hierarchy-System_Object "Object") &ensp; [&bull;](#class-hierarchy-Roslynator_Testing_CodeVerifier "CodeVerifier") &ensp; [&bull;](#class-hierarchy-Roslynator_Testing_RefactoringVerifier_1 "RefactoringVerifier<TRefactoringProvider>") &ensp; [&bull;](#class-hierarchy-Roslynator_Testing_CSharp_CSharpRefactoringVerifier_1 "CSharpRefactoringVerifier<TRefactoringProvider>") &ensp; [XunitRefactoringVerifier\<TRefactoringProvider\>](Roslynator/Testing/CSharp/Xunit/XunitRefactoringVerifier-1/README.md)<a id="class-hierarchy-Roslynator_Testing_CSharp_Xunit_XunitRefactoringVerifier_1"></a>
* &ensp; [&bull;](#class-hierarchy-System_Object "Object") &ensp; [CompilerDiagnosticFixTestData](Roslynator/Testing/CompilerDiagnosticFixTestData/README.md)<a id="class-hierarchy-Roslynator_Testing_CompilerDiagnosticFixTestData"></a>
* &ensp; [&bull;](#class-hierarchy-System_Object "Object") &ensp; [DiagnosticTestData](Roslynator/Testing/DiagnosticTestData/README.md)<a id="class-hierarchy-Roslynator_Testing_DiagnosticTestData"></a>
Expand Down
Expand Up @@ -23,6 +23,7 @@ public abstract class CSharpCompilerDiagnosticFixVerifier<TFixProvider> : Roslyn

### Derived

* [MSTestCompilerDiagnosticFixVerifier\<TFixProvider\>](../MSTest/MSTestCompilerDiagnosticFixVerifier-1/README.md)
* [XunitCompilerDiagnosticFixVerifier\<TFixProvider\>](../Xunit/XunitCompilerDiagnosticFixVerifier-1/README.md)

## Properties
Expand Down
Expand Up @@ -27,6 +27,7 @@ public abstract class CSharpDiagnosticVerifier<TAnalyzer, TFixProvider> : Roslyn

### Derived

* [MSTestDiagnosticVerifier\<TAnalyzer, TFixProvider\>](../MSTest/MSTestDiagnosticVerifier-2/README.md)
* [XunitDiagnosticVerifier\<TAnalyzer, TFixProvider\>](../Xunit/XunitDiagnosticVerifier-2/README.md)

## Properties
Expand Down
Expand Up @@ -23,6 +23,7 @@ public abstract class CSharpRefactoringVerifier<TRefactoringProvider> : Roslynat

### Derived

* [MSTestRefactoringVerifier\<TRefactoringProvider\>](../MSTest/MSTestRefactoringVerifier-1/README.md)
* [XunitRefactoringVerifier\<TRefactoringProvider\>](../Xunit/XunitRefactoringVerifier-1/README.md)

## Properties
Expand Down
@@ -0,0 +1,15 @@
# MSTestCompilerDiagnosticFixVerifier\(\) Constructor

[Home](../../../../../../README.md)

**Containing Type**: [MSTestCompilerDiagnosticFixVerifier\<TFixProvider\>](../README.md)

**Assembly**: Roslynator\.Testing\.CSharp\.MSTest\.dll


Initializes a new instance of [MSTestCompilerDiagnosticFixVerifier\<TFixProvider\>](../README.md)

```csharp
protected MSTestCompilerDiagnosticFixVerifier()
```

@@ -0,0 +1,48 @@
# MSTestCompilerDiagnosticFixVerifier\<TFixProvider\> Class

[Home](../../../../../README.md) &#x2022; [Constructors](#constructors) &#x2022; [Properties](#properties) &#x2022; [Methods](#methods)

**Namespace**: [Roslynator.Testing.CSharp.MSTest](../README.md)

**Assembly**: Roslynator\.Testing\.CSharp\.MSTest\.dll


Represents a verifier for C\# compiler diagnostics\.

```csharp
public abstract class MSTestCompilerDiagnosticFixVerifier<TFixProvider> : Roslynator.Testing.CSharp.CSharpCompilerDiagnosticFixVerifier<TFixProvider> where TFixProvider : Microsoft.CodeAnalysis.CodeFixes.CodeFixProvider, new()
```

### Type Parameters

**TFixProvider**

### Inheritance

[Object](https://docs.microsoft.com/en-us/dotnet/api/system.object) &#x2192; [CodeVerifier](../../../CodeVerifier/README.md) &#x2192; [CompilerDiagnosticFixVerifier\<TFixProvider\>](../../../CompilerDiagnosticFixVerifier-1/README.md) &#x2192; [CSharpCompilerDiagnosticFixVerifier\<TFixProvider\>](../../CSharpCompilerDiagnosticFixVerifier-1/README.md) &#x2192; MSTestCompilerDiagnosticFixVerifier\<TFixProvider\>

## Constructors

| Constructor | Summary |
| ----------- | ------- |
| [MSTestCompilerDiagnosticFixVerifier()](-ctor/README.md) | Initializes a new instance of [MSTestCompilerDiagnosticFixVerifier\<TFixProvider\>](./README.md) |

## Properties

| Property | Summary |
| -------- | ------- |
| [CommonOptions](../../CSharpCompilerDiagnosticFixVerifier-1/CommonOptions/README.md) | Gets common test options\. \(Inherited from [CSharpCompilerDiagnosticFixVerifier\<TFixProvider\>](../../CSharpCompilerDiagnosticFixVerifier-1/README.md)\) |
| [Options](../../CSharpCompilerDiagnosticFixVerifier-1/Options/README.md) | Gets a test options\. \(Inherited from [CSharpCompilerDiagnosticFixVerifier\<TFixProvider\>](../../CSharpCompilerDiagnosticFixVerifier-1/README.md)\) |

## Methods

| Method | Summary |
| ------ | ------- |
| [Equals(Object)](https://docs.microsoft.com/en-us/dotnet/api/system.object.equals) | \(Inherited from [Object](https://docs.microsoft.com/en-us/dotnet/api/system.object)\) |
| [GetHashCode()](https://docs.microsoft.com/en-us/dotnet/api/system.object.gethashcode) | \(Inherited from [Object](https://docs.microsoft.com/en-us/dotnet/api/system.object)\) |
| [GetType()](https://docs.microsoft.com/en-us/dotnet/api/system.object.gettype) | \(Inherited from [Object](https://docs.microsoft.com/en-us/dotnet/api/system.object)\) |
| [MemberwiseClone()](https://docs.microsoft.com/en-us/dotnet/api/system.object.memberwiseclone) | \(Inherited from [Object](https://docs.microsoft.com/en-us/dotnet/api/system.object)\) |
| [ToString()](https://docs.microsoft.com/en-us/dotnet/api/system.object.tostring) | \(Inherited from [Object](https://docs.microsoft.com/en-us/dotnet/api/system.object)\) |
| [VerifyFixAsync(CompilerDiagnosticFixTestData, ExpectedTestState, TestOptions, CancellationToken)](../../../CompilerDiagnosticFixVerifier-1/VerifyFixAsync/README.md) | Verifies that specified source will produce compiler diagnostic\. \(Inherited from [CompilerDiagnosticFixVerifier\<TFixProvider\>](../../../CompilerDiagnosticFixVerifier-1/README.md)\) |
| [VerifyNoFixAsync(CompilerDiagnosticFixTestData, TestOptions, CancellationToken)](../../../CompilerDiagnosticFixVerifier-1/VerifyNoFixAsync/README.md) | Verifies that specified source will not produce compiler diagnostic\. \(Inherited from [CompilerDiagnosticFixVerifier\<TFixProvider\>](../../../CompilerDiagnosticFixVerifier-1/README.md)\) |

@@ -0,0 +1,15 @@
# MSTestDiagnosticVerifier\(\) Constructor

[Home](../../../../../../README.md)

**Containing Type**: [MSTestDiagnosticVerifier\<TAnalyzer, TFixProvider\>](../README.md)

**Assembly**: Roslynator\.Testing\.CSharp\.MSTest\.dll


Initializes a new instance of [MSTestDiagnosticVerifier\<TAnalyzer, TFixProvider\>](../README.md)\.

```csharp
protected MSTestDiagnosticVerifier()
```

0 comments on commit 53e55f3

Please sign in to comment.