From c3a919d4f7ff22d981386b1d7441dd5911fdedf3 Mon Sep 17 00:00:00 2001 From: Josef Pihrt Date: Mon, 19 Feb 2024 16:08:34 +0100 Subject: [PATCH] Release 4.11.0 (#1391) --- ChangeLog.md | 2 ++ .../RefactoringDescriptors.Generated.cs | 2 +- src/VisualStudioCode/package/CHANGELOG.md | 19 +++++++++++++++++++ .../src/configurationFiles.generated.ts | 2 +- 4 files changed, 23 insertions(+), 2 deletions(-) diff --git a/ChangeLog.md b/ChangeLog.md index 350b05b96f..ce54b84a1f 100644 --- a/ChangeLog.md +++ b/ChangeLog.md @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [4.11.0] - 2024-02-19 + ### Added - Add analyzer "Use raw string literal" [RCS1266](https://josefpihrt.github.io/docs/roslynator/analyzers/RCS1266) ([PR](https://github.com/dotnet/roslynator/pull/1375)) diff --git a/src/Refactorings/CSharp/RefactoringDescriptors.Generated.cs b/src/Refactorings/CSharp/RefactoringDescriptors.Generated.cs index 17985df391..bacb2743be 100644 --- a/src/Refactorings/CSharp/RefactoringDescriptors.Generated.cs +++ b/src/Refactorings/CSharp/RefactoringDescriptors.Generated.cs @@ -76,7 +76,7 @@ public static class RefactoringDescriptors public static RefactoringDescriptor ExpandPositionalConstructor = new RefactoringDescriptor("RR0215", "roslynator_refactoring.expand_positional_constructor.enabled", isEnabledByDefault: true); public static RefactoringDescriptor ExtractEventHandlerMethod = new RefactoringDescriptor("RR0203", "roslynator_refactoring.extract_event_handler_method.enabled", isEnabledByDefault: true); public static RefactoringDescriptor ExtractExpressionFromCondition = new RefactoringDescriptor("RR0043", "roslynator_refactoring.extract_expression_from_condition.enabled", isEnabledByDefault: true); - public static RefactoringDescriptor ExtractTypeDeclarationToNewFile = new RefactoringDescriptor("RR0046", "roslynator_refactoring.extract_type_declaration_to_new_file.enabled", isEnabledByDefault: true); + public static RefactoringDescriptor ExtractTypeDeclarationToNewFile = new RefactoringDescriptor("RR0046", "roslynator_refactoring.extract_type_declaration_to_new_file.enabled", isEnabledByDefault: false); public static RefactoringDescriptor GenerateBaseConstructors = new RefactoringDescriptor("RR0054", "roslynator_refactoring.generate_base_constructors.enabled", isEnabledByDefault: true); public static RefactoringDescriptor GenerateCombinedEnumMember = new RefactoringDescriptor("RR0055", "roslynator_refactoring.generate_combined_enum_member.enabled", isEnabledByDefault: true); public static RefactoringDescriptor GenerateEnumMember = new RefactoringDescriptor("RR0056", "roslynator_refactoring.generate_enum_member.enabled", isEnabledByDefault: true); diff --git a/src/VisualStudioCode/package/CHANGELOG.md b/src/VisualStudioCode/package/CHANGELOG.md index 5b2265d683..961710b43e 100644 --- a/src/VisualStudioCode/package/CHANGELOG.md +++ b/src/VisualStudioCode/package/CHANGELOG.md @@ -7,6 +7,25 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [4.11.0] - 2024-02-19 + +### Added + +- Add analyzer "Use raw string literal" [RCS1266](https://josefpihrt.github.io/docs/roslynator/analyzers/RCS1266) ([PR](https://github.com/dotnet/roslynator/pull/1375)) +- Add analyzer "Convert 'string.Concat' to interpolated string" [RCS1267](https://josefpihrt.github.io/docs/roslynator/analyzers/RCS1267) ([PR](https://github.com/dotnet/roslynator/pull/1379)) +- Simplify LINQ query [RCS1077](https://josefpihrt.github.io/docs/roslynator/analyzers/1077) ([PR](https://github.com/dotnet/roslynator/pull/1384)) + - `items.Select(selector).Average()` => `items.Average(selector)` + - `items.Select(selector).Sum()` => `items.Sum(selector)` + +### Fixed + +- Fix analyzer [RCS0049](https://josefpihrt.github.io/docs/roslynator/analyzers/RCS0049) ([PR](https://github.com/dotnet/roslynator/pull/1386)) +- Fix analyzer [RCS1159](https://josefpihrt.github.io/docs/roslynator/analyzers/RCS1159) ([PR](https://github.com/dotnet/roslynator/pull/1390)) +- Fix analyzer [RCS1019](https://josefpihrt.github.io/docs/roslynator/analyzers/RCS1019) ([PR](https://github.com/dotnet/roslynator/pull/1402)) +- Fix analyzer [RCS1250](https://josefpihrt.github.io/docs/roslynator/analyzers/RCS1250) ([PR](https://github.com/dotnet/roslynator/pull/1403), [PR](https://github.com/dotnet/roslynator/pull/1404)) +- Fix code fix for [CS8600](https://josefpihrt.github.io/docs/roslynator/fixes/CS8600) changing the wrong type when casts or `var` are involved ([PR](https://github.com/dotnet/roslynator/pull/1393) by @jroessel) +- Fix Roslyn multi-targeting ([PR](https://github.com/dotnet/roslynator/pull/1407)) + ## [4.10.0] - 2024-01-24 ### Added diff --git a/src/VisualStudioCode/package/src/configurationFiles.generated.ts b/src/VisualStudioCode/package/src/configurationFiles.generated.ts index 14d8d056ca..4755886477 100644 --- a/src/VisualStudioCode/package/src/configurationFiles.generated.ts +++ b/src/VisualStudioCode/package/src/configurationFiles.generated.ts @@ -1017,7 +1017,7 @@ roslynator_analyzers.enabled_by_default = true|false #roslynator_refactoring.expand_positional_constructor.enabled = true #roslynator_refactoring.extract_event_handler_method.enabled = true #roslynator_refactoring.extract_expression_from_condition.enabled = true -#roslynator_refactoring.extract_type_declaration_to_new_file.enabled = true +#roslynator_refactoring.extract_type_declaration_to_new_file.enabled = false #roslynator_refactoring.generate_base_constructors.enabled = true #roslynator_refactoring.generate_combined_enum_member.enabled = true #roslynator_refactoring.generate_enum_member.enabled = true