From 6f0bdbc4ba21f6ea1c570b92ac18baa55919ab71 Mon Sep 17 00:00:00 2001 From: Josef Pihrt Date: Mon, 30 May 2022 00:17:22 +0200 Subject: [PATCH] Publish version 4.1.1 --- ChangeLog.md | 4 ++++ docs/analyzers/RCS0020.md | 9 +++---- docs/analyzers/RCS0021.md | 9 +++---- docs/analyzers/RCS0031.md | 2 +- docs/analyzers/RCS0034.md | 2 +- docs/analyzers/RCS1175.md | 2 +- src/Analyzers/README.md | 2 +- src/CommandLine/ChangeLog.md | 5 ++++ src/Common/ConfigOptions.Generated.cs | 2 ++ src/Directory.Build.props | 24 +++++++++---------- src/Formatting.Analyzers/README.md | 4 ++-- src/VisualStudio/Properties/AssemblyInfo.cs | 2 +- .../source.extension.vsixmanifest | 2 +- src/VisualStudioCode/package/CHANGELOG.md | 4 ++++ .../package/package-lock.json | 4 ++-- src/VisualStudioCode/package/package.json | 2 +- tools/build.cmd | 4 ++-- tools/build_vscode.cmd | 2 +- 18 files changed, 51 insertions(+), 34 deletions(-) diff --git a/ChangeLog.md b/ChangeLog.md index 5df5487998..6450586628 100644 --- a/ChangeLog.md +++ b/ChangeLog.md @@ -1,5 +1,9 @@ ### Unreleased +### 4.1.1 (2022-05-29) + +* Bug fixes + ### 4.1.0 (2022-03-29) * Add analyzer [RCS1254](https://github.com/JosefPihrt/Roslynator/blob/master/docs/analyzers/RCS1254.md) (Normalize format of enum flag value) diff --git a/docs/analyzers/RCS0020.md b/docs/analyzers/RCS0020.md index c5df13345a..0bee00978a 100644 --- a/docs/analyzers/RCS0020.md +++ b/docs/analyzers/RCS0020.md @@ -1,9 +1,10 @@ # RCS0020: Format accessor's braces on a single line or multiple lines -| Property | Value | -| -------- | ------- | -| Id | RCS0020 | -| Severity | None | +| Property | Value | +| --------------- | ---------------------------------- | +| Id | RCS0020 | +| Severity | None | +| Required option | `roslynator_accessor_braces_style` | ## Example diff --git a/docs/analyzers/RCS0021.md b/docs/analyzers/RCS0021.md index 6edada2c64..2d21e24e73 100644 --- a/docs/analyzers/RCS0021.md +++ b/docs/analyzers/RCS0021.md @@ -1,9 +1,10 @@ # RCS0021: Format block's braces on a single line or multiple lines -| Property | Value | -| -------- | ------- | -| Id | RCS0021 | -| Severity | None | +| Property | Value | +| --------------- | ------------------------------- | +| Id | RCS0021 | +| Severity | None | +| Required option | `roslynator_block_braces_style` | ## Example diff --git a/docs/analyzers/RCS0031.md b/docs/analyzers/RCS0031.md index f524eb8758..cf29c69283 100644 --- a/docs/analyzers/RCS0031.md +++ b/docs/analyzers/RCS0031.md @@ -1,4 +1,4 @@ -# RCS0031: Add new line before enum member +# RCS0031: Put enum member on its own line | Property | Value | | -------- | ------- | diff --git a/docs/analyzers/RCS0034.md b/docs/analyzers/RCS0034.md index 825ca8b5b2..d21a50a41c 100644 --- a/docs/analyzers/RCS0034.md +++ b/docs/analyzers/RCS0034.md @@ -1,4 +1,4 @@ -# RCS0034: Add new line before type parameter constraint +# RCS0034: Put type parameter constraint on its own line | Property | Value | | -------- | ------- | diff --git a/docs/analyzers/RCS1175.md b/docs/analyzers/RCS1175.md index 0e598d7008..e61ff76dd1 100644 --- a/docs/analyzers/RCS1175.md +++ b/docs/analyzers/RCS1175.md @@ -1,4 +1,4 @@ -# RCS1175: Unused this parameter +# RCS1175: Unused 'this' parameter | Property | Value | | -------- | ------- | diff --git a/src/Analyzers/README.md b/src/Analyzers/README.md index 93dc485c5a..0ff7b82eb9 100644 --- a/src/Analyzers/README.md +++ b/src/Analyzers/README.md @@ -133,7 +133,7 @@ | RCS1172 | [Use 'is' operator instead of 'as' operator](../../docs/analyzers/RCS1172.md) | Warning | | RCS1173 | [Use coalesce expression instead of 'if'](../../docs/analyzers/RCS1173.md) | Info | | RCS1174 | [Remove redundant async/await](../../docs/analyzers/RCS1174.md) | None | -| RCS1175 | [Unused this parameter](../../docs/analyzers/RCS1175.md) | Info | +| RCS1175 | [Unused 'this' parameter](../../docs/analyzers/RCS1175.md) | Info | | RCS1176 | [Use 'var' instead of explicit type (when the type is not obvious)](../../docs/analyzers/RCS1176.md) | None | | RCS1177 | [Use 'var' instead of explicit type (in foreach)](../../docs/analyzers/RCS1177.md) | None | | RCS1179 | [Unnecessary assignment](../../docs/analyzers/RCS1179.md) | Info | diff --git a/src/CommandLine/ChangeLog.md b/src/CommandLine/ChangeLog.md index e01ae8a43b..816ffebb37 100644 --- a/src/CommandLine/ChangeLog.md +++ b/src/CommandLine/ChangeLog.md @@ -1,3 +1,8 @@ +### 0.3.3 (2022-05-29) + +* Fix bug when saving code analysis results to a file (`--output` parameter) ([issue](https://github.com/JosefPihrt/Roslynator/issues/897)) +* Bump Roslyn version to 4.2.0 + ### 0.3.2 (2022-03-29) * Bump Roslyn version to 4.1.0 diff --git a/src/Common/ConfigOptions.Generated.cs b/src/Common/ConfigOptions.Generated.cs index c68a2aaeeb..4e8be78351 100644 --- a/src/Common/ConfigOptions.Generated.cs +++ b/src/Common/ConfigOptions.Generated.cs @@ -204,6 +204,8 @@ public static partial class ConfigOptions { yield return new KeyValuePair("RCS0011", JoinOptionKeys(ConfigOptionKeys.BlankLineBetweenSingleLineAccessors)); yield return new KeyValuePair("RCS0015", JoinOptionKeys(ConfigOptionKeys.BlankLineBetweenUsingDirectives)); + yield return new KeyValuePair("RCS0020", JoinOptionKeys(ConfigOptionKeys.AccessorBracesStyle)); + yield return new KeyValuePair("RCS0021", JoinOptionKeys(ConfigOptionKeys.BlockBracesStyle)); yield return new KeyValuePair("RCS0027", JoinOptionKeys(ConfigOptionKeys.BinaryOperatorNewLine)); yield return new KeyValuePair("RCS0028", JoinOptionKeys(ConfigOptionKeys.ConditionalOperatorNewLine)); yield return new KeyValuePair("RCS0032", JoinOptionKeys(ConfigOptionKeys.ArrowTokenNewLine)); diff --git a/src/Directory.Build.props b/src/Directory.Build.props index b56a9f7790..711e9cf1a5 100644 --- a/src/Directory.Build.props +++ b/src/Directory.Build.props @@ -10,18 +10,18 @@ - 4.1.0.0 - 4.1.0 - 4.1.0.0 - 4.1.0 - 0.3.2.0 - 0.3.2 - 4.1.0.0 - 4.1.0 - 4.1.0.0 - 4.1.0 - 4.1.0.0 - 4.1.0 + 4.1.1.0 + 4.1.1 + 4.1.1.0 + 4.1.1 + 0.3.3.0 + 0.3.3 + 4.1.1.0 + 4.1.1 + 4.1.1.0 + 4.1.1 + 4.1.1.0 + 4.1.1 2.0.0 1.0.0 diff --git a/src/Formatting.Analyzers/README.md b/src/Formatting.Analyzers/README.md index 8051a0c764..e81ecb8837 100644 --- a/src/Formatting.Analyzers/README.md +++ b/src/Formatting.Analyzers/README.md @@ -29,10 +29,10 @@ | RCS0028 | [Place new line after/before '?:' operator](../../docs/analyzers/RCS0028.md) | None | | RCS0029 | [Put constructor initializer on its own line](../../docs/analyzers/RCS0029.md) | None | | RCS0030 | [Add new line before embedded statement](../../docs/analyzers/RCS0030.md) | None | -| RCS0031 | [Add new line before enum member](../../docs/analyzers/RCS0031.md) | None | +| RCS0031 | [Put enum member on its own line](../../docs/analyzers/RCS0031.md) | None | | RCS0032 | [Place new line after/before arrow token](../../docs/analyzers/RCS0032.md) | None | | RCS0033 | [Add new line before statement](../../docs/analyzers/RCS0033.md) | None | -| RCS0034 | [Add new line before type parameter constraint](../../docs/analyzers/RCS0034.md) | None | +| RCS0034 | [Put type parameter constraint on its own line](../../docs/analyzers/RCS0034.md) | None | | RCS0036 | [Remove blank line between single-line declarations of same kind](../../docs/analyzers/RCS0036.md) | None | | RCS0038 | [Remove blank line between using directives with same root namespace](../../docs/analyzers/RCS0038.md) | None | | RCS0039 | [Remove new line before base list](../../docs/analyzers/RCS0039.md) | None | diff --git a/src/VisualStudio/Properties/AssemblyInfo.cs b/src/VisualStudio/Properties/AssemblyInfo.cs index 8b2dba54e7..d8daa1c995 100644 --- a/src/VisualStudio/Properties/AssemblyInfo.cs +++ b/src/VisualStudio/Properties/AssemblyInfo.cs @@ -31,7 +31,7 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -//[assembly: AssemblyVersion("4.1.0.0")] +//[assembly: AssemblyVersion("4.1.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 597f7e65d0..2e4fbf704e 100644 --- a/src/VisualStudio/source.extension.vsixmanifest +++ b/src/VisualStudio/source.extension.vsixmanifest @@ -1,7 +1,7 @@  - + Roslynator 2022 A collection of 500+ analyzers, refactorings and fixes for C#, powered by Roslyn. http://github.com/JosefPihrt/Roslynator diff --git a/src/VisualStudioCode/package/CHANGELOG.md b/src/VisualStudioCode/package/CHANGELOG.md index c857ca509c..5a0df0e6fc 100644 --- a/src/VisualStudioCode/package/CHANGELOG.md +++ b/src/VisualStudioCode/package/CHANGELOG.md @@ -1,3 +1,7 @@ +## 4.1.1 (2022-05-29) + +* Bug fixes + ## 4.1.0 (2022-03-29) * Add analyzer [RCS1254](https://github.com/JosefPihrt/Roslynator/blob/master/docs/analyzers/RCS1254.md) (Normalize format of enum flag value) diff --git a/src/VisualStudioCode/package/package-lock.json b/src/VisualStudioCode/package/package-lock.json index ecc116cdaa..cc1bf34dbc 100644 --- a/src/VisualStudioCode/package/package-lock.json +++ b/src/VisualStudioCode/package/package-lock.json @@ -1,12 +1,12 @@ { "name": "roslynator", - "version": "4.1.0", + "version": "4.1.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "roslynator", - "version": "4.1.0", + "version": "4.1.1", "license": "Apache-2.0", "dependencies": { "json5": "^2.1.1" diff --git a/src/VisualStudioCode/package/package.json b/src/VisualStudioCode/package/package.json index 794273f4f2..8b7e1f3d05 100644 --- a/src/VisualStudioCode/package/package.json +++ b/src/VisualStudioCode/package/package.json @@ -4,7 +4,7 @@ "displayName": "Roslynator", "description": "A collection of 500+ analyzers, refactorings and fixes for C#, powered by Roslyn.", "icon": "images/icon.png", - "version": "4.1.0", + "version": "4.1.1", "author": "Josef Pihrt", "license": "Apache-2.0", "homepage": "https://github.com/josefpihrt/roslynator", diff --git a/tools/build.cmd b/tools/build.cmd index 3e1aa08728..ee8bf13f66 100644 --- a/tools/build.cmd +++ b/tools/build.cmd @@ -5,8 +5,8 @@ set _programFiles=%ProgramFiles% set _msbuildPath="%_programFiles%\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin\MSBuild" set _properties=Configuration=Release,Deterministic=true,TreatWarningsAsErrors=true,WarningsNotAsErrors=1591 set _outDir=..\out\Release -set _version=4.1.0 -set _version4=4.1.0.0 +set _version=4.1.1 +set _version4=4.1.1.0 orang replace "..\src\VisualStudio\source.extension.vsixmanifest" ^ -c "patterns\vsix_manifest_version.txt" from-file -t m r ^ diff --git a/tools/build_vscode.cmd b/tools/build_vscode.cmd index 7c62b8b59c..d19be6eef7 100644 --- a/tools/build_vscode.cmd +++ b/tools/build_vscode.cmd @@ -4,7 +4,7 @@ set _programFiles=%ProgramFiles% set _msbuildPath="%_programFiles%\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin\MSBuild" set _properties=Configuration=Release,Deterministic=true,TreatWarningsAsErrors=true,WarningsNotAsErrors=1591,DefineConstants=VSCODE -set _version=4.1.0 +set _version=4.1.1 orang replace "..\src\VisualStudioCode\package\package.json" ^ -c "patterns\vscode_version.txt" from-file -t m r ^