Skip to content

Commit 2e882b7

Browse files
committed
Update version to 4.1.0
1 parent ab1fd3a commit 2e882b7

File tree

36 files changed

+322
-84
lines changed

36 files changed

+322
-84
lines changed

ChangeLog.md

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,20 @@
11
### Unreleased
22

3-
* Add analyzer NormalizeFormatOfEnumFlagValue (RCS1254)
4-
* Add analyzer FormatDocumentationCommentSummary (RCS1253)
5-
* Add analyzer NormalizeUsageOfInfiniteLoop (RCS1252)
6-
* Add analyzer RemoveUnnecessaryBraces (RCS1251)
7-
* Call AddRange instead of Add (RCS1235)
3+
### 4.1.0 (2022-03-29)
4+
5+
* Add analyzer [RCS1254](https://github.com/JosefPihrt/Roslynator/blob/master/docs/analyzers/RCS1254.md) (Normalize format of enum flag value)
6+
* Add analyzer [RCS1253](https://github.com/JosefPihrt/Roslynator/blob/master/docs/analyzers/RCS1253.md) (Format documentation comment summary)
7+
* Add analyzer [RCS1252](https://github.com/JosefPihrt/Roslynator/blob/master/docs/analyzers/RCS1252.md) (Normalize usage of infinite loop)
8+
* Add analyzer [RCS1251](https://github.com/JosefPihrt/Roslynator/blob/master/docs/analyzers/RCS1251.md) (Remove unnecessary braces from record declaration)
9+
* Add refactoring [Deconstruct foreach variable (RR0217)](https://github.com/JosefPihrt/Roslynator/blob/master/docs/refactoring/RR0217.md)
810
* Add code fix for CS8602, CS8604
9-
* Fix code fix for CS0225
10-
* Put back refactoring SplitLocalDeclarationAndAssignment (RR0194) ([issue](https://github.com/JosefPihrt/Roslynator/issues/881))
11+
* Add suggestion to call AddRange instead of Add (RCS1235)
12+
* Put back refactoring "Split local declaration and assignment" (RR0194) ([issue](https://github.com/JosefPihrt/Roslynator/issues/881))
13+
* Adopt activation events in VS Code extension ([issue](https://github.com/JosefPihrt/Roslynator/issues/883)) (thanks to [ProphetLamb](https://github.com/ProphetLamb))
1114
* Fix: Get config value from global AnalyzerConfig if available ([issue](https://github.com/JosefPihrt/Roslynator/issues/884))
12-
* Add refactoring [Deconstruct foreach variable (RR0217)](https://github.com/JosefPihrt/Roslynator/blob/master/docs/refactoring/RR0217.md)
15+
* Fix: Do not suggest using null-forgiving operator for parameter default value (CS8625)
16+
* Fix: Check if equality operator is overloaded (RCS1171)
17+
* Fix: Do not remove field initialization in struct with constructor(s) (RCS1129)
1318

1419
### 4.0.3 (2022-01-29)
1520

docs/analyzers/RCS0059.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,19 @@
1313
```csharp
1414
items
1515
.Select(selector)
16-
.FirstOrDefault()
17-
?.ToString()
18-
16+
.FirstOrDefault()
17+
?.ToString()
18+
1919
```
2020

2121
### Code with Fix
2222

2323
```csharp
2424
items
2525
.Select(selector)
26-
.FirstOrDefault()?
27-
.ToString()
28-
26+
.FirstOrDefault()?
27+
.ToString()
28+
2929
```
3030

3131
## Options

docs/analyzers/RCS1031.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# RCS1031: Remove unnecessary braces
1+
# RCS1031: Remove unnecessary braces in switch section
22

33
| Property | Value |
44
| -------- | ------- |

docs/analyzers/RCS1063.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# RCS1063: Avoid usage of do statement to create an infinite loop
1+
# RCS1063: \(\[deprecated\] use RCS1252 instead\) Avoid usage of do statement to create an infinite loop
22

33
| Property | Value |
44
| -------- | ------- |

docs/analyzers/RCS1064.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# RCS1064: Avoid usage of for statement to create an infinite loop
1+
# RCS1064: \(\[deprecated\] use RCS1252 instead\) Avoid usage of for statement to create an infinite loop
22

33
| Property | Value |
44
| -------- | ------- |

docs/analyzers/RCS1065.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# RCS1065: Avoid usage of while statement to create an infinite loop
1+
# RCS1065: \(\[deprecated\] use RCS1252 instead\) Avoid usage of while statement to create an infinite loop
22

33
| Property | Value |
44
| -------- | ------- |

docs/analyzers/RCS1100.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# RCS1100: Format documentation summary on a single line
1+
# RCS1100: \(\[deprecated\] use RCS1253 instead\) Format documentation summary on a single line
22

33
| Property | Value |
44
| -------- | ------- |

docs/analyzers/RCS1101.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# RCS1101: Format documentation summary on multiple lines
1+
# RCS1101: \(\[deprecated\] use RCS1253 instead\) Format documentation summary on multiple lines
22

33
| Property | Value |
44
| -------- | ------- |

docs/analyzers/RCS1237.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# RCS1237: Use bit shift operator
1+
# RCS1237: \(\[deprecated\] use RCS1254 instead\) Use bit shift operator
22

33
| Property | Value |
44
| -------- | ------- |

docs/analyzers/RCS1251.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# RCS1251: Remove unnecessary braces from record declaration
2+
3+
| Property | Value |
4+
| -------- | ------- |
5+
| Id | RCS1251 |
6+
| Severity | Info |
7+
8+
## Example
9+
10+
### Code with Diagnostic
11+
12+
```csharp
13+
public record Foo(string Value1, string Value2)
14+
{
15+
}
16+
```
17+
18+
### Code with Fix
19+
20+
```csharp
21+
public record Foo(string Value1, string Value2);
22+
```
23+
24+
25+
*\(Generated with [DotMarkdown](http://github.com/JosefPihrt/DotMarkdown)\)*

0 commit comments

Comments
 (0)