Releases: dotnet/roslynator
Releases · dotnet/roslynator
v2.0.0
New Features
- Add nuget package Roslynator.CommandLine
Analyzers
- Change default severity of RCS1141, RCS1142 and RCS1165 to 'Hidden'
- Disable RCS1174 by default
- Improve analyzer RCS1128 -
x.GetValueOrDefault(y)
can be replaced withx ?? y
- Change code fix for RCS1194 - do not generate "serialization" constructor
Refactorings
- Add refactoring RemoveAsyncAwait (RR0209)
Code Fixes
- Add code fix for CS0119.
v1.9.2
Analyzers
- Add analyzer UnusedElementInDocumentationComment (RCS1228)
- Add analyzer UseAsyncAwait (RCS1229)
- Add code fix for analyzer UnusedParameter (RCS1163)
Refactorings
- Add refactoring AddTagToDocumentationComment (RR0208)
Code Fixes
- Add code fixes for CS8050 and CS8139.
v1.9.1
Analyzers
- Add analyzer ValidateArgumentsCorrectly (RCC1227)
Refactorings
-
Add refactoring ReplaceForEachWithEnumerator (RR0206)
-
Add refactoring SortCaseLabels (RR0207)
-
Enable refactorings UseExpressionBodiedMember and ExpandExpressionBody for multiple members (RR0037, RR0169).
-
Extend refactoring ReduceIfNesting and rename it to InvertIf (RR0189).
v1.9.0
v1.8.3
Analyzers
-
Add analyzer MarkTypeWithDebuggerDisplayAttribute (RCC1223)
-
Add analyzer MakeMethodExtensionMethod (RCC1224)
-
Add analyzer MakeSealedClass (RCC1225)
-
Add analyzer AddParagraphToDocumentationComment (RCC1226)
-
Improve analyzer UseConditionalAccess (RCS1146)
x == null || x.y
can be simplified tox?.y != false
x == null || !x.y
can be simplified tox?.y != true
Refactorings
- Improve refactoring FormatExpressionChain (RR0051)
- A chain that contains conditional access (
x?.y
) will be properly formatted.
- A chain that contains conditional access (
v1.8.2
Analyzers
- Add analyzer UsePatternMatchingInsteadOfIsAndCast (RCS1220)
- Add analyzer UsePatternMatchingInsteadOfAsAndNullCheck (RCS1221)
- Add analyzer MergePreprocessorDirectives (RCS1222)
Code Fixes
- Add code fixes for CS0136, CS0210, CS1003, CS1624 and CS1983.
v1.8.1
Analyzers
- Add analyzer SimplifyCodeBranching (RCS1218)
- Add analyzer CallSkipAndAnyInsteadOfCount (RCS1219) (split from RCS1083)
Refactorings
- Add refactoring MoveUnsafeContextToContainingDeclaration (RR0202)
- Add refactoring ExtractEventHandlerMethod (RR0203)
- Add refactoring GeneratePropertyForDebuggerDisplayAttribute (RR0204)
- Add refactoring AddEmptyLineBetweenDeclarations (RR0205)
Code Fixes
- Add code fixes for CS0152, CS0238, CS0524, CS0525, CS0549, CS0567, CS0568, CS0574, CS0575, CS0714, CS1737, CS1743, CS8340.
v1.8.0
Analyzers
Changes of "IsEnabledByDefault"
- RCS1008: disabled by default
- RCS1009: disabled by default
- RCS1010: disabled by default
- RCS1035: disabled by default
- RCS1040: enabled by default
- RCS1073: enabled by default
Changes of "DefaultSeverity"
- RCS1017: from Warning to Info
- RCS1026: from Warning to Info
- RCS1027: from Warning to Info
- RCS1028: from Warning to Info
- RCS1030: from Warning to Info
- RCS1044: from Info to Warning
- RCS1045: from Warning to Info
- RCS1055: from Info to Hidden
- RCS1056: from Warning to Info
- RCS1073: from Hidden to Info
- RCS1076: from Info to Hidden
- RCS1081: from Warning to Info
- RCS1086: from Warning to Info
- RCS1087: from Warning to Info
- RCS1088: from Warning to Info
- RCS1094: from Warning to Info
- RCS1110: from Warning to Info
- RCS1182: from Info to Hidden
v1.7.2
1.7.2 (2018-03-06)
Analyzers
- Add analyzer ReplaceInterpolatedStringWithStringConcatenation (RCS1217).
Refactorings
- Add refactoring ReplaceInterpolatedStringWithStringFormat (RR0201).
v1.7.1
Analyzers
- Add analyzer UnneccesaryUnsafeContext (RCS1216).
- Improve analyzer ReplaceCommentWithDocumentationComment (RCS1181) - support trailing comment.