Skip to content

Commit

Permalink
Change version to 3.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
josefpihrt committed Oct 19, 2020
1 parent 26db87b commit 9dc014b
Show file tree
Hide file tree
Showing 85 changed files with 1,672 additions and 307 deletions.
27 changes: 27 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,30 @@
### 3.0.1 (2020-10-19)

* Add analyzer [RCS0055](https://github.com/JosefPihrt/Roslynator/blob/master/docs/analyzers/RCS0055.md) (Fix formatting of a binary expression chain)
* Add analyzer [RCS0054](https://github.com/JosefPihrt/Roslynator/blob/master/docs/analyzers/RCS0054.md) (Fix formatting of a call chain)
* Add analyzer [RCS0053](https://github.com/JosefPihrt/Roslynator/blob/master/docs/analyzers/RCS0053.md) (Fix formatting of a list)
* Add analyzer [RCS0052](https://github.com/JosefPihrt/Roslynator/blob/master/docs/analyzers/RCS0052.md) (Add newline before equals sign instead of after it (or vice versa))
* Add analyzer [RCS1248](https://github.com/JosefPihrt/Roslynator/blob/master/docs/analyzers/RCS1248.md) (Use 'is null' pattern instead of comparison (or vice versa)) ([issue](https://github.com/JosefPihrt/Roslynator/issues/458))
* Add analyzer [RCS1247](https://github.com/JosefPihrt/Roslynator/blob/master/docs/analyzers/RCS1247.md) (Fix documentation comment tag)
* Add analyzer option [RCS1207i](https://github.com/JosefPihrt/Roslynator/blob/master/docs/analyzers/RCS1207i.md) (Convert method group to anonymous function)
* Add analyzer option [RCS1090i](https://github.com/JosefPihrt/Roslynator/blob/master/docs/analyzers/RCS1090i.md) (Remove call to 'ConfigureAwait')
* Add analyzer option [RCS1018i](https://github.com/JosefPihrt/Roslynator/blob/master/docs/analyzers/RCS1018i.md) (Remove accessibility modifiers) ([issue](https://github.com/JosefPihrt/Roslynator/issues/260))
* Add analyzer option [RCS1014i](https://github.com/JosefPihrt/Roslynator/blob/master/docs/analyzers/RCS1014i.md) (Use implicitly typed array)
* Add analyzer option [RCS1014a](https://github.com/JosefPihrt/Roslynator/blob/master/docs/analyzers/RCS1014a.md) (Use implicitly typed array (when type is obvious))
* Add analyzer option [RCS1078i](https://github.com/JosefPihrt/Roslynator/blob/master/docs/analyzers/RCS1078i.md) (Use string.Empty instead of "")
* Add analyzer option [RCS1016a](https://github.com/JosefPihrt/Roslynator/blob/master/docs/analyzers/RCS1016a.md) (Convert expression-body to block body when expression is multi-line)
* Add analyzer option [RCS1016b](https://github.com/JosefPihrt/Roslynator/blob/master/docs/analyzers/RCS1016b.md) (Convert expression-body to block body when declaration is multi-line)
* Disable by default analyzer [RCS1207i](https://github.com/JosefPihrt/Roslynator/blob/master/docs/analyzers/RCS1207i.md) (Convert method group to anonymous function)
* Remove analyzer [RCS1219](https://github.com/JosefPihrt/Roslynator/blob/master/docs/analyzers/RCS1219.md) (Call 'Enumerable.Skip' and 'Enumerable.Any' instead of 'Enumerable.Count')
* Rename analyzer "Avoid 'null' on left side of binary expression" to "Constant values should be placed on right side of comparisons" [RCS1098](https://github.com/JosefPihrt/Roslynator/blob/master/docs/analyzers/RCS1098.md)
* Rename analyzer "Simplify boolean expression" to "Unncessary null check" [RCS1199](https://github.com/JosefPihrt/Roslynator/blob/master/docs/analyzers/RCS1199.md) ([issue](https://github.com/JosefPihrt/Roslynator/issues/373))

* More syntax is considered as having obvious type:
* string literal
* character literal
* boolean literal
* implicit array creation that contains only expressions whose type is obvious

### 3.0.0 (2020-06-16)

* Update references to Roslyn API to 3.5.0
Expand Down
6 changes: 5 additions & 1 deletion docs/analyzers/RCS0047.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
# RCS0047: Wrap and indent each node in list
# RCS0047: \[deprecated\] Wrap and indent each node in list

| Property | Value |
| -------- | ---------- |
| Id | RCS0047 |
| Category | Formatting |
| Severity | None |

## Summary

This analyzer has been deprecated. Use analyzer [RCS0053](RCS0053.md) instead.

## Examples

### Code with Diagnostic
Expand Down
39 changes: 39 additions & 0 deletions docs/analyzers/RCS0052.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# RCS0052: Add newline before equals sign instead of after it \(or vice versa\)

| Property | Value |
| -------- | ---------- |
| Id | RCS0052 |
| Category | Formatting |
| Severity | None |

## Example

### Code with Diagnostic

```csharp
string s = // RCS0052
new string(' ', 4);
```

### Code with Fix

```csharp
string s
= new string(' ', 4);
```

## Options

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

## 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)


*\(Generated with [DotMarkdown](http://github.com/JosefPihrt/DotMarkdown)\)*
37 changes: 37 additions & 0 deletions docs/analyzers/RCS0052i.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# RCS0052i: Add newline after equals sign instead of before it

| Property | Value |
| -------- | -------------- |
| Id | RCS0052i |
| Category | AnalyzerOption |
| Severity | None |

This option modifies behavior of analyzer [RCS0052](RCS0052.md)\. It requires [RCS0052](RCS0052.md) to be enabled\.

## Example

### Code with Diagnostic

```csharp
string s // [|Id|]
= new string(' ', 4);
```

### Code with Fix

```csharp
string s =
new string(' ', 4);
```

## 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)


*\(Generated with [DotMarkdown](http://github.com/JosefPihrt/DotMarkdown)\)*
133 changes: 133 additions & 0 deletions docs/analyzers/RCS0053.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,133 @@
# RCS0053: Fix formatting of a list

| Property | Value |
| -------- | ---------- |
| Id | RCS0053 |
| Category | Formatting |
| Severity | None |

## Summary


This analyzer:
* fixes indentation of argument/parameter list and similar lists
* formats each item in a multi-line list on a separate line

Following formats are considered as valid (for a parameter list):
```cs
void M(object x, object y)
{
}
```
```cs
void M(
object x, object y)
{
}
```
```cs
void M(
object x,
object y)
{
}
```


## Examples

### Code with Diagnostic

```csharp
void M(
object x,
object y)
{
}
```

### Code with Fix

```csharp
void M(
object x,
object y)
{
}
```

- - -

### Code with Diagnostic

```csharp
void M(object x,
object y)
{
}
```

### Code with Fix

```csharp
void M(
object x,
object y)
{
}
```

- - -

### Code with Diagnostic

```csharp
void M(object x,
object y)
{
}
```

### Code with Fix

```csharp
void M(
object x,
object y)
{
}
```

- - -

### Code with Diagnostic

```csharp
void M(
object x,
object y, object z)
{
}
```

### Code with Fix

```csharp
void M(
object x,
object y,
object z)
{
}
```

## Applies to

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

## See Also

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


*\(Generated with [DotMarkdown](http://github.com/JosefPihrt/DotMarkdown)\)*
60 changes: 60 additions & 0 deletions docs/analyzers/RCS0054.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
# RCS0054: Fix formatting of a call chain

| Property | Value |
| -------- | ---------- |
| Id | RCS0054 |
| Category | Formatting |
| Severity | None |

## Summary

This analyzer:
* fixes indentation of multi-line call chain
* formats each call on a separate line


## Examples

### Code with Diagnostic

```csharp
return [|x.M1() // RCS0054
.M2().M3()|];
```

### Code with Fix

```csharp
return [|x.M1()
.M2()
.M3()|];
```

- - -

### Code with Diagnostic

```csharp
return [|x.M1() // RCS0054
.M2()
.M3()|];
```

### Code with Fix

```csharp
return [|x.M1()
.M2()
.M3()|];
```

## Applies to

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

## See Also

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


*\(Generated with [DotMarkdown](http://github.com/JosefPihrt/DotMarkdown)\)*
68 changes: 68 additions & 0 deletions docs/analyzers/RCS0055.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
# RCS0055: Fix formatting of a binary expression chain

| Property | Value |
| -------- | ---------- |
| Id | RCS0055 |
| Category | Formatting |
| Severity | None |

## Summary

This analyzer:
* fixes indentation of multi-line binary expression chain
* formats each expression on a separate line


## Examples

### Code with Diagnostic

```csharp
if (x && y // RCS0055
&& z)
{
}
```

### Code with Fix

```csharp
if (x
&& y
&& z)
{
}
```

- - -

### Code with Diagnostic

```csharp
if (x // RCS0055
&& y
&& z)
{
}
```

### Code with Fix

```csharp
if (x
&& y
&& z)
{
}
```

## Applies to

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

## See Also

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


*\(Generated with [DotMarkdown](http://github.com/JosefPihrt/DotMarkdown)\)*
Loading

0 comments on commit 9dc014b

Please sign in to comment.