Skip to content

Commit

Permalink
Change version to 1.6.10
Browse files Browse the repository at this point in the history
  • Loading branch information
josefpihrt committed Dec 21, 2017
1 parent eee43b5 commit 4acebed
Show file tree
Hide file tree
Showing 18 changed files with 70 additions and 14 deletions.
12 changes: 12 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
### 1.6.10 (2017-12-21)

#### Analyzers

* Add analyzer [UnusedMemberDeclaration](http://github.com/JosefPihrt/Roslynator/blob/master/docs/analyzers/RCS1213.md) (RCS1213).
* Improve analyzer [UnusedParameter](http://github.com/JosefPihrt/Roslynator/blob/master/docs/analyzers/RCS1163.md)
* Report unused parameters of lambda expressions and anonymous methods.

#### Code Fixes

* Add code fixes for CS0030, CS1597.

### 1.6.0 (2017-12-13)

#### Refactorings
Expand Down
29 changes: 29 additions & 0 deletions docs/analyzers/RCS1213.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# RCS1213: Remove unused member declaration

| Property | Value |
| --------------------------- | ---------- |
| Id | RCS1213 |
| Category | Redundancy |
| Default Severity | Info |
| Enabled by Default | ✓ |
| Supports Fade\-Out | ✓ |
| Supports Fade\-Out Analyzer | - |

## How to Suppress

### SuppressMessageAttribute

```csharp
[assembly: SuppressMessage("Redundancy", "RCS1213:Remove unused member declaration.", Justification = "<Pending>")]
```

### \#pragma

```csharp
#pragma warning disable RCS1213 // Remove unused member declaration.
#pragma warning restore RCS1213 // Remove unused member declaration.
```

### Ruleset

* [How to configure rule set](../HowToConfigureAnalyzers.md)
1 change: 1 addition & 0 deletions source/Analyzers/AnalyzersByCategory.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@
| Redundancy | [Remove trailing white-space](../../docs/analyzers/RCS1037.md) | RCS1037 | &#x2713; |
| Redundancy | [Remove unnecessary case label](../../docs/analyzers/RCS1069.md) | RCS1069 | &#x2713; |
| Redundancy | [Remove unnecessary else clause](../../docs/analyzers/RCS1211.md) | RCS1211 | &#x2713; |
| Redundancy | [Remove unused member declaration](../../docs/analyzers/RCS1213.md) | RCS1213 | &#x2713; |
| Redundancy | [Unused parameter](../../docs/analyzers/RCS1163.md) | RCS1163 | &#x2713; |
| Redundancy | [Unused this parameter](../../docs/analyzers/RCS1175.md) | RCS1175 | &#x2713; |
| Redundancy | [Unused type parameter](../../docs/analyzers/RCS1164.md) | RCS1164 | &#x2713; |
Expand Down
2 changes: 1 addition & 1 deletion source/Analyzers/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
[assembly: AssemblyVersion("1.6.0")]
[assembly: AssemblyVersion("1.6.10")]
//[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: NeutralResourcesLanguage("en-US")]
1 change: 1 addition & 0 deletions source/Analyzers/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -195,3 +195,4 @@
| RCS1210 | [Return Task.FromResult instead of returning null](../../docs/analyzers/RCS1210.md) | Usage | &#x2713; |
| RCS1211 | [Remove unnecessary else clause](../../docs/analyzers/RCS1211.md) | Redundancy | &#x2713; |
| RCS1212 | [Remove redundant assignment](../../docs/analyzers/RCS1212.md) | Redundancy | &#x2713; |
| RCS1213 | [Remove unused member declaration](../../docs/analyzers/RCS1213.md) | Redundancy | &#x2713; |
8 changes: 5 additions & 3 deletions source/CodeFixes/CodeFixesByDiagnosticId.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@
| ---------- | ---------- |
| [CS0019](http://docs.microsoft.com/en-us/dotnet/csharp/language-reference/compiler-messages/cs0019) | RCF0023 |
| [CS0021](http://docs.microsoft.com/en-us/dotnet/csharp/misc/cs0021) | RCF0077 |
| [CS0023](http://docs.microsoft.com/en-us/dotnet/csharp/misc/cs0023) | RCF0039 |
| [CS0029](http://docs.microsoft.com/en-us/dotnet/csharp/language-reference/compiler-messages/cs0029) | RCF0021, RCF0022, RCF0080 |
| [CS0023](http://docs.microsoft.com/en-us/dotnet/csharp/misc/cs0023) | RCF0039, RCF0089 |
| [CS0029](http://docs.microsoft.com/en-us/dotnet/csharp/language-reference/compiler-messages/cs0029) | RCF0021, RCF0022, RCF0080, RCF0090, RCF0092 |
| [CS0030](http://docs.microsoft.com/en-us/dotnet/csharp/misc/cs0030) | RCF0091, RCF0092 |
| [CS0037](http://docs.microsoft.com/en-us/dotnet/csharp/language-reference/compiler-messages/cs0037) | RCF0058 |
| [CS0069](http://docs.microsoft.com/en-us/dotnet/csharp/misc/cs0069) | RCF0032 |
| [CS0077](http://docs.microsoft.com/en-us/dotnet/csharp/misc/cs0077) | RCF0074 |
Expand Down Expand Up @@ -36,7 +37,7 @@
| [CS0173](http://docs.microsoft.com/en-us/dotnet/csharp/language-reference/compiler-messages/cs0173) | RCF0063 |
| [CS0177](http://docs.microsoft.com/en-us/dotnet/csharp/misc/cs0177) | RCF0067 |
| [CS0192](http://docs.microsoft.com/en-us/dotnet/csharp/misc/cs0192) | RCF0027, RCF0070 |
| [CS0201](http://docs.microsoft.com/en-us/dotnet/csharp/language-reference/compiler-messages/cs0201) | RCF0039, RCF0047, RCF0076, RCF0080 |
| [CS0201](http://docs.microsoft.com/en-us/dotnet/csharp/language-reference/compiler-messages/cs0201) | RCF0039, RCF0047, RCF0076, RCF0080, RCF0087 |
| [CS0214](http://docs.microsoft.com/en-us/dotnet/csharp/misc/cs0214) | RCF0050, RCF0051 |
| [CS0216](http://docs.microsoft.com/en-us/dotnet/csharp/misc/cs0216) | RCF0082 |
| [CS0219](http://docs.microsoft.com/en-us/dotnet/csharp/misc/cs0219) | RCF0001 |
Expand Down Expand Up @@ -105,6 +106,7 @@
| [CS1526](http://docs.microsoft.com/en-us/dotnet/csharp/misc/cs1526) | RCF0039 |
| [CS1527](http://docs.microsoft.com/en-us/dotnet/csharp/misc/cs1527) | RCF0029 |
| [CS1591](http://docs.microsoft.com/en-us/dotnet/csharp/language-reference/compiler-messages/cs1591) | RCF0016 |
| [CS1597](http://docs.microsoft.com/en-us/dotnet/csharp/misc/cs1597) | RCF0088 |
| [CS1609](http://docs.microsoft.com/en-us/dotnet/csharp/misc/cs1609) | RCF0055 |
| [CS1615](http://docs.microsoft.com/en-us/dotnet/csharp/misc/cs1615) | RCF0027 |
| [CS1620](http://docs.microsoft.com/en-us/dotnet/csharp/misc/cs1620) | RCF0004 |
Expand Down
2 changes: 1 addition & 1 deletion source/CodeFixes/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
[assembly: AssemblyVersion("1.6.0")]
[assembly: AssemblyVersion("1.6.10")]
//[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: NeutralResourcesLanguage("en-US")]
6 changes: 6 additions & 0 deletions source/CodeFixes/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,13 @@
| RCF0005 | Base base class before any interface | [CS1722](http://docs.microsoft.com/en-us/dotnet/csharp/misc/cs1722) | &#x2713; |
| RCF0029 | Change accessibility | [CS0442](http://docs.microsoft.com/en-us/dotnet/csharp/misc/cs0442), [CS0507](http://docs.microsoft.com/en-us/dotnet/csharp/language-reference/compiler-messages/cs0507), [CS0628](http://docs.microsoft.com/en-us/dotnet/csharp/misc/cs0628), [CS1057](http://docs.microsoft.com/en-us/dotnet/csharp/misc/cs1057), [CS1527](http://docs.microsoft.com/en-us/dotnet/csharp/misc/cs1527) | &#x2713; |
| RCF0085 | Change array type | [CS0246](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/compiler-messages/cs0246) | &#x2713; |
| RCF0091 | Change foreach type | [CS0030](http://docs.microsoft.com/en-us/dotnet/csharp/misc/cs0030) | &#x2713; |
| RCF0080 | Change member type according to return expression | [CS0029](http://docs.microsoft.com/en-us/dotnet/csharp/language-reference/compiler-messages/cs0029), [CS0127](http://docs.microsoft.com/en-us/dotnet/csharp/misc/cs0127), [CS0201](http://docs.microsoft.com/en-us/dotnet/csharp/language-reference/compiler-messages/cs0201), [CS0266](http://docs.microsoft.com/en-us/dotnet/csharp/language-reference/compiler-messages/cs0266), CS1997 | &#x2713; |
| RCF0018 | Change method return type | [CS0508](http://docs.microsoft.com/en-us/dotnet/csharp/misc/cs0508), [CS0766](http://docs.microsoft.com/en-us/dotnet/csharp/misc/cs0766) | &#x2713; |
| RCF0090 | Change type according to initializer | [CS0029](http://docs.microsoft.com/en-us/dotnet/csharp/language-reference/compiler-messages/cs0029) | &#x2713; |
| RCF0041 | Change type of local variable | [CS0123](http://docs.microsoft.com/en-us/dotnet/csharp/misc/cs0123), [CS0407](http://docs.microsoft.com/en-us/dotnet/csharp/misc/cs0407), [CS0815](http://docs.microsoft.com/en-us/dotnet/csharp/misc/cs0815) | &#x2713; |
| RCF0030 | Change type of 'params' parameter | [CS0225](http://docs.microsoft.com/en-us/dotnet/csharp/misc/cs0225) | &#x2713; |
| RCF0092 | Change type to var | [CS0029](http://docs.microsoft.com/en-us/dotnet/csharp/language-reference/compiler-messages/cs0029), [CS0030](http://docs.microsoft.com/en-us/dotnet/csharp/misc/cs0030) | &#x2713; |
| RCF0066 | Combine constraint clauses | [CS0409](http://docs.microsoft.com/en-us/dotnet/csharp/misc/cs0409) | &#x2713; |
| RCF0003 | Create singleton array | [CS0266](http://docs.microsoft.com/en-us/dotnet/csharp/language-reference/compiler-messages/cs0266) | &#x2713; |
| RCF0082 | Define matching operator | [CS0216](http://docs.microsoft.com/en-us/dotnet/csharp/misc/cs0216) | &#x2713; |
Expand All @@ -48,6 +51,7 @@
| RCF0071 | Remove attribute | [CS0592](http://docs.microsoft.com/en-us/dotnet/csharp/language-reference/compiler-messages/cs0592), [CS1689](http://docs.microsoft.com/en-us/dotnet/csharp/misc/cs1689) | &#x2713; |
| RCF0049 | Remove 'await' keyword | [CS1061](http://docs.microsoft.com/en-us/dotnet/csharp/language-reference/compiler-messages/cs1061) | &#x2713; |
| RCF0075 | Remove condition that is always equal to true/false | [CS0472](http://docs.microsoft.com/en-us/dotnet/csharp/misc/cs0472) | &#x2713; |
| RCF0089 | Remove conditional access | [CS0023](http://docs.microsoft.com/en-us/dotnet/csharp/misc/cs0023) | &#x2713; |
| RCF0045 | Remove 'const' modifier | [CS0133](http://docs.microsoft.com/en-us/dotnet/csharp/misc/cs0133) | &#x2713; |
| RCF0065 | Remove constraint | [CS0405](http://docs.microsoft.com/en-us/dotnet/csharp/misc/cs0405), [CS0450](http://docs.microsoft.com/en-us/dotnet/csharp/misc/cs0450), [CS0451](http://docs.microsoft.com/en-us/dotnet/csharp/misc/cs0451) | &#x2713; |
| RCF0043 | Remove constraint clauses | [CS0080](http://docs.microsoft.com/en-us/dotnet/csharp/misc/cs0080) | &#x2713; |
Expand All @@ -66,6 +70,7 @@
| RCF0027 | Remove 'ref' modifier | [CS0192](http://docs.microsoft.com/en-us/dotnet/csharp/misc/cs0192), [CS1615](http://docs.microsoft.com/en-us/dotnet/csharp/misc/cs1615), CS1988, [CS1623](http://docs.microsoft.com/en-us/dotnet/csharp/misc/cs1623) | &#x2713; |
| RCF0057 | Remove return expression | [CS0127](http://docs.microsoft.com/en-us/dotnet/csharp/misc/cs0127), CS1997 | |
| RCF0052 | Remove 'return' keyword | [CS0127](http://docs.microsoft.com/en-us/dotnet/csharp/misc/cs0127), CS1997 | |
| RCF0088 | Remove semicolon | [CS1597](http://docs.microsoft.com/en-us/dotnet/csharp/misc/cs1597) | &#x2713; |
| RCF0060 | Remove 'this' modifier | [CS1100](http://docs.microsoft.com/en-us/dotnet/csharp/misc/cs1100), [CS1105](http://docs.microsoft.com/en-us/dotnet/csharp/misc/cs1105), [CS1106](http://docs.microsoft.com/en-us/dotnet/csharp/misc/cs1106) | &#x2713; |
| RCF0061 | Remove type parameter | [CS0693](http://docs.microsoft.com/en-us/dotnet/csharp/misc/cs0693) | &#x2713; |
| RCF0014 | Remove unused label | [CS0164](http://docs.microsoft.com/en-us/dotnet/csharp/misc/cs0164) | &#x2713; |
Expand All @@ -74,6 +79,7 @@
| RCF0054 | Reorder modifiers | [CS0267](http://docs.microsoft.com/en-us/dotnet/csharp/misc/cs0267) | &#x2713; |
| RCF0074 | Replace as expression with cast expression | [CS0077](http://docs.microsoft.com/en-us/dotnet/csharp/misc/cs0077) | &#x2713; |
| RCF0079 | Replace 'break' with 'continue' | [CS0139](http://docs.microsoft.com/en-us/dotnet/csharp/misc/cs0139) | &#x2713; |
| RCF0087 | Replace conditional expression with if\-else | [CS0201](http://docs.microsoft.com/en-us/dotnet/csharp/language-reference/compiler-messages/cs0201) | &#x2713; |
| RCF0077 | Replace element access with invocation | [CS0021](http://docs.microsoft.com/en-us/dotnet/csharp/misc/cs0021) | &#x2713; |
| RCF0058 | Replace 'null' with default value | [CS0037](http://docs.microsoft.com/en-us/dotnet/csharp/language-reference/compiler-messages/cs0037), [CS0403](http://docs.microsoft.com/en-us/dotnet/csharp/misc/cs0403), CS1750 | &#x2713; |
| RCF0022 | Replace string literal with character literal | [CS0029](http://docs.microsoft.com/en-us/dotnet/csharp/language-reference/compiler-messages/cs0029) | &#x2713; |
Expand Down
2 changes: 1 addition & 1 deletion source/Common/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,6 @@
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
[assembly: AssemblyVersion("1.6.0")]
[assembly: AssemblyVersion("1.6.10")]
//[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: NeutralResourcesLanguage("en-US")]
2 changes: 1 addition & 1 deletion source/Core/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,6 @@
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
[assembly: AssemblyVersion("1.6.0")]
[assembly: AssemblyVersion("1.6.10")]
//[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: NeutralResourcesLanguage("en-US")]
6 changes: 6 additions & 0 deletions source/DefaultConfigFile.xml
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,12 @@
<CodeFix Id="RCF0084" IsEnabled="true" /> <!-- DefineObjectGetHashCode (fixes CS0659, CS0661) -->
<CodeFix Id="RCF0085" IsEnabled="true" /> <!-- ChangeArrayType (fixes CS0246) -->
<CodeFix Id="RCF0086" IsEnabled="true" /> <!-- AddMissingType (fixes CS1031) -->
<CodeFix Id="RCF0087" IsEnabled="true" /> <!-- ReplaceConditionalExpressionWithIfElse (fixes CS0201) -->
<CodeFix Id="RCF0088" IsEnabled="true" /> <!-- RemoveSemicolon (fixes CS1597) -->
<CodeFix Id="RCF0089" IsEnabled="true" /> <!-- RemoveConditionalAccess (fixes CS0023) -->
<CodeFix Id="RCF0090" IsEnabled="true" /> <!-- ChangeTypeAccordingToInitializer (fixes CS0029) -->
<CodeFix Id="RCF0091" IsEnabled="true" /> <!-- ChangeForEachType (fixes CS0030) -->
<CodeFix Id="RCF0092" IsEnabled="true" /> <!-- ChangeTypeToVar (fixes CS0029, CS0030) -->
</CodeFixes>
</Settings>
</Roslynator>
2 changes: 1 addition & 1 deletion source/Refactorings/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
[assembly: AssemblyVersion("1.6.0")]
[assembly: AssemblyVersion("1.6.10")]
//[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: NeutralResourcesLanguage("en-US")]
1 change: 0 additions & 1 deletion source/Refactorings/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
| RR0186 | [Change accessibility](../../docs/refactorings/RR0186.md) | &#x2713; |
| RR0018 | [Change explicit type to 'var'](../../docs/refactorings/RR0018.md) | &#x2713; |
| RR0021 | [Change method return type to 'void'](../../docs/refactorings/RR0021.md) | &#x2713; |
| RR0022 | [Change type according to expression](../../docs/refactorings/RR0022.md) | &#x2713; |
| RR0023 | [Change 'var' to explicit type](../../docs/refactorings/RR0023.md) | &#x2713; |
| RR0024 | [Check expression for null](../../docs/refactorings/RR0024.md) | &#x2713; |
| RR0025 | [Check parameter for null](../../docs/refactorings/RR0025.md) | &#x2713; |
Expand Down
2 changes: 1 addition & 1 deletion source/VisualStudio.Core/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,5 @@
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
[assembly: AssemblyVersion("1.6.0")]
[assembly: AssemblyVersion("1.6.10")]
//[assembly: AssemblyFileVersion("1.0.0.0")]
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,6 @@
// Build Number
// Revision
//
[assembly: AssemblyVersion("1.6.0")]
[assembly: AssemblyVersion("1.6.10")]
//[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: NeutralResourcesLanguage("en-US")]
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<PackageManifest Version="2.0.0" xmlns="http://schemas.microsoft.com/developer/vsx-schema/2011" xmlns:d="http://schemas.microsoft.com/developer/vsx-schema-design/2011">
<Metadata>
<Identity Id="0117e993-633f-47ea-be07-c0620e5a6788" Version="1.6.0" Language="en-US" Publisher="Josef Pihrt" />
<Identity Id="0117e993-633f-47ea-be07-c0620e5a6788" Version="1.6.10" Language="en-US" Publisher="Josef Pihrt" />
<DisplayName>Roslynator Refactorings 2017</DisplayName>
<Description xml:space="preserve">A collection of 190+ refactorings for C#, powered by Roslyn.</Description>
<MoreInfo>http://github.com/JosefPihrt/Roslynator</MoreInfo>
Expand Down
2 changes: 1 addition & 1 deletion source/VisualStudio/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,6 @@
// Build Number
// Revision
//
[assembly: AssemblyVersion("1.6.0")]
[assembly: AssemblyVersion("1.6.10")]
//[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: NeutralResourcesLanguage("en-US")]
2 changes: 1 addition & 1 deletion source/VisualStudio/source.extension.vsixmanifest
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<PackageManifest Version="2.0.0" xmlns="http://schemas.microsoft.com/developer/vsx-schema/2011" xmlns:d="http://schemas.microsoft.com/developer/vsx-schema-design/2011">
<Metadata>
<Identity Id="9289a8ab-1bb6-496b-9992-9f7ea27f66a8" Version="1.6.0" Language="en-US" Publisher="Josef Pihrt"/>
<Identity Id="9289a8ab-1bb6-496b-9992-9f7ea27f66a8" Version="1.6.10" Language="en-US" Publisher="Josef Pihrt"/>
<DisplayName>Roslynator 2017</DisplayName>
<Description xml:space="preserve">A collection of 190+ analyzers and 190+ refactorings for C#, powered by Roslyn.</Description>
<MoreInfo>http://github.com/JosefPihrt/Roslynator</MoreInfo>
Expand Down

0 comments on commit 4acebed

Please sign in to comment.