Skip to content

Commit

Permalink
Change version to 2.2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
josefpihrt committed Sep 28, 2019
1 parent a54ca6f commit 7ce616c
Show file tree
Hide file tree
Showing 52 changed files with 428 additions and 422 deletions.
1 change: 1 addition & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ Guidelines for contributing to the Roslynator repo.

## Creating Issues

* **DO** create a new issue rather than commenting a closed issue.
* **DO** include analyzer/refactoring/error ID in a title (i.e. RCSxxxx, RRxxxx or CSxxxx).
* **DO** use a descriptive title that identifies the issue or requested feature.
* **DO** specify a detailed description of the issue or requested feature.
Expand Down
6 changes: 6 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
### 2.2.0 (2019-09-28)

#### Analyzers

* Disable analyzer [FormatBinaryOperatorOnNextLine](http://github.com/JosefPihrt/Roslynator/blob/master/docs/analyzers/RCS1029.md) by default.

### 2.1.3 (2019-08-06)

#### Analyzers
Expand Down
2 changes: 1 addition & 1 deletion docs/analyzers/RCS1018.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# RCS1018: Add default access modifier
# RCS1018: Add accessibility modifiers

| Property | Value |
| -------- | ----------- |
Expand Down
2 changes: 1 addition & 1 deletion docs/analyzers/RCS1029.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
| -------- | ---------- |
| Id | RCS1029 |
| Category | Formatting |
| Severity | Info |
| Severity | None |

## Example

Expand Down
2 changes: 1 addition & 1 deletion docs/analyzers/RCS1073.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# RCS1073: Replace if statement with return statement
# RCS1073: Convert 'if' to 'return' statement

| Property | Value |
| -------- | -------------- |
Expand Down
2 changes: 1 addition & 1 deletion docs/analyzers/RCS1103.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# RCS1103: Replace if statement with assignment
# RCS1103: Convert 'if' to assignment

| Property | Value |
| -------- | -------------- |
Expand Down
2 changes: 1 addition & 1 deletion docs/analyzers/RCS1217.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# RCS1217: Replace interpolated string with concatenation
# RCS1217: Convert interpolated string to concatenation

| Property | Value |
| -------- | ----------- |
Expand Down
18 changes: 9 additions & 9 deletions docs/refactorings/RR0123.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
## Replace do statement with while statement

| Property | Value |
| ------------------ | ----------------------------------------- |
| Id | RR0123 |
| Title | Replace do statement with while statement |
| Syntax | do statement |
| Span | do keyword |
| Enabled by Default | ✓ |
## Convert 'do' to 'while'

| Property | Value |
| ------------------ | ----------------------- |
| Id | RR0123 |
| Title | Convert 'do' to 'while' |
| Syntax | do statement |
| Span | do keyword |
| Enabled by Default | ✓ |

### Usage

Expand Down
16 changes: 8 additions & 8 deletions docs/refactorings/RR0129.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
## Replace foreach statement with for statement
## Convert 'foreach' to 'for'

| Property | Value |
| ------------------ | -------------------------------------------- |
| Id | RR0129 |
| Title | Replace foreach statement with for statement |
| Syntax | foreach statement |
| Enabled by Default | ✓ |
| Property | Value |
| ------------------ | -------------------------- |
| Id | RR0129 |
| Title | Convert 'foreach' to 'for' |
| Syntax | foreach statement |
| Enabled by Default | ✓ |

### Usage

![Replace foreach statement with for statement](../../images/refactorings/ReplaceForEachWithFor.png)
![Convert 'foreach' to 'for'](../../images/refactorings/ConvertForEachToFor.png)

## See Also

Expand Down
16 changes: 8 additions & 8 deletions docs/refactorings/RR0130.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
## Replace for statement with foreach statement
## Convert 'for' to 'foreach'

| Property | Value |
| ------------------ | -------------------------------------------- |
| Id | RR0130 |
| Title | Replace for statement with foreach statement |
| Syntax | for statement |
| Enabled by Default | ✓ |
| Property | Value |
| ------------------ | -------------------------- |
| Id | RR0130 |
| Title | Convert 'for' to 'foreach' |
| Syntax | for statement |
| Enabled by Default | ✓ |

### Usage

![Replace for statement with foreach statement](../../images/refactorings/ReplaceForWithForEach.png)
![Convert 'for' to 'foreach'](../../images/refactorings/ConvertForToForEach.png)

## See Also

Expand Down
18 changes: 9 additions & 9 deletions docs/refactorings/RR0131.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
## Replace for statement with while statement
## Convert 'for' to 'while'

| Property | Value |
| ------------------ | ------------------------------------------ |
| Id | RR0131 |
| Title | Replace for statement with while statement |
| Syntax | for statement |
| Span | for keyword or selected for statement |
| Enabled by Default | ✓ |
| Property | Value |
| ------------------ | ------------------------------------- |
| Id | RR0131 |
| Title | Convert 'for' to 'while' |
| Syntax | for statement |
| Span | for keyword or selected for statement |
| Enabled by Default | ✓ |

### Usage

![Replace for statement with while statement](../../images/refactorings/ReplaceForWithWhile.png)
![Convert 'for' to 'while'](../../images/refactorings/ConvertForToWhile.png)

## See Also

Expand Down
16 changes: 8 additions & 8 deletions docs/refactorings/RR0132.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
## Replace hexadecimal literal with decimal literal
## Convert hexadecimal literal to decimal literal

| Property | Value |
| ------------------ | ------------------------------------------------ |
| Id | RR0132 |
| Title | Replace hexadecimal literal with decimal literal |
| Syntax | hexadecimal literal |
| Enabled by Default | ✓ |
| Property | Value |
| ------------------ | ---------------------------------------------- |
| Id | RR0132 |
| Title | Convert hexadecimal literal to decimal literal |
| Syntax | hexadecimal literal |
| Enabled by Default | ✓ |

### Usage

![Replace hexadecimal literal with decimal literal](../../images/refactorings/ReplaceHexadecimalLiteralWithDecimalLiteral.png)
![Convert hexadecimal literal to decimal literal](../../images/refactorings/ConvertHexadecimalLiteralToDecimalLiteral.png)

## See Also

Expand Down
4 changes: 2 additions & 2 deletions docs/refactorings/RR0133.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
## Replace if with switch
## Convert 'if' to 'switch'

| Property | Value |
| ------------------ | --------------------------------------- |
| Id | RR0133 |
| Title | Replace if with switch |
| Title | Convert 'if' to 'switch' |
| Syntax | if statement |
| Span | top if keyword or selected if statement |
| Enabled by Default | ✓ |
Expand Down
16 changes: 8 additions & 8 deletions docs/refactorings/RR0136.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
## Replace interpolated string with string literal
## Convert interpolated string to string literal

| Property | Value |
| ------------------ | ----------------------------------------------- |
| Id | RR0136 |
| Title | Replace interpolated string with string literal |
| Syntax | Interpolated string without any interpolation |
| Enabled by Default | ✓ |
| Property | Value |
| ------------------ | --------------------------------------------- |
| Id | RR0136 |
| Title | Convert interpolated string to string literal |
| Syntax | Interpolated string without any interpolation |
| Enabled by Default | ✓ |

### Usage

![Replace interpolated string with string literal](../../images/refactorings/ReplaceInterpolatedStringWithStringLiteral.png)
![Convert interpolated string to string literal](../../images/refactorings/ConvertInterpolatedStringToStringLiteral.png)

## See Also

Expand Down
16 changes: 8 additions & 8 deletions docs/refactorings/RR0142.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
## Replace regular string literal with verbatim string literal
## Convert regular string literal to verbatim string literal

| Property | Value |
| ------------------ | ----------------------------------------------------------- |
| Id | RR0142 |
| Title | Replace regular string literal with verbatim string literal |
| Syntax | regular string literal |
| Enabled by Default | ✓ |
| Property | Value |
| ------------------ | --------------------------------------------------------- |
| Id | RR0142 |
| Title | Convert regular string literal to verbatim string literal |
| Syntax | regular string literal |
| Enabled by Default | ✓ |

### Usage

![Replace regular string literal with verbatim string literal](../../images/refactorings/ReplaceRegularStringLiteralWithVerbatimStringLiteral.png)
![Convert regular string literal to verbatim string literal](../../images/refactorings/ConvertRegularStringLiteralToVerbatimStringLiteral.png)

## See Also

Expand Down
6 changes: 3 additions & 3 deletions docs/refactorings/RR0143.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
## Replace \(yield\) return statement with if\-else
## Convert '\(yield\) return' to 'if'

| Property | Value |
| ------------------ | --------------------------------------------------- |
| Id | RR0143 |
| Title | Replace \(yield\) return statement with if\-else |
| Title | Convert '\(yield\) return' to 'if' |
| Syntax | return statement, yield return statement |
| Span | selected statement, yield keyword or return keyword |
| Enabled by Default | ✓ |

### Usage

![Replace (yield) return statement with if-else](../../images/refactorings/ReplaceReturnStatementWithIfElse.png)
![Convert '(yield) return' to 'if'](../../images/refactorings/ReplaceReturnStatementWithIfElse.png)

## See Also

Expand Down
6 changes: 3 additions & 3 deletions docs/refactorings/RR0145.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
## Replace string\.Format with interpolated string
## Convert 'string\.Format' to interpolated string

| Property | Value |
| ------------------ | ----------------------------------------------- |
| Id | RR0145 |
| Title | Replace string\.Format with interpolated string |
| Title | Convert 'string\.Format' to interpolated string |
| Syntax | string\.Format method |
| Enabled by Default | ✓ |

### Usage

![Replace string.Format with interpolated string](../../images/refactorings/ReplaceStringFormatWithInterpolatedString.png)
![Convert 'string.Format' to interpolated string](../../images/refactorings/ConvertStringFormatToInterpolatedString.png)

## See Also

Expand Down
18 changes: 9 additions & 9 deletions docs/refactorings/RR0147.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
## Replace switch with if
## Convert 'switch to 'if'

| Property | Value |
| ------------------ | ---------------------- |
| Id | RR0147 |
| Title | Replace switch with if |
| Syntax | switch statement |
| Span | switch keyword |
| Enabled by Default | ✓ |
| Property | Value |
| ------------------ | ----------------------- |
| Id | RR0147 |
| Title | Convert 'switch to 'if' |
| Syntax | switch statement |
| Span | switch keyword |
| Enabled by Default | ✓ |

### Usage

![Replace switch with if](../../images/refactorings/ReplaceSwitchWithIf.png)
![Convert 'switch to 'if'](../../images/refactorings/ConvertSwitchToIf.png)

## See Also

Expand Down
16 changes: 8 additions & 8 deletions docs/refactorings/RR0148.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
## Replace verbatim string literal with regular string literal
## Convert verbatim string literal to regular string literal

| Property | Value |
| ------------------ | ----------------------------------------------------------- |
| Id | RR0148 |
| Title | Replace verbatim string literal with regular string literal |
| Syntax | verbatim string literal |
| Enabled by Default | ✓ |
| Property | Value |
| ------------------ | --------------------------------------------------------- |
| Id | RR0148 |
| Title | Convert verbatim string literal to regular string literal |
| Syntax | verbatim string literal |
| Enabled by Default | ✓ |

### Usage

![Replace verbatim string literal with regular string literal](../../images/refactorings/ReplaceVerbatimStringLiteralWithRegularStringLiteral.png)
![Convert verbatim string literal to regular string literal](../../images/refactorings/ConvertVerbatimStringLiteralToRegularStringLiteral.png)

## See Also

Expand Down
16 changes: 8 additions & 8 deletions docs/refactorings/RR0149.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
## Replace verbatim string literal with regular string literals
## Convert verbatim string literal to regular string literals

| Property | Value |
| ------------------ | ------------------------------------------------------------ |
| Id | RR0149 |
| Title | Replace verbatim string literal with regular string literals |
| Syntax | multiline verbatim string literal |
| Enabled by Default | ✓ |
| Property | Value |
| ------------------ | ---------------------------------------------------------- |
| Id | RR0149 |
| Title | Convert verbatim string literal to regular string literals |
| Syntax | multiline verbatim string literal |
| Enabled by Default | ✓ |

### Usage

![Replace verbatim string literal with regular string literals](../../images/refactorings/ReplaceVerbatimStringLiteralWithRegularStringLiterals.png)
![Convert verbatim string literal to regular string literals](../../images/refactorings/ConvertVerbatimStringLiteralToRegularStringLiterals.png)

## See Also

Expand Down
16 changes: 8 additions & 8 deletions docs/refactorings/RR0152.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
## Reverse for loop
## Reverse 'for' loop

| Property | Value |
| ------------------ | ---------------- |
| Id | RR0152 |
| Title | Reverse for loop |
| Syntax | for statement |
| Enabled by Default | ✓ |
| Property | Value |
| ------------------ | ------------------ |
| Id | RR0152 |
| Title | Reverse 'for' loop |
| Syntax | for statement |
| Enabled by Default | ✓ |

### Usage

![Reverse for loop](../../images/refactorings/ReverseForLoop.png)
![Reverse 'for' loop](../../images/refactorings/ReverseForLoop.png)

## See Also

Expand Down
16 changes: 8 additions & 8 deletions docs/refactorings/RR0171.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
## Use string\.Empty instead of ""
## Convert "" to string\.Empty

| Property | Value |
| ------------------ | ------------------------------- |
| Id | RR0171 |
| Title | Use string\.Empty instead of "" |
| Syntax | empty string literal |
| Enabled by Default | \- |
| Property | Value |
| ------------------ | --------------------------- |
| Id | RR0171 |
| Title | Convert "" to string\.Empty |
| Syntax | empty string literal |
| Enabled by Default | \- |

### Usage

![Use string.Empty instead of ""](../../images/refactorings/UseStringEmptyInsteadOfEmptyStringLiteral.png)
![Convert "" to string.Empty](../../images/refactorings/ConvertEmptyStringToStringEmpty.png)

## See Also

Expand Down
Loading

0 comments on commit 7ce616c

Please sign in to comment.