Skip to content

Commit

Permalink
Change version to 2.0.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
josefpihrt committed Oct 14, 2018
1 parent 92cb447 commit 213f72a
Show file tree
Hide file tree
Showing 42 changed files with 205 additions and 81 deletions.
23 changes: 23 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,26 @@
### 2.0.0 (2018-10-14)

#### New Features

* Add nuget package [Roslynator.CommandLine](https://nuget.org/packages/Roslynator.CommandLine)
* [Fix all diagnostics in a solution](http://github.com/JosefPihrt/Roslynator/blob/master/docs/HowToFixAllDiagnostics.md)
* [Generate API documentation](http://github.com/JosefPihrt/Roslynator/blob/master/docs/HowToGenerateDocumentation.md)

#### Analyzers

* Change default severity of [RCS1141](http://github.com/JosefPihrt/Roslynator/blob/master/docs/analyzers/RCS1141.md), [RCS1142](http://github.com/JosefPihrt/Roslynator/blob/master/docs/analyzers/RCS1142.md) and [RCS1165](http://github.com/JosefPihrt/Roslynator/blob/master/docs/analyzers/RCS1165.md) to 'Hidden'
* Disable [RCS1174](http://github.com/JosefPihrt/Roslynator/blob/master/docs/analyzers/RCS1174.md) by default
* Improve analyzer [RCS1128](http://github.com/JosefPihrt/Roslynator/blob/master/docs/analyzers/RCS1128.md) - `x.GetValueOrDefault(y)` can be replaced with `x ?? y`
* Change code fix for [RCS1194](http://github.com/JosefPihrt/Roslynator/blob/master/docs/analyzers/RCS1194.md) - do not generate "serialization" constructor

#### Refactorings

* Add refactoring [RemoveAsyncAwait](http://github.com/JosefPihrt/Roslynator/blob/master/docs/refactorings/RR0209.md) (RR0209)

#### Code Fixes

* Add code fix for CS0119.

### 1.9.2 (2018-08-10)

#### Analyzers
Expand Down
15 changes: 13 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@
* [Release notes](ChangeLog.md)
* Follow on [Twitter](https://twitter.com/roslynator)

### New Features

* [Fix all diagnostics in a solution](docs/HowToFixAllDiagnostics.md)
* [Generate API documentation](docs/HowToGenerateDocumentation.md)

### Donation

> "It's so good, that I made my first ever donation." Mateusz Piasecki, Roslynator user.
Expand Down Expand Up @@ -42,13 +47,17 @@ Although Roslynator products are free of charge, any [donation](https://www.payp

* Package [Roslynator.CSharp](http://www.nuget.org/packages/Roslynator.CSharp/) is a must-have for Roslyn-based development.
* It is built on top of Roslyn API (namely [Microsoft.CodeAnalysis.CSharp](http://www.nuget.org/packages/Microsoft.CodeAnalysis.CSharp/)).
* For more information, please see API [overview](src/CSharp/README.md).
<!--* See [API Reference](docs/api/README.md#_top). -->

### Roslynator.CSharp.Workspaces &ensp;[![NuGet](https://img.shields.io/nuget/v/Roslynator.CSharp.Workspaces.svg)](https://nuget.org/packages/Roslynator.CSharp.Workspaces)

* Package [Roslynator.CSharp.Workspaces](http://www.nuget.org/packages/Roslynator.CSharp.Workspaces/) is a must-have for Roslyn-based development.
* It is built on top of Roslyn API (namely [Microsoft.CodeAnalysis.CSharp.Workspaces](http://www.nuget.org/packages/Microsoft.CodeAnalysis.CSharp.Workspaces/)).
* For more information, please see API [overview](src/CSharp.Workspaces/README.md).
<!-- * See [API Reference](docs/api/README.md#_top). -->

### Roslynator.CommandLine &ensp;[![NuGet](https://img.shields.io/nuget/v/Roslynator.CommandLine.svg)](https://nuget.org/packages/Roslynator.CommandLine)

* See [Roslynator Command-Line Interface](docs/cli/README.md#_top).

## Roslynator for VS Code

Expand All @@ -62,6 +71,8 @@ Please read the [tutorial](docs/RoslynatorForVisualStudioCode.md) how to install
* [How to Configure Analyzers](docs/HowToConfigureAnalyzers.md)
* [How to Configure Refactorings](docs/HowToConfigureRefactorings.md)
* [How to Customize Rules for a Project](docs/HowToCustomizeRulesForProject.md)
* [How to Fix All Diagnostics in a Solution](docs/HowToFixAllDiagnostics.md)
* [How to Generate API Documentation](docs/HowToGenerateDocumentation.md)

## Other Projects

Expand Down
4 changes: 2 additions & 2 deletions docs/analyzers/RCS1141.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# RCS1141: Add parameter to documentation comment
# RCS1141: Add 'param' element to documentation comment

| Property | Value |
| --------------------------- | --------------- |
| Id | RCS1141 |
| Category | Maintainability |
| Default Severity | Info |
| Default Severity | Hidden |
| Enabled by Default | &#x2713; |
| Supports Fade\-Out | \- |
| Supports Fade\-Out Analyzer | \- |
Expand Down
4 changes: 2 additions & 2 deletions docs/analyzers/RCS1142.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# RCS1142: Add type parameter to documentation comment
# RCS1142: Add 'typeparam' element to documentation comment

| Property | Value |
| --------------------------- | --------------- |
| Id | RCS1142 |
| Category | Maintainability |
| Default Severity | Info |
| Default Severity | Hidden |
| Enabled by Default | &#x2713; |
| Supports Fade\-Out | \- |
| Supports Fade\-Out Analyzer | \- |
Expand Down
2 changes: 1 addition & 1 deletion docs/analyzers/RCS1165.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
| --------------------------- | -------- |
| Id | RCS1165 |
| Category | Usage |
| Default Severity | Warning |
| Default Severity | Hidden |
| Enabled by Default | &#x2713; |
| Supports Fade\-Out | \- |
| Supports Fade\-Out Analyzer | \- |
Expand Down
2 changes: 1 addition & 1 deletion docs/analyzers/RCS1174.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
| Id | RCS1174 |
| Category | Redundancy |
| Default Severity | Info |
| Enabled by Default | &#x2713; |
| Enabled by Default | \- |
| Supports Fade\-Out | \- |
| Supports Fade\-Out Analyzer | &#x2713; |

Expand Down
14 changes: 14 additions & 0 deletions docs/cs/CS0119.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# CS0119

| Property | Value |
| ---------------------- | ------------------------------------------------------------------------ |
| Id | CS0119 |
| Title | 'identifier' is a 'construct', which is not valid in the given context\. |
| Severity | Error |
| Official Documentation | [link](https://docs.microsoft.com/cs-cz/dotnet/csharp/misc/cs0119) |

## Code Fixes

* Add argument list

*\(Generated with [DotMarkdown](http://github.com/JosefPihrt/DotMarkdown)\)*
6 changes: 3 additions & 3 deletions docs/refactorings/RR0079.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
## Negate binary expression
## Invert binary expression

| Property | Value |
| ------------------ | ------------------------- |
| Id | RR0079 |
| Title | Negate binary expression |
| Title | Invert binary expression |
| Syntax | logical and/or expression |
| Enabled by Default | &#x2713; |

### Usage

![Negate binary expression](../../images/refactorings/NegateBinaryExpression.png)
![Invert binary expression](../../images/refactorings/InvertBinaryExpression.png)

[full list of refactorings](Refactorings.md)

Expand Down
6 changes: 3 additions & 3 deletions docs/refactorings/RR0080.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
## Negate boolean literal
## Invert boolean literal

| Property | Value |
| ------------------ | ---------------------- |
| Id | RR0080 |
| Title | Negate boolean literal |
| Title | Invert boolean literal |
| Syntax | boolean literal |
| Enabled by Default | &#x2713; |

### Usage

![Negate boolean literal](../../images/refactorings/NegateBooleanLiteral.png)
![Invert boolean literal](../../images/refactorings/InvertBooleanLiteral.png)

[full list of refactorings](Refactorings.md)

Expand Down
6 changes: 3 additions & 3 deletions docs/refactorings/RR0081.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
## Negate is expression
## Invert is expression

| Property | Value |
| ------------------ | -------------------- |
| Id | RR0081 |
| Title | Negate is expression |
| Title | Invert is expression |
| Syntax | is expression |
| Span | operator |
| Enabled by Default | &#x2713; |

### Usage

![Negate is expression](../../images/refactorings/NegateIsExpression.png)
![Invert is expression](../../images/refactorings/InvertIsExpression.png)

[full list of refactorings](Refactorings.md)

Expand Down
6 changes: 3 additions & 3 deletions docs/refactorings/RR0082.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
## Negate operator
## Invert operator

| Property | Value |
| ------------------ | --------------------------------- |
| Id | RR0082 |
| Title | Negate operator |
| Title | Invert operator |
| Syntax | \!=, &&, \|\|, \<, \<=, ==, >, >= |
| Enabled by Default | &#x2713; |

### Usage

![Negate operator](../../images/refactorings/NegateOperator.png)
![Invert operator](../../images/refactorings/InvertOperator.png)

[full list of refactorings](Refactorings.md)

Expand Down
39 changes: 39 additions & 0 deletions docs/refactorings/RR0209.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
## Remove async/await

| Property | Value |
| ------------------ | ------------------------------------------------------------ |
| Id | RR0209 |
| Title | Remove async/await |
| Syntax | method declaration, local function, lambda, anonymous method |
| Span | async keyword |
| Enabled by Default | &#x2713; |

### Usage

#### Before

```csharp
class C
{
async Task<object> FooAsync()
{
return await BarAsync().ConfigureAwait(false);
}
}
```

#### After

```csharp
class C
{
Task<object> FooAsync()
{
return BarAsync();
}
}
```

[full list of refactorings](Refactorings.md)

*\(Generated with [DotMarkdown](http://github.com/JosefPihrt/DotMarkdown)\)*
71 changes: 50 additions & 21 deletions docs/refactorings/Refactorings.md
Original file line number Diff line number Diff line change
Expand Up @@ -719,6 +719,16 @@ void Foo()
* **Syntax**: expression statement, expression in using statement
![Introduce local variable](../../images/refactorings/IntroduceLocalVariable.png)

#### Invert binary expression \(RR0079\)

* **Syntax**: logical and/or expression
![Invert binary expression](../../images/refactorings/InvertBinaryExpression.png)

#### Invert boolean literal \(RR0080\)

* **Syntax**: boolean literal
![Invert boolean literal](../../images/refactorings/InvertBooleanLiteral.png)

#### Invert conditional expression \(RR0160\)

* **Syntax**: conditional expression
Expand Down Expand Up @@ -794,6 +804,17 @@ if (condition1)
* **Span**: if keyword
![Invert if-else](../../images/refactorings/InvertIfElse.png)

#### Invert is expression \(RR0081\)

* **Syntax**: is expression
* **Span**: operator
![Invert is expression](../../images/refactorings/InvertIsExpression.png)

#### Invert operator \(RR0082\)

* **Syntax**: \!=, &&, \|\|, \<, \<=, ==, >, >=
![Invert operator](../../images/refactorings/InvertOperator.png)

#### Invert prefix/postfix unary operator \(RR0134\)

* **Syntax**: prefix/postfix unary expression
Expand Down Expand Up @@ -935,27 +956,6 @@ public unsafe class Foo
}
```

#### Negate binary expression \(RR0079\)

* **Syntax**: logical and/or expression
![Negate binary expression](../../images/refactorings/NegateBinaryExpression.png)

#### Negate boolean literal \(RR0080\)

* **Syntax**: boolean literal
![Negate boolean literal](../../images/refactorings/NegateBooleanLiteral.png)

#### Negate is expression \(RR0081\)

* **Syntax**: is expression
* **Span**: operator
![Negate is expression](../../images/refactorings/NegateIsExpression.png)

#### Negate operator \(RR0082\)

* **Syntax**: \!=, &&, \|\|, \<, \<=, ==, >, >=
![Negate operator](../../images/refactorings/NegateOperator.png)

#### Notify property changed \(RR0083\)

* **Syntax**: property in class/struct that implements INotifyPropertyChanged
Expand Down Expand Up @@ -1015,6 +1015,35 @@ public unsafe class Foo
* **Span**: opening or closing brace
![Remove all switch sections](../../images/refactorings/RemoveAllSwitchSections.png)

#### Remove async/await \(RR0209\)

* **Syntax**: method declaration, local function, lambda, anonymous method
* **Span**: async keyword

#### Before

```csharp
class C
{
async Task<object> FooAsync()
{
return await BarAsync().ConfigureAwait(false);
}
}
```

#### After

```csharp
class C
{
Task<object> FooAsync()
{
return BarAsync();
}
}
```

#### Remove braces \(RR0094\)

* **Syntax**: do statement, else clause, fixed statement, for statement, foreach statement, if statement, lock statement, using statement, while statement
Expand Down
File renamed without changes
File renamed without changes
2 changes: 1 addition & 1 deletion src/Analyzers.CodeFixes/Analyzers.CodeFixes.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
</PropertyGroup>

<PropertyGroup>
<Version>1.9.2.0</Version>
<Version>2.0.0.0</Version>
<AssemblyName>Roslynator.CSharp.Analyzers.CodeFixes</AssemblyName>
<RootNamespace>Roslynator.CSharp</RootNamespace>
<CodeAnalysisRuleSet>..\global.ruleset</CodeAnalysisRuleSet>
Expand Down
2 changes: 1 addition & 1 deletion src/Analyzers.CodeFixes/Roslynator.Analyzers.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
<metadata minClientVersion="2.8">
<id>Roslynator.Analyzers</id>
<version>1.9.0</version>
<version>2.0.0-rc</version>
<authors>Josef Pihrt</authors>
<owners>Josef Pihrt</owners>
<licenseUrl>http://github.com/JosefPihrt/Roslynator/blob/master/LICENSE.txt</licenseUrl>
Expand Down
2 changes: 1 addition & 1 deletion src/Analyzers/Analyzers.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
</PropertyGroup>

<PropertyGroup>
<Version>1.9.2.0</Version>
<Version>2.0.0.0</Version>
<AssemblyName>Roslynator.CSharp.Analyzers</AssemblyName>
<RootNamespace>Roslynator.CSharp</RootNamespace>
<CodeAnalysisRuleSet>..\global.ruleset</CodeAnalysisRuleSet>
Expand Down
6 changes: 3 additions & 3 deletions src/Analyzers/AnalyzersByCategory.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@
| General | [Use linefeed as newline](../../docs/analyzers/RCS1086.md) | RCS1086 | \- |
| General | [Use space(s) instead of tab](../../docs/analyzers/RCS1088.md) | RCS1088 | \- |
| Maintainability | [Add exception to documentation comment](../../docs/analyzers/RCS1140.md) | RCS1140 | &#x2713; |
| Maintainability | [Add parameter to documentation comment](../../docs/analyzers/RCS1141.md) | RCS1141 | &#x2713; |
| Maintainability | [Add 'param' element to documentation comment](../../docs/analyzers/RCS1141.md) | RCS1141 | &#x2713; |
| Maintainability | [Add summary element to documentation comment](../../docs/analyzers/RCS1139.md) | RCS1139 | &#x2713; |
| Maintainability | [Add summary to documentation comment](../../docs/analyzers/RCS1138.md) | RCS1138 | &#x2713; |
| Maintainability | [Add type parameter to documentation comment](../../docs/analyzers/RCS1142.md) | RCS1142 | &#x2713; |
| Maintainability | [Add 'typeparam' element to documentation comment](../../docs/analyzers/RCS1142.md) | RCS1142 | &#x2713; |
| Maintainability | [Declare each type in separate file](../../docs/analyzers/RCS1060.md) | RCS1060 | \- |
| Maintainability | [Parameter name differs from base name](../../docs/analyzers/RCS1168.md) | RCS1168 | &#x2713; |
| Maintainability | [Remove original exception from throw statement](../../docs/analyzers/RCS1044.md) | RCS1044 | &#x2713; |
Expand Down Expand Up @@ -105,7 +105,7 @@
| Redundancy | [Remove 'partial' modifier from type with a single part](../../docs/analyzers/RCS1043.md) | RCS1043 | &#x2713; |
| Redundancy | [Remove redundant 'as' operator](../../docs/analyzers/RCS1145.md) | RCS1145 | &#x2713; |
| Redundancy | [Remove redundant assignment](../../docs/analyzers/RCS1212.md) | RCS1212 | &#x2713; |
| Redundancy | [Remove redundant async/await](../../docs/analyzers/RCS1174.md) | RCS1174 | &#x2713; |
| Redundancy | [Remove redundant async/await](../../docs/analyzers/RCS1174.md) | RCS1174 | \- |
| Redundancy | [Remove redundant auto-property initialization](../../docs/analyzers/RCS1188.md) | RCS1188 | &#x2713; |
| Redundancy | [Remove redundant base constructor call](../../docs/analyzers/RCS1071.md) | RCS1071 | &#x2713; |
| Redundancy | [Remove redundant base interface](../../docs/analyzers/RCS1182.md) | RCS1182 | &#x2713; |
Expand Down
Loading

0 comments on commit 213f72a

Please sign in to comment.