-
-
Notifications
You must be signed in to change notification settings - Fork 263
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ab1fd3a
commit 2e882b7
Showing
36 changed files
with
322 additions
and
84 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# RCS1251: Remove unnecessary braces from record declaration | ||
|
||
| Property | Value | | ||
| -------- | ------- | | ||
| Id | RCS1251 | | ||
| Severity | Info | | ||
|
||
## Example | ||
|
||
### Code with Diagnostic | ||
|
||
```csharp | ||
public record Foo(string Value1, string Value2) | ||
{ | ||
} | ||
``` | ||
|
||
### Code with Fix | ||
|
||
```csharp | ||
public record Foo(string Value1, string Value2); | ||
``` | ||
|
||
|
||
*\(Generated with [DotMarkdown](http://github.com/JosefPihrt/DotMarkdown)\)* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# RCS1252: Normalize usage of infinite loop | ||
|
||
| Property | Value | | ||
| --------------- | -------------------------------- | | ||
| Id | RCS1252 | | ||
| Severity | None | | ||
| Required option | `roslynator_infinite_loop_style` | | ||
|
||
## Options | ||
|
||
### Use 'for'/'while' statement as an infinite loop | ||
|
||
```editorconfig | ||
roslynator_infinite_loop_style = for|while | ||
``` | ||
|
||
|
||
*\(Generated with [DotMarkdown](http://github.com/JosefPihrt/DotMarkdown)\)* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# RCS1253: Format documentation comment summary | ||
|
||
| Property | Value | | ||
| --------------- | -------------------------------------- | | ||
| Id | RCS1253 | | ||
| Severity | None | | ||
| Required option | `roslynator_doc_comment_summary_style` | | ||
|
||
## Summary | ||
|
||
This analyzer replaces RCS1100 and RCS1101. | ||
|
||
## Options | ||
|
||
### Format documentation comment summary on single line or multiple lines | ||
|
||
```editorconfig | ||
roslynator_doc_comment_summary_style = multi_line|single_line | ||
``` | ||
|
||
|
||
*\(Generated with [DotMarkdown](http://github.com/JosefPihrt/DotMarkdown)\)* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# RCS1254: Normalize format of enum flag value | ||
|
||
| Property | Value | | ||
| --------------- | ---------------------------------- | | ||
| Id | RCS1254 | | ||
| Severity | Info | | ||
| Required option | `roslynator_enum_flag_value_style` | | ||
|
||
## Options | ||
|
||
### Format enum flag value as decimal number or as a shift operator | ||
|
||
```editorconfig | ||
roslynator_enum_flag_value_style = decimal_number|shift_operator | ||
``` | ||
|
||
|
||
*\(Generated with [DotMarkdown](http://github.com/JosefPihrt/DotMarkdown)\)* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# CS8602 | ||
|
||
| Property | Value | | ||
| -------- | ------------------------------------------ | | ||
| Id | CS8602 | | ||
| Title | Dereference of a possibly null reference\. | | ||
| Severity | Warning | | ||
|
||
## Code Fixes | ||
|
||
* Use null propagation operator | ||
|
||
*\(Generated with [DotMarkdown](http://github.com/JosefPihrt/DotMarkdown)\)* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# CS8604 | ||
|
||
| Property | Value | | ||
| -------- | ------------------------------------------------ | | ||
| Id | CS8604 | | ||
| Title | Possible null reference argument for parameter\. | | ||
| Severity | Warning | | ||
|
||
## Code Fixes | ||
|
||
* Use null\-forgiving operator | ||
|
||
*\(Generated with [DotMarkdown](http://github.com/JosefPihrt/DotMarkdown)\)* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
## Deconstruct foreach variable | ||
|
||
| Property | Value | | ||
| ------------------ | ---------------------------- | | ||
| Id | RR0217 | | ||
| Title | Deconstruct foreach variable | | ||
| Syntax | foreach statement | | ||
| Enabled by Default | ✓ | | ||
|
||
## Summary | ||
|
||
type or identifier | ||
|
||
### Usage | ||
|
||
#### Before | ||
|
||
```csharp | ||
var dic = new Dictionary<string, object>(); | ||
|
||
foreach (var kvp in dic) | ||
{ | ||
var k = kvp.Key; | ||
var v = kvp.Value.ToString(); | ||
} | ||
``` | ||
|
||
#### After | ||
|
||
```csharp | ||
var dic = new Dictionary<string, object>(); | ||
|
||
foreach (var (key, value) in dic) | ||
{ | ||
var k = key; | ||
var v = value.ToString(); | ||
} | ||
``` | ||
|
||
## See Also | ||
|
||
* [Full list of refactorings](Refactorings.md) | ||
|
||
|
||
*\(Generated with [DotMarkdown](http://github.com/JosefPihrt/DotMarkdown)\)* |
Oops, something went wrong.