Skip to content

Commit

Permalink
Change version to 3.2.0 (API 2.1.0)
Browse files Browse the repository at this point in the history
  • Loading branch information
josefpihrt committed Apr 26, 2021
1 parent 25395ec commit 3af2f4e
Show file tree
Hide file tree
Showing 63 changed files with 248 additions and 107 deletions.
20 changes: 20 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,23 @@
### 3.2.0 (2021-04-26)

* Publish [Roslynator Testing Framework](https://www.nuget.org/packages/Roslynator.Testing.CSharp.Xunit)
* Support editorconfig to configure analyzer options ([commit](https://github.com/JosefPihrt/Roslynator/commit/da88ce64e0b3975ad69e05a1d4cdcc761f358a09))
* Update references to Roslyn API to 3.8.0
* A bunch of bug fixes

## Analyzers

* Add option to invert analyzer [RCS1016](https://github.com/JosefPihrt/Roslynator/blob/master/docs/analyzers/RCS1016.md) ([commit](https://github.com/JosefPihrt/Roslynator/commit/67a0fc5cfe9dd793cc6e504513ed6805678c1739))
* Add more cases to analyzer [RCS1218](https://github.com/JosefPihrt/Roslynator/blob/master/docs/analyzers/RCS1218.md) ([commit](https://github.com/JosefPihrt/Roslynator/commit/37e8edb7a2eefdd4a7749dd6a3f5b473ebbdcc0a))
* Convert `!= null` to `is not null` ([RCS1248](https://github.com/JosefPihrt/Roslynator/blob/master/docs/analyzers/RCS1248.md)) ([commit](https://github.com/JosefPihrt/Roslynator/commit/432a8fea3147447536dbb8fac47598ad1db68158))

## Code Fixes

* Add code fix for CS7036 ([commit](https://github.com/JosefPihrt/Roslynator/commit/9eae7307b9cab96c2d91e97aef8bda098c7e92d9))
* Add code fix for CS8632 ([commit](https://github.com/JosefPihrt/Roslynator/commit/2c1d9ca64d2305e1ce278e1db6563d82582c4613))
* Improve code fix for CS0029, CS0246 ([commit](https://github.com/JosefPihrt/Roslynator/commit/5557ad29412b5f758cb97da6e298e1f4b0d49e3d))
* Add option for code fix for CS1591 ([commit](https://github.com/JosefPihrt/Roslynator/commit/089dbed656556a526f236dce75eadffb4e1d78a0))

### 3.1.0 (2021-01-04)

* Add analyzer [RCS0056](https://github.com/JosefPihrt/Roslynator/blob/master/docs/analyzers/RCS0056.md) (Line is too long)
Expand Down
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,12 @@ Although Roslynator products are free of charge, any [donation](https://www.payp
* Roslynator CLI is also distributed as .NET Core Global Tool [Roslynator.DotNet.Cli](https://www.nuget.org/packages/Roslynator.DotNet.Cli).  [![NuGet](https://img.shields.io/nuget/v/Roslynator.DotNet.Cli.svg)](https://www.nuget.org/packages/Roslynator.DotNet.Cli)
* See [documentation](docs/cli/README.md).

## Roslynator Testing Framework

* Roslynator Testing Framework can be used for unit testing of analyzers, refactorings and code fixes.
* Framework is distributed as NuGet [package](https://www.nuget.org/packages/Roslynator.Testing.CSharp.Xunit).  [![NuGet](https://img.shields.io/nuget/v/Roslynator.Testing.CSharp.Xunit.svg)](https://www.nuget.org/packages/Roslynator.Testing.CSharp.Xunit)
* Extensive usage of the framework can be found [here](src/Tests)

## Documentation

* [Analyzers vs. Refactorings](docs/AnalyzersVsRefactorings.md)
Expand Down
7 changes: 5 additions & 2 deletions docs/analyzers/RCS0011.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,18 @@ string P

## Options

* [RCS0011i](RCS0011i.md) \- Remove empty line between single\-line accessors\.
### Remove empty line between single\-line accessors

```editorconfig
roslynator.RCS0011.invert = true
```

## Applies to

* [Roslynator.Formatting.Analyzers](https://www.nuget.org/packages/Roslynator.Formatting.Analyzers)

## See Also

* [Analyzer Options](../AnalyzerOptions.md)
* [How to Suppress a Diagnostic](../HowToConfigureAnalyzers.md#how-to-suppress-a-diagnostic)


Expand Down
7 changes: 5 additions & 2 deletions docs/analyzers/RCS0015.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,18 @@ namespace N

## Options

* [RCS0015i](RCS0015i.md) \- Remove empty line between using directives with different root namespace\.
### Remove empty line between using directives with different root namespace

```editorconfig
roslynator.RCS0015.invert = true
```

## Applies to

* [Roslynator.Formatting.Analyzers](https://www.nuget.org/packages/Roslynator.Formatting.Analyzers)

## See Also

* [Analyzer Options](../AnalyzerOptions.md)
* [How to Suppress a Diagnostic](../HowToConfigureAnalyzers.md#how-to-suppress-a-diagnostic)


Expand Down
7 changes: 5 additions & 2 deletions docs/analyzers/RCS0027.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,11 @@ if (x

## Options

* [RCS0027i](RCS0027i.md) \- Add newline after binary operator instead of before it\.
### Add newline after binary operator instead of before it

```editorconfig
roslynator.RCS0027.invert = true
```

## Remarks

Expand All @@ -42,7 +46,6 @@ This rule was originally introduced as [RCS1029](RCS1029.md)

## See Also

* [Analyzer Options](../AnalyzerOptions.md)
* [How to Suppress a Diagnostic](../HowToConfigureAnalyzers.md#how-to-suppress-a-diagnostic)


Expand Down
7 changes: 5 additions & 2 deletions docs/analyzers/RCS0028.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,11 @@ var y = x

## Options

* [RCS0028i](RCS0028i.md) \- Add newline after conditional operator instead of before it\.
### Add newline after conditional operator instead of before it

```editorconfig
roslynator.RCS0028.invert = true
```

## Remarks

Expand All @@ -38,7 +42,6 @@ This rule was originally introduced as [RCS1184](RCS1184.md)

## See Also

* [Analyzer Options](../AnalyzerOptions.md)
* [How to Suppress a Diagnostic](../HowToConfigureAnalyzers.md#how-to-suppress-a-diagnostic)


Expand Down
7 changes: 5 additions & 2 deletions docs/analyzers/RCS0032.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,18 @@ object Foo()

## Options

* [RCS0032i](RCS0032i.md) \- Add newline after expression\-body arrow instead of before it\.
### Add newline after expression\-body arrow instead of before it

```editorconfig
roslynator.RCS0032.invert = true
```

## Applies to

* [Roslynator.Formatting.Analyzers](https://www.nuget.org/packages/Roslynator.Formatting.Analyzers)

## See Also

* [Analyzer Options](../AnalyzerOptions.md)
* [How to Suppress a Diagnostic](../HowToConfigureAnalyzers.md#how-to-suppress-a-diagnostic)


Expand Down
7 changes: 5 additions & 2 deletions docs/analyzers/RCS0051.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,18 @@ while (x);

## Options

* [RCS0051i](RCS0051i.md) \- Remove newline between closing brace and 'while' keyword\.
### Remove newline between closing brace and 'while' keyword

```editorconfig
roslynator.RCS0051.invert = true
```

## Applies to

* [Roslynator.Formatting.Analyzers](https://www.nuget.org/packages/Roslynator.Formatting.Analyzers)

## See Also

* [Analyzer Options](../AnalyzerOptions.md)
* [How to Suppress a Diagnostic](../HowToConfigureAnalyzers.md#how-to-suppress-a-diagnostic)


Expand Down
7 changes: 5 additions & 2 deletions docs/analyzers/RCS0052.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,18 @@ string s

## Options

* [RCS0052i](RCS0052i.md) \- Add newline after equals sign instead of before it\.
### Add newline after equals sign instead of before it

```editorconfig
roslynator.RCS0052.invert = true
```

## Applies to

* [Roslynator.Formatting.Analyzers](https://www.nuget.org/packages/Roslynator.Formatting.Analyzers)

## See Also

* [Analyzer Options](../AnalyzerOptions.md)
* [How to Suppress a Diagnostic](../HowToConfigureAnalyzers.md#how-to-suppress-a-diagnostic)


Expand Down
6 changes: 3 additions & 3 deletions docs/analyzers/RCS0056.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@

This analyzer reports any line that is longer than maximal length.

Default maximal length is 125. Use EditorConfig to change maximal length \(See [Configuration](#configuration)\).
Default maximal length is 125.

## Configuration
## Options

### EditorConfig File
### Max line length

```editorconfig
roslynator.max_line_length = <MAX_LINE_LENGTH>
Expand Down
14 changes: 11 additions & 3 deletions docs/analyzers/RCS1014.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,20 @@ var items = new string[] { "a", B };

## Options

* [RCS1014a](RCS1014a.md) \- Use implicitly typed array \(when type is obvious\)\.
* [RCS1014i](RCS1014i.md) \- Use implicitly typed array\.
### Use implicitly typed array \(when type is obvious\)

```editorconfig
roslynator.RCS1014.use_implicit_type_when_obvious = true
```

### Use implicitly typed array

```editorconfig
roslynator.RCS1014.invert = true
```

## See Also

* [Analyzer Options](../AnalyzerOptions.md)
* [How to Suppress a Diagnostic](../HowToConfigureAnalyzers.md#how-to-suppress-a-diagnostic)


Expand Down
20 changes: 17 additions & 3 deletions docs/analyzers/RCS1016.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,26 @@ public string Foo() => "";

## Options

* [RCS1016a](RCS1016a.md) \- Convert expression\-body to block body when expression is multi\-line\.
* [RCS1016b](RCS1016b.md) \- Convert expression\-body to block body when declaration is multi\-line\.
### Convert expression\-body to block body when expression is multi\-line

```editorconfig
roslynator.RCS1016.use_block_body_when_expression_is_multiline = true
```

### Convert expression\-body to block body when declaration is multi\-line

```editorconfig
roslynator.RCS1016.use_block_body_when_declaration_is_multiline = true
```

### Convert expression\-body to block body

```editorconfig
roslynator.RCS1016.invert = true
```

## See Also

* [Analyzer Options](../AnalyzerOptions.md)
* [How to Suppress a Diagnostic](../HowToConfigureAnalyzers.md#how-to-suppress-a-diagnostic)


Expand Down
7 changes: 5 additions & 2 deletions docs/analyzers/RCS1018.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,14 @@ internal class Foo

## Options

* [RCS1018i](RCS1018i.md) \- Remove accessibility modifiers\.
### Remove accessibility modifiers

```editorconfig
roslynator.RCS1018.invert = true
```

## See Also

* [Analyzer Options](../AnalyzerOptions.md)
* [How to Suppress a Diagnostic](../HowToConfigureAnalyzers.md#how-to-suppress-a-diagnostic)


Expand Down
7 changes: 5 additions & 2 deletions docs/analyzers/RCS1036.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,14 @@ public class Foo

## Options

* [RCS1036a](RCS1036a.md) \- Remove empty line between closing brace and switch section\.
### Remove empty line between closing brace and switch section

```editorconfig
roslynator.RCS1036.remove_empty_line_between_closing_brace_and_switch_section = true
```

## See Also

* [Analyzer Options](../AnalyzerOptions.md)
* [How to Suppress a Diagnostic](../HowToConfigureAnalyzers.md#how-to-suppress-a-diagnostic)


Expand Down
7 changes: 5 additions & 2 deletions docs/analyzers/RCS1045.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,14 @@ private string _f;

## Options

* [RCS1045a](RCS1045a.md) \- Do not rename private static read\-only field to camel case with underscore\.
### Do not rename private static field to camel case with underscore

```editorconfig
roslynator.RCS1045.suppress_when_field_is_static = true
```

## See Also

* [Analyzer Options](../AnalyzerOptions.md)
* [How to Suppress a Diagnostic](../HowToConfigureAnalyzers.md#how-to-suppress-a-diagnostic)


Expand Down
7 changes: 5 additions & 2 deletions docs/analyzers/RCS1050.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,14 @@ var items = new List<string>() { "a", "b", "c" };

## Options

* [RCS1050i](RCS1050i.md) \- Remove argument list from object creation expression\.
### Remove argument list from object creation expression

```editorconfig
roslynator.RCS1050.invert = true
```

## See Also

* [Analyzer Options](../AnalyzerOptions.md)
* [How to Suppress a Diagnostic](../HowToConfigureAnalyzers.md#how-to-suppress-a-diagnostic)


Expand Down
7 changes: 5 additions & 2 deletions docs/analyzers/RCS1051.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,14 @@ x = (y != null) ? "true" : "false"

## Options

* [RCS1051a](RCS1051a.md) \- Remove parentheses from condition of conditional expression \(when condition is a single token\)\.
### Remove parentheses from condition of conditional expression \(when condition is a single token\)

```editorconfig
roslynator.RCS1051.do_not_parenthesize_single_token = true
```

## See Also

* [Analyzer Options](../AnalyzerOptions.md)
* [How to Suppress a Diagnostic](../HowToConfigureAnalyzers.md#how-to-suppress-a-diagnostic)


Expand Down
7 changes: 5 additions & 2 deletions docs/analyzers/RCS1078.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,14 @@ string s = "";

## Options

* [RCS1078i](RCS1078i.md) \- Use string\.Empty instead of ""\.
### Use string\.Empty instead of ""

```editorconfig
roslynator.RCS1078.invert = true
```

## See Also

* [Analyzer Options](../AnalyzerOptions.md)
* [How to Suppress a Diagnostic](../HowToConfigureAnalyzers.md#how-to-suppress-a-diagnostic)


Expand Down
7 changes: 5 additions & 2 deletions docs/analyzers/RCS1090.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,14 @@ public async Task FooAsync()

## Options

* [RCS1090i](RCS1090i.md) \- Remove call to 'ConfigureAwait'\.
### Remove call to 'ConfigureAwait'

```editorconfig
roslynator.RCS1090.invert = true
```

## See Also

* [Analyzer Options](../AnalyzerOptions.md)
* [How to Suppress a Diagnostic](../HowToConfigureAnalyzers.md#how-to-suppress-a-diagnostic)


Expand Down
7 changes: 5 additions & 2 deletions docs/analyzers/RCS1096.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,14 @@ options.HasFlag(RegexOptions.IgnoreCase)

## Options

* [RCS1096i](RCS1096i.md) \- Convert bitwise operation to 'HasFlag' call\.
### Convert bitwise operation to 'HasFlag' call

```editorconfig
roslynator.RCS1096.invert = true
```

## See Also

* [Analyzer Options](../AnalyzerOptions.md)
* [How to Suppress a Diagnostic](../HowToConfigureAnalyzers.md#how-to-suppress-a-diagnostic)


Expand Down
Loading

0 comments on commit 3af2f4e

Please sign in to comment.