Skip to content

Commit 3f48e99

Browse files
committed
Change version to 2.2.0.3 (publish Roslynator.Formatting.Analyzers)
1 parent 97bfdf2 commit 3f48e99

Some content is hidden

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

62 files changed

+1923
-16
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ Although Roslynator products are free of charge, any [donation](https://www.payp
4343
| --- | --- | --- |
4444
| [Roslynator.Analyzers](https://www.nuget.org/packages/Roslynator.Analyzers) | [![NuGet](https://img.shields.io/nuget/v/Roslynator.Analyzers.svg)](https://www.nuget.org/packages/Roslynator.Analyzers) | common analyzers (RCS1xxx) |
4545
| [Roslynator.CodeAnalysis.Analyzers](https://www.nuget.org/packages/Roslynator.CodeAnalysis.Analyzers) | [![NuGet](https://img.shields.io/nuget/v/Roslynator.CodeAnalysis.Analyzers.svg)](https://www.nuget.org/packages/Roslynator.CodeAnalysis.Analyzers) | analyzers for Roslyn API (RCS9xxx) |
46+
| [Roslynator.Formatting.Analyzers](https://www.nuget.org/packages/Roslynator.Formatting.Analyzers) | [![NuGet](https://img.shields.io/nuget/v/Roslynator.Formatting.Analyzers.svg)](https://www.nuget.org/packages/Roslynator.Formatting.Analyzers) | formatting analyzers (RCS0xxx) |
4647

4748
## Roslynator API
4849

docs/analyzers/RCS0001.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# RCS0001: Add empty line after embedded statement
2+
3+
| Property | Value |
4+
| -------- | ---------- |
5+
| Id | RCS0001 |
6+
| Category | Formatting |
7+
| Severity | None |
8+
9+
## Example
10+
11+
### Code with Diagnostic
12+
13+
```csharp
14+
if (x)
15+
Foo(); // RCS0001
16+
Bar();
17+
```
18+
19+
### Code with Fix
20+
21+
```csharp
22+
if (x)
23+
Foo();
24+
25+
Bar();
26+
```
27+
28+
## Remarks
29+
30+
This rule was originally introduced as [RCS1030](RCS1030.md)
31+
32+
## Applies to
33+
34+
* [Roslynator.Formatting.Analyzers](https://www.nuget.org/packages/Roslynator.Formatting.Analyzers)
35+
36+
## See Also
37+
38+
* [How to Suppress a Diagnostic](../HowToConfigureAnalyzers.md#how-to-suppress-a-diagnostic)
39+
40+
41+
*\(Generated with [DotMarkdown](http://github.com/JosefPihrt/DotMarkdown)\)*

docs/analyzers/RCS0002.md

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# RCS0002: Add empty line after \#region
2+
3+
| Property | Value |
4+
| -------- | ---------- |
5+
| Id | RCS0002 |
6+
| Category | Formatting |
7+
| Severity | None |
8+
9+
## Example
10+
11+
### Code with Diagnostic
12+
13+
```csharp
14+
class C
15+
{
16+
#region Methods // RCS0002
17+
void M()
18+
{
19+
}
20+
21+
#endregion
22+
}
23+
```
24+
25+
### Code with Fix
26+
27+
```csharp
28+
class C
29+
{
30+
#region Methods
31+
32+
void M()
33+
{
34+
}
35+
36+
#endregion
37+
}
38+
```
39+
40+
## Applies to
41+
42+
* [Roslynator.Formatting.Analyzers](https://www.nuget.org/packages/Roslynator.Formatting.Analyzers)
43+
44+
## See Also
45+
46+
* [How to Suppress a Diagnostic](../HowToConfigureAnalyzers.md#how-to-suppress-a-diagnostic)
47+
48+
49+
*\(Generated with [DotMarkdown](http://github.com/JosefPihrt/DotMarkdown)\)*

docs/analyzers/RCS0003.md

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# RCS0003: Add empty line after using directive list
2+
3+
| Property | Value |
4+
| -------- | ---------- |
5+
| Id | RCS0003 |
6+
| Category | Formatting |
7+
| Severity | None |
8+
9+
## Example
10+
11+
### Code with Diagnostic
12+
13+
```csharp
14+
// Copyright ...
15+
16+
using System;
17+
using System.Linq; // RCS0003
18+
namespace N
19+
{
20+
}
21+
```
22+
23+
### Code with Fix
24+
25+
```csharp
26+
// Copyright ...
27+
28+
using System;
29+
using System.Linq;
30+
31+
namespace N
32+
{
33+
}
34+
```
35+
36+
## Applies to
37+
38+
* [Roslynator.Formatting.Analyzers](https://www.nuget.org/packages/Roslynator.Formatting.Analyzers)
39+
40+
## See Also
41+
42+
* [How to Suppress a Diagnostic](../HowToConfigureAnalyzers.md#how-to-suppress-a-diagnostic)
43+
44+
45+
*\(Generated with [DotMarkdown](http://github.com/JosefPihrt/DotMarkdown)\)*

docs/analyzers/RCS0004.md

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# RCS0004: Add empty line before closing brace of 'do' statement
2+
3+
| Property | Value |
4+
| -------- | ---------- |
5+
| Id | RCS0004 |
6+
| Category | Formatting |
7+
| Severity | None |
8+
9+
## Example
10+
11+
### Code with Diagnostic
12+
13+
```csharp
14+
do
15+
{
16+
Foo(); // RCS0004
17+
} while (x);
18+
```
19+
20+
### Code with Fix
21+
22+
```csharp
23+
do
24+
{
25+
Foo();
26+
27+
} while (x);
28+
```
29+
30+
## Remarks
31+
32+
This rule was originally introduced as [RCS1092](RCS1092.md)
33+
34+
## Applies to
35+
36+
* [Roslynator.Formatting.Analyzers](https://www.nuget.org/packages/Roslynator.Formatting.Analyzers)
37+
38+
## See Also
39+
40+
* [How to Suppress a Diagnostic](../HowToConfigureAnalyzers.md#how-to-suppress-a-diagnostic)
41+
42+
43+
*\(Generated with [DotMarkdown](http://github.com/JosefPihrt/DotMarkdown)\)*

docs/analyzers/RCS0005.md

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# RCS0005: Add empty line before \#endregion
2+
3+
| Property | Value |
4+
| -------- | ---------- |
5+
| Id | RCS0005 |
6+
| Category | Formatting |
7+
| Severity | None |
8+
9+
## Example
10+
11+
### Code with Diagnostic
12+
13+
```csharp
14+
class C
15+
{
16+
#region Methods
17+
18+
void M()
19+
{
20+
}
21+
#endregion // RCS0005
22+
}
23+
```
24+
25+
### Code with Fix
26+
27+
```csharp
28+
class C
29+
{
30+
#region Methods
31+
32+
void M()
33+
{
34+
}
35+
36+
#endregion
37+
}
38+
```
39+
40+
## Applies to
41+
42+
* [Roslynator.Formatting.Analyzers](https://www.nuget.org/packages/Roslynator.Formatting.Analyzers)
43+
44+
## See Also
45+
46+
* [How to Suppress a Diagnostic](../HowToConfigureAnalyzers.md#how-to-suppress-a-diagnostic)
47+
48+
49+
*\(Generated with [DotMarkdown](http://github.com/JosefPihrt/DotMarkdown)\)*

docs/analyzers/RCS0006.md

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# RCS0006: Add empty line before using directive list
2+
3+
| Property | Value |
4+
| -------- | ---------- |
5+
| Id | RCS0006 |
6+
| Category | Formatting |
7+
| Severity | None |
8+
9+
## Example
10+
11+
### Code with Diagnostic
12+
13+
```csharp
14+
// Copyright ...
15+
using System; // RCS0006
16+
using System.Linq;
17+
18+
namespace N
19+
{
20+
}
21+
```
22+
23+
### Code with Fix
24+
25+
```csharp
26+
// Copyright ...
27+
28+
using System;
29+
using System.Linq;
30+
31+
namespace N
32+
{
33+
}
34+
```
35+
36+
## Applies to
37+
38+
* [Roslynator.Formatting.Analyzers](https://www.nuget.org/packages/Roslynator.Formatting.Analyzers)
39+
40+
## See Also
41+
42+
* [How to Suppress a Diagnostic](../HowToConfigureAnalyzers.md#how-to-suppress-a-diagnostic)
43+
44+
45+
*\(Generated with [DotMarkdown](http://github.com/JosefPihrt/DotMarkdown)\)*

docs/analyzers/RCS0007.md

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
# RCS0007: Add empty line between accessors
2+
3+
| Property | Value |
4+
| -------- | ---------- |
5+
| Id | RCS0007 |
6+
| Category | Formatting |
7+
| Severity | None |
8+
9+
## Example
10+
11+
### Code with Diagnostic
12+
13+
```csharp
14+
string P
15+
{
16+
get
17+
{
18+
return _p;
19+
} // RCS0007
20+
set
21+
{
22+
_p = value;
23+
}
24+
}
25+
```
26+
27+
### Code with Fix
28+
29+
```csharp
30+
string P
31+
{
32+
get
33+
{
34+
return _p;
35+
}
36+
37+
set
38+
{
39+
_p = value;
40+
}
41+
}
42+
```
43+
44+
## Remarks
45+
46+
This rule does not enforce an empty line between two single-line accessors.
47+
48+
## Applies to
49+
50+
* [Roslynator.Formatting.Analyzers](https://www.nuget.org/packages/Roslynator.Formatting.Analyzers)
51+
52+
## See Also
53+
54+
* [How to Suppress a Diagnostic](../HowToConfigureAnalyzers.md#how-to-suppress-a-diagnostic)
55+
56+
57+
*\(Generated with [DotMarkdown](http://github.com/JosefPihrt/DotMarkdown)\)*

docs/analyzers/RCS0008.md

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# RCS0008: Add empty line between block and statement
2+
3+
| Property | Value |
4+
| -------- | ---------- |
5+
| Id | RCS0008 |
6+
| Category | Formatting |
7+
| Severity | None |
8+
9+
## Example
10+
11+
### Code with Diagnostic
12+
13+
```csharp
14+
if (x)
15+
{
16+
} // RCS0008
17+
Foo();
18+
```
19+
20+
### Code with Fix
21+
22+
```csharp
23+
if (x)
24+
{
25+
}
26+
27+
Foo();
28+
```
29+
30+
## Remarks
31+
32+
This rule was originally introduced as [RCS1153](RCS1153.md)
33+
34+
## Applies to
35+
36+
* [Roslynator.Formatting.Analyzers](https://www.nuget.org/packages/Roslynator.Formatting.Analyzers)
37+
38+
## See Also
39+
40+
* [How to Suppress a Diagnostic](../HowToConfigureAnalyzers.md#how-to-suppress-a-diagnostic)
41+
42+
43+
*\(Generated with [DotMarkdown](http://github.com/JosefPihrt/DotMarkdown)\)*

0 commit comments

Comments
 (0)