diff --git a/ChangeLog.md b/ChangeLog.md index cc4f962028..9ceb180255 100644 --- a/ChangeLog.md +++ b/ChangeLog.md @@ -1,3 +1,7 @@ +### 2.2.1 (2019-10-26) + +* Add set of formatting analyzers (RCS0...). + ### 2.2.0 (2019-09-28) #### Analyzers diff --git a/images/refactorings/UseStringEmptyInsteadOfEmptyStringLiteral.png b/images/refactorings/ConvertEmptyStringToStringEmpty.png similarity index 100% rename from images/refactorings/UseStringEmptyInsteadOfEmptyStringLiteral.png rename to images/refactorings/ConvertEmptyStringToStringEmpty.png diff --git a/images/refactorings/ReplaceForeachWithFor.png b/images/refactorings/ConvertForEachToFor.png similarity index 100% rename from images/refactorings/ReplaceForeachWithFor.png rename to images/refactorings/ConvertForEachToFor.png diff --git a/images/refactorings/ReplaceForWithForeach.png b/images/refactorings/ConvertForToForEach.png similarity index 100% rename from images/refactorings/ReplaceForWithForeach.png rename to images/refactorings/ConvertForToForEach.png diff --git a/images/refactorings/ReplaceForWithWhile.png b/images/refactorings/ConvertForToWhile.png similarity index 100% rename from images/refactorings/ReplaceForWithWhile.png rename to images/refactorings/ConvertForToWhile.png diff --git a/images/refactorings/ReplaceHexadecimalLiteralWithDecimalLiteral.png b/images/refactorings/ConvertHexadecimalLiteralToDecimalLiteral.png similarity index 100% rename from images/refactorings/ReplaceHexadecimalLiteralWithDecimalLiteral.png rename to images/refactorings/ConvertHexadecimalLiteralToDecimalLiteral.png diff --git a/images/refactorings/ReplaceInterpolatedStringWithStringLiteral.png b/images/refactorings/ConvertInterpolatedStringToStringLiteral.png similarity index 100% rename from images/refactorings/ReplaceInterpolatedStringWithStringLiteral.png rename to images/refactorings/ConvertInterpolatedStringToStringLiteral.png diff --git a/images/refactorings/ReplaceRegularStringLiteralWithVerbatimStringLiteral.png b/images/refactorings/ConvertRegularStringLiteralToVerbatimStringLiteral.png similarity index 100% rename from images/refactorings/ReplaceRegularStringLiteralWithVerbatimStringLiteral.png rename to images/refactorings/ConvertRegularStringLiteralToVerbatimStringLiteral.png diff --git a/images/refactorings/ReplaceStringFormatWithInterpolatedString.png b/images/refactorings/ConvertStringFormatToInterpolatedString.png similarity index 100% rename from images/refactorings/ReplaceStringFormatWithInterpolatedString.png rename to images/refactorings/ConvertStringFormatToInterpolatedString.png diff --git a/images/refactorings/ReplaceSwitchWithIf.png b/images/refactorings/ConvertSwitchToIf.png similarity index 100% rename from images/refactorings/ReplaceSwitchWithIf.png rename to images/refactorings/ConvertSwitchToIf.png diff --git a/images/refactorings/ReplaceVerbatimStringLiteralWithRegularStringLiteral.png b/images/refactorings/ConvertVerbatimStringLiteralToRegularStringLiteral.png similarity index 100% rename from images/refactorings/ReplaceVerbatimStringLiteralWithRegularStringLiteral.png rename to images/refactorings/ConvertVerbatimStringLiteralToRegularStringLiteral.png diff --git a/images/refactorings/ReplaceVerbatimStringLiteralWithRegularStringLiterals.png b/images/refactorings/ConvertVerbatimStringLiteralToRegularStringLiterals.png similarity index 100% rename from images/refactorings/ReplaceVerbatimStringLiteralWithRegularStringLiterals.png rename to images/refactorings/ConvertVerbatimStringLiteralToRegularStringLiterals.png diff --git a/src/Analyzers.CodeFixes/Analyzers.CodeFixes.csproj b/src/Analyzers.CodeFixes/Analyzers.CodeFixes.csproj index 22eef78623..ce2e461f10 100644 --- a/src/Analyzers.CodeFixes/Analyzers.CodeFixes.csproj +++ b/src/Analyzers.CodeFixes/Analyzers.CodeFixes.csproj @@ -5,7 +5,7 @@ - 2.2.0.3 + 2.2.1.0 Roslynator.CSharp.Analyzers.CodeFixes Roslynator.CSharp ..\global.ruleset diff --git a/src/Analyzers/Analyzers.csproj b/src/Analyzers/Analyzers.csproj index 08814325f2..eb596ec20b 100644 --- a/src/Analyzers/Analyzers.csproj +++ b/src/Analyzers/Analyzers.csproj @@ -5,7 +5,7 @@ - 2.2.0.3 + 2.2.1.0 Roslynator.CSharp.Analyzers Roslynator.CSharp ..\global.ruleset diff --git a/src/CSharp.Workspaces/CSharp.Workspaces.csproj b/src/CSharp.Workspaces/CSharp.Workspaces.csproj index fd44ca9af7..c1779b4c0a 100644 --- a/src/CSharp.Workspaces/CSharp.Workspaces.csproj +++ b/src/CSharp.Workspaces/CSharp.Workspaces.csproj @@ -5,7 +5,7 @@ - 1.0.0.19 + 1.0.0.20 Roslynator.CSharp.Workspaces Roslynator ..\api.ruleset diff --git a/src/CSharp/CSharp.csproj b/src/CSharp/CSharp.csproj index 27fa5f5e85..9cb5d2d21a 100644 --- a/src/CSharp/CSharp.csproj +++ b/src/CSharp/CSharp.csproj @@ -5,7 +5,7 @@ - 1.0.0.19 + 1.0.0.20 Roslynator.CSharp Roslynator ..\api.ruleset diff --git a/src/CodeFixes/CodeFixes.csproj b/src/CodeFixes/CodeFixes.csproj index b88750f1a4..bcf94e471f 100644 --- a/src/CodeFixes/CodeFixes.csproj +++ b/src/CodeFixes/CodeFixes.csproj @@ -5,7 +5,7 @@ - 2.2.0.3 + 2.2.1.0 Roslynator.CSharp.CodeFixes Roslynator.CSharp.CodeFixes ..\global.ruleset diff --git a/src/Common/Common.csproj b/src/Common/Common.csproj index 488d165a21..f2d914ae72 100644 --- a/src/Common/Common.csproj +++ b/src/Common/Common.csproj @@ -5,7 +5,7 @@ - 2.2.0.3 + 2.2.1.0 Roslynator.Common Roslynator ..\global.ruleset diff --git a/src/Core/Core.csproj b/src/Core/Core.csproj index 4f2e24bb84..6149602d7a 100644 --- a/src/Core/Core.csproj +++ b/src/Core/Core.csproj @@ -5,7 +5,7 @@ - 1.0.0.19 + 1.0.0.20 Roslynator.Core Roslynator ..\api.ruleset diff --git a/src/Formatting.Analyzers.CodeFixes/Formatting.Analyzers.CodeFixes.csproj b/src/Formatting.Analyzers.CodeFixes/Formatting.Analyzers.CodeFixes.csproj index 12c6b414c0..38303a55ba 100644 --- a/src/Formatting.Analyzers.CodeFixes/Formatting.Analyzers.CodeFixes.csproj +++ b/src/Formatting.Analyzers.CodeFixes/Formatting.Analyzers.CodeFixes.csproj @@ -5,7 +5,7 @@ - 1.0.0.0 + 1.0.0.1 Roslynator.Formatting.Analyzers.CodeFixes Roslynator.Formatting ..\global.ruleset diff --git a/src/Formatting.Analyzers/Formatting.Analyzers.csproj b/src/Formatting.Analyzers/Formatting.Analyzers.csproj index 316380ed22..aa17e69607 100644 --- a/src/Formatting.Analyzers/Formatting.Analyzers.csproj +++ b/src/Formatting.Analyzers/Formatting.Analyzers.csproj @@ -5,7 +5,7 @@ - 1.0.0.0 + 1.0.0.1 Roslynator.Formatting.Analyzers Roslynator.Formatting ..\global.ruleset diff --git a/src/Refactorings/Refactorings.csproj b/src/Refactorings/Refactorings.csproj index 8b40ce19e7..bd359f55b9 100644 --- a/src/Refactorings/Refactorings.csproj +++ b/src/Refactorings/Refactorings.csproj @@ -5,7 +5,7 @@ - 2.2.0.3 + 2.2.1.0 Roslynator.CSharp.Refactorings Roslynator.CSharp.Refactorings ..\global.ruleset diff --git a/src/Tools/MetadataGenerator/Program.cs b/src/Tools/MetadataGenerator/Program.cs index f4b5c5caa1..f444725211 100644 --- a/src/Tools/MetadataGenerator/Program.cs +++ b/src/Tools/MetadataGenerator/Program.cs @@ -154,7 +154,8 @@ private static async Task Main(string[] args) // find missing samples foreach (RefactoringMetadata refactoring in refactorings) { - if (refactoring.Samples.Count == 0) + if (!refactoring.IsObsolete + && refactoring.Samples.Count == 0) { foreach (ImageMetadata image in refactoring.ImagesOrDefaultImage()) { diff --git a/src/VisualBasic.Workspaces/VisualBasic.Workspaces.csproj b/src/VisualBasic.Workspaces/VisualBasic.Workspaces.csproj index 4d570461f7..477c98d0f4 100644 --- a/src/VisualBasic.Workspaces/VisualBasic.Workspaces.csproj +++ b/src/VisualBasic.Workspaces/VisualBasic.Workspaces.csproj @@ -5,7 +5,7 @@ - 1.0.0.19 + 1.0.0.20 Roslynator.VisualBasic.Workspaces Roslynator ..\api.ruleset diff --git a/src/VisualBasic/VisualBasic.csproj b/src/VisualBasic/VisualBasic.csproj index 4fdb4c4cde..75493c50ef 100644 --- a/src/VisualBasic/VisualBasic.csproj +++ b/src/VisualBasic/VisualBasic.csproj @@ -5,7 +5,7 @@ - 1.0.0.19 + 1.0.0.20 Roslynator.VisualBasic Roslynator ..\api.ruleset diff --git a/src/VisualStudio.Common/Properties/AssemblyInfo.cs b/src/VisualStudio.Common/Properties/AssemblyInfo.cs index 7139ff437b..c191a610d3 100644 --- a/src/VisualStudio.Common/Properties/AssemblyInfo.cs +++ b/src/VisualStudio.Common/Properties/AssemblyInfo.cs @@ -36,5 +36,5 @@ // // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: -[assembly: AssemblyVersion("2.2.0.0")] +[assembly: AssemblyVersion("2.2.1.0")] //[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/src/VisualStudio.Refactorings/Properties/AssemblyInfo.cs b/src/VisualStudio.Refactorings/Properties/AssemblyInfo.cs index 7e47dae449..2d47dfbb1b 100644 --- a/src/VisualStudio.Refactorings/Properties/AssemblyInfo.cs +++ b/src/VisualStudio.Refactorings/Properties/AssemblyInfo.cs @@ -31,6 +31,6 @@ // Build Number // Revision // -[assembly: AssemblyVersion("2.2.0.0")] +[assembly: AssemblyVersion("2.2.1.0")] //[assembly: AssemblyFileVersion("1.0.0.0")] [assembly: NeutralResourcesLanguage("en-US")] diff --git a/src/VisualStudio.Refactorings/source.extension.vsixmanifest b/src/VisualStudio.Refactorings/source.extension.vsixmanifest index 83a0b230df..3035184aed 100644 --- a/src/VisualStudio.Refactorings/source.extension.vsixmanifest +++ b/src/VisualStudio.Refactorings/source.extension.vsixmanifest @@ -1,7 +1,7 @@  - + Roslynator Refactorings 2017 A collection of 300+ refactorings and fixes for C#, powered by Roslyn. http://github.com/JosefPihrt/Roslynator diff --git a/src/VisualStudio/Properties/AssemblyInfo.cs b/src/VisualStudio/Properties/AssemblyInfo.cs index 01b003b89d..1a08bb2818 100644 --- a/src/VisualStudio/Properties/AssemblyInfo.cs +++ b/src/VisualStudio/Properties/AssemblyInfo.cs @@ -31,6 +31,6 @@ // Build Number // Revision // -[assembly: AssemblyVersion("2.2.0.0")] +[assembly: AssemblyVersion("2.2.1.0")] //[assembly: AssemblyFileVersion("1.0.0.0")] [assembly: NeutralResourcesLanguage("en-US")] diff --git a/src/VisualStudio/source.extension.vsixmanifest b/src/VisualStudio/source.extension.vsixmanifest index fde3a735ba..83ae893278 100644 --- a/src/VisualStudio/source.extension.vsixmanifest +++ b/src/VisualStudio/source.extension.vsixmanifest @@ -1,7 +1,7 @@  - + Roslynator 2017 A collection of 500+ analyzers, refactorings and fixes for C#, powered by Roslyn. http://github.com/JosefPihrt/Roslynator diff --git a/src/Workspaces.Common/Workspaces.Common.csproj b/src/Workspaces.Common/Workspaces.Common.csproj index ba8f3d4a05..1cc5ff38cf 100644 --- a/src/Workspaces.Common/Workspaces.Common.csproj +++ b/src/Workspaces.Common/Workspaces.Common.csproj @@ -5,7 +5,7 @@ - 2.2.0.3 + 2.2.1.0 Roslynator.Workspaces.Common Roslynator ..\global.ruleset diff --git a/src/Workspaces.Core/Workspaces.Core.csproj b/src/Workspaces.Core/Workspaces.Core.csproj index 78a3ef2336..e69470e86b 100644 --- a/src/Workspaces.Core/Workspaces.Core.csproj +++ b/src/Workspaces.Core/Workspaces.Core.csproj @@ -5,7 +5,7 @@ - 1.0.0.19 + 1.0.0.20 Roslynator.Workspaces.Core Roslynator ..\api.ruleset diff --git a/tools/build.cmd b/tools/build.cmd index 7dc5a5f3a2..07c7dea697 100644 --- a/tools/build.cmd +++ b/tools/build.cmd @@ -2,7 +2,7 @@ set _msbuildPath="C:\Program Files\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\msbuild" set _properties=Configuration=Release,Deterministic=true,TreatWarningsAsErrors=true,WarningsNotAsErrors=1591 -set _version=2.2.0.2 +set _version=2.2.1.0 dotnet restore --force "..\src\Roslynator.sln"