Releases: dotnet/roslynator
Releases · dotnet/roslynator
v4.8.0
Added
- Add analyzer "Add/remove blank line between switch sections" (RCS0061) (PR)
- Option (required):
roslynator_blank_line_between_switch_sections = include|omit|omit_after_block - Make analyzer RCS0014 obsolete
- Option (required):
- Add analyzer "Declare explicit/implicit type" (RCS1264) (PR)
- Add code fix "Declare as nullable" (PR)
- Applicable to:
CS8600,CS8610,CS8765andCS8767
- Applicable to:
- Add option
roslynator_use_collection_expression = true|false(PR)
Changed
- Replace type declaration's empty braces with semicolon (RCS1251 (PR, PR)
- [TestFramework] Bump
MSTest.TestFrameworkto3.1.1(PR) - [TestFramework] Bump
xunit.assertto2.6.2(PR) - Bump Roslyn to 4.7.0 (PR)
Fixed
v4.7.0
Added
- Add analyzer "Dispose resource asynchronously" (RCS1261) (PR)
- Add analyzer "Unnecessary raw string literal" (RCS1262) (PR)
- Add analyzer "Invalid reference in a documentation comment" (RCS1263) (PR)
- Add analyzer "Add/remove blank line between switch sections" (RCS0061) (PR)
- Option (required):
roslynator_blank_line_between_switch_sections = include|omit|omit_after_block - Make analyzer RCS0014 obsolete
- Option (required):
Changed
- Improve refactoring "Remove comment" RR0098 (PR)
- Remove trailing dot from analyzer's title (PR)
- Group code fix "Change accessibility to ..." (PR)
- [CLI] Bump Roslyn to 4.8.0 (PR)
- Group refactoring "Remove members above/below" (PR)
- Rename analyzers (PR)
- Group refactoring "Wrap in ..." (PR)
Fixed
- Fix analyzer RCS1124 (PR)
- Fix analyzer RCS0058 (PR)
- Fix analyzer RCS1163 (PR)
- Fix analyzer RCS1203 (PR)
- Fix analyzer RCS1046 (PR)
- Fix analyzer RCS1158 (PR)
- Fix analyzer RCS1032 (PR)
- Fix analyzer RCS1176 (PR)
- Fix analyzer RCS1197 (PR by @jamesHargreaves12)
- Fix analyzer RCS1093 (PR)
- [Testing] Detect nested code actions (PR)
v4.6.4
Release 4.6.4 (#1277)
v4.6.3
Added
- [CLI] Add command
find-symbol(PR)- This command can be used not only to find symbols but also to find unused symbols and optionally remove them.
- Example:
roslynator find-symbol --symbol-kind type --visibility internal private --unused --remove
Changed
- Bump Roslyn to 4.6.0 (PR)
- [CLI] Add support for .NET 8 (PR by @JonasSchubert)
Fixed
v4.6.2
Added
- [CLI] Add note to docs that Roslynator CLI does not contain any analyzers itself (PR)
Fixed
- Fix RCS1234 (PR by @jakubreznak)
- Fix refactoring Inline method (PR)
- [CLI] Fix globbing (PR)
- [CLI] Remove assembly resolving (PR)
- Detect false positive from Unity code (RCS1169) (PR)
- Introduce config option
roslynator_unity_code_analysis.enabled = true|false - Make option
roslynator_suppress_unity_script_methodsobsolete
- Introduce config option
v4.6.1
v4.6.0
Added
- Add social card (PR)
- Add nullable annotation to public API (PR)
- Add refactoring "Remove directive (including content)" (PR)
Changed
- Update logo (PR, PR)
- Migrate to .NET Foundation (PR, PR, PR)
- Bump Roslyn to 4.7.0 (PR)
- Applies to CLI and testing library.
- Bump Microsoft.Build.Locator to 1.6.1 (PR)
- Improve testing framework (PR)
- Add methods to
DiagnosticVerifier,RefactoringVerifierandCompilerDiagnosticFixVerifier. - Add property
DiagnosticVerifier.Descriptor(BREAKING CHANGE) - Add property
CompilerDiagnosticFixVerifier.DiagnosticId(BREAKING CHANGE) - Make property
DiagnosticTestData.Descriptorobsolete. - Make property
CompilerDiagnosticFixTestData.DiagnosticIdobsolete.
- Add methods to
Fixed
v4.5.0
Added
- Add SECURITY.md (PR)
- Add custom FixAllProvider for RCS1014 (PR by @jamesHargreaves12)
- Add more cases to RCS1097 (PR)
- Add analyzer "Use enum field explicitly" (RCS1257) (PR)
- Enabled by default.
- Add analyzer "Unnecessary enum flag" RCS1258 (PR)
- Enabled by default.
- Make
Roslynator.Rename.SymbolRenamerpublic (PR) - Analyzer 'Remove empty syntax' (RCS1259) (PR)
- This analyzer replaces following analyzers:
- [CLI] Add glob pattern matching (
--includeor/and--exclude) (PR, PR) - Add analyzer "Include/omit trailing comma" (RCS1256) (PR)
- Required option:
roslynator_trailing_comma_style = include|omit|omit_when_single_line - Not enabled by default
- Required option:
Changed
- [CLI] Open help in web browser when running command
roslynator help <COMMAND>(PR)
Fixed
v4.4.0
Added
- Add GitHub workflow (#1112)
Changed
- [CLI] Bump Roslyn to 4.6.0 (#1106)
- Bump Roslyn to 4.4.0 (#1116)
- Migrate documentation to Docusaurus (#922)
- [Testing Framework] Bump Roslyn to 4.6.0 (#1144)
Fixed
- Fix RCS1016 (#1090 by @jamesHargreaves12)
- Improve inversion of logical expressions to handling additional cases (#1086 by @jamesHargreaves12)
- Fix RCS1084 (#1085 by @jamesHargreaves12)
- Fix RCS1169 (#1092 by @jamesHargreaves12)
- Recognize more shapes of IAsyncEnumerable as being Async (RCS1047) (#1084)
- Fix RCS1197 (#1093 by @jamesHargreaves12)
- Fix RCS1056 (#1096 by @jamesHargreaves12)
- Fix RCS1216 (#1094 by @jamesHargreaves12)
- Fix RCS1146 (#1098 by @jamesHargreaves12)
- Fix RCS1154 (#1105)
- Fix RCS1211 (#1095 by @jamesHargreaves12)
- Fix RCS0005 (#1114)
- Fix RCS1176 (#1122, #1140)
- Fix RCS1085 (#1120 by @jamesHargreaves12)
- Fix RCS1208 (#1119 by @jamesHargreaves12)
- [CLI] Fix member full declaration in generated documentation (command
generate-doc) (#1130)- Append
?to nullable reference types.
- Append
- Fix RCS1179 (#1129 by @jamesHargreaves12)
- Fix RCS0060 (#1139)
v4.3.0
Changed
- [CLI] Bump Roslyn to 4.5.0 (#1043)
- [CLI] Downgrade version of Microsoft.Build.Locator from 1.5.5 to 1.4.1 (#1079)
- [CLI] Add more information about the found diagnostics to the XML output file (#1078 by @PeterKaszab)
Fixed
- Fix RCS1084 (#1006)
- Fix RCS1244 (#1007)
- [CLI] Add nullable reference type modifier when creating a list of symbols (
list-symbolscommand) (#1013) - Add/remove blank line after file scoped namespace declaration (RCS0060) (#1014)
- Do not remove overriding member in record (RCS1132) (#1015)
- Do not remove parameterless empty constructor in a struct with field initializers (RCS1074) (#1021)
- Do not suggest to use generic event handler (RCS1159) (#1022)
- Fix (RCS1077) (#1023)
- Fix (RCS1097) (#1037 by @jamesHargreaves12)
- Do not report (RCS1170) when
Microsoft.AspNetCore.Components.InjectAttributeis used (#1046) - Fix (RCS1235) (#1047)
- Fix (RCS1206) (#1049)
- Prevent possible recursion in (RCS1235) (#1054)
- Fix (RCS1223) (#1051 by @jamesHargreaves12)
- Do not remove braces in the cases where there are overlapping local variables. (RCS1031, RCS1211, RCS1208, RCS1061) (#1039, #1062 by @jamesHargreaves12)
- [CLI] Analyze command does not create the XML output file and returns incorrect exit code when only compiler diagnostics are reported (#1056 by @PeterKaszab)
- [CLI] Fix exit code when multiple projects are processed (#1061 by @PeterKaszab)
- Fix code fix for CS0164 (#1031 by @jamesHargreaves12)
- Do not report
System.Windows.DependencyPropertyChangedEventArgsas unused parameter (RCS1163) (#1068) - Fix (RCS1032) (#1064 by @jamesHargreaves12)
- Update processing of .globalconfig file to prioritize file-specific diagnostic severities over global diagnostic severities (#1066 by @jamesHargreaves12)
- Fix RCS1009 to handles discard designations (#1063 by @jamesHargreaves12)
- [CLI] Fix number of formatted documents, file banners added (#1072)
- Improve support for coalesce expressions in code fixes that require computing the logical inversion of an expression, such as RCS1208 (#1069 by @jamesHargreaves12)