Skip to content

Commit e445a1b

Browse files
committed
Change version to 2.1.1
1 parent 1b6f637 commit e445a1b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+399
-161
lines changed

ChangeLog.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
### 2.1.1 (2019-05-13)
2+
3+
#### Analyzers
4+
5+
* Add analyzer [OptimizeMethodCall](http://github.com/JosefPihrt/Roslynator/blob/master/docs/analyzers/RCS1235.md) (RCS1235).
6+
* Incorporate RCS1150 and RCS1178 into RCS1235.
7+
* Enable by default analyzer [FormatEmptyBlock](http://github.com/JosefPihrt/Roslynator/blob/master/docs/analyzers/RCS1023.md) (RCS1023) and change default severity to 'Hidden'.
8+
* Change default severity of analyzer [ParameterNameDiffersFromBaseName](http://github.com/JosefPihrt/Roslynator/blob/master/docs/analyzers/RCS1168.md) (RCS1168) to 'Hidden'.
9+
10+
#### Refactorings
11+
12+
* Add refactoring [DuplicateSwitchSection](http://github.com/JosefPihrt/Roslynator/blob/master/docs/refactorings/RR0214.md) (RR0214)
13+
114
### 2.1.0 (2019-03-25)
215

316
* Export/import Visual Studio options.

docs/analyzers/RCS1023.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,21 @@
44
| -------- | ---------- |
55
| Id | RCS1023 |
66
| Category | Formatting |
7-
| Severity | None |
7+
| Severity | Hidden |
88

99
## Example
1010

1111
### Code with Diagnostic
1212

1313
```csharp
14-
public void Foo()
14+
void Foo()
1515
{ } // RCS1023
1616
```
1717

1818
### Code with Fix
1919

2020
```csharp
21-
public void Foo()
21+
void Foo()
2222
{
2323
}
2424
```

docs/analyzers/RCS1024.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@
1111
### Code with Diagnostic
1212

1313
```csharp
14-
public string Foo { get { return _foo; } set { _foo = value; } } // RCS1024
14+
string Foo { get { return _foo; } set { _foo = value; } } // RCS1024
1515
```
1616

1717
### Code with Fix
1818

1919
```csharp
20-
public string Foo
20+
string Foo
2121
{
2222
get { return _foo; }
2323
set { _foo = value; }

docs/analyzers/RCS1025.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@
1111
### Code with Diagnostic
1212

1313
```csharp
14-
public enum Foo { A, B, C, } // RCS1025
14+
enum Foo { A, B, C, } // RCS1025
1515
```
1616

1717
### Code with Fix
1818

1919
```csharp
20-
public enum Foo
20+
enum Foo
2121
{
2222
A,
2323
B,

docs/analyzers/RCS1026.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@
1111
### Code with Diagnostic
1212

1313
```csharp
14-
string s = ""; Foo(s); // RCS1026
14+
Foo(); Bar(); // RCS1026
1515
```
1616

1717
### Code with Fix
1818

1919
```csharp
20-
string s = "";
21-
Foo(s);
20+
Foo();
21+
Bar();
2222
```
2323

2424
## See Also

docs/analyzers/RCS1027.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@
1111
### Code with Diagnostic
1212

1313
```csharp
14-
if (condition) Foo(); // RCS1027
14+
if (x) Foo(); // RCS1027
1515
```
1616

1717
### Code with Fix
1818

1919
```csharp
20-
if (condition)
20+
if (x)
2121
{
2222
Foo();
2323
}

docs/analyzers/RCS1028.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
### Code with Diagnostic
1212

1313
```csharp
14-
switch (s)
14+
switch (x)
1515
{
1616
case "a": return Foo(); // RCS1028
1717
case "b": return Bar();
@@ -21,7 +21,7 @@ switch (s)
2121
### Code with Fix
2222

2323
```csharp
24-
switch (s)
24+
switch (x)
2525
{
2626
case "a":
2727
return Foo();

docs/analyzers/RCS1029.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ if (x && // RCS1029
1515
y &&
1616
z)
1717
{
18-
1918
}
2019
```
2120

@@ -26,7 +25,6 @@ if (x
2625
&& y
2726
&& z)
2827
{
29-
3028
}
3129
```
3230

docs/analyzers/RCS1030.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@
1313
```csharp
1414
if (x)
1515
Foo(); // RCS1030
16-
if (y)
17-
Bar();
16+
Bar();
1817
```
1918

2019
### Code with Fix
@@ -23,8 +22,7 @@ if (y)
2322
if (x)
2423
Foo();
2524

26-
if (y)
27-
Bar();
25+
Bar();
2826
```
2927

3028
## See Also

docs/analyzers/RCS1057.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -11,25 +11,25 @@
1111
### Code with Diagnostic
1212

1313
```csharp
14-
public class Foo
14+
class Foo
1515
{
16-
public void M1()
16+
void M1()
1717
{
1818
} // RCS1057
19-
public void M2()
19+
void M2()
2020
{
2121
} // RCS1057
2222
/// <summary>
2323
/// ...
2424
/// </summary>
25-
public void M3()
25+
void M3()
2626
{
2727
} // RCS1057
28-
public string P1 { get; set; } // RCS1057
28+
string P1 { get; set; } // RCS1057
2929
[Obsolete]
30-
public string P2 { get; set; }
30+
string P2 { get; set; }
3131
} // RCS1057
32-
public enum FooEnum
32+
enum Bar
3333
{
3434
A = 0, // RCS1057
3535
/// <summary>
@@ -44,30 +44,30 @@ public enum FooEnum
4444
### Code with Fix
4545

4646
```csharp
47-
public class Foo
47+
class Foo
4848
{
49-
public void M1()
49+
void M1()
5050
{
5151
}
5252

53-
public void M2()
53+
void M2()
5454
{
5555
}
5656

5757
/// <summary>
5858
/// ...
5959
/// </summary>
60-
public void M3()
60+
void M3()
6161
{
6262
}
6363

64-
public string P1 { get; set; }
64+
string P1 { get; set; }
6565

6666
[Obsolete]
67-
public string P2 { get; set; }
67+
string P2 { get; set; }
6868
}
6969

70-
public enum FooEnum
70+
enum Bar
7171
{
7272
A = 0,
7373

0 commit comments

Comments
 (0)