Releases: dotnet/roslynator
Releases · dotnet/roslynator
v0.99.5
Analyzers
Changes
- "DeclareEachTypeInSeparateFile" has code fix.
Bug Fixes
- "ReplacePropertyWithAutoProperty" - property and field must be of equal type.
Refactorings
Bug Fixes
- "InsertInterpolation" - '{' and '}' are escaped by doubling when creating interpolated string from string literal.
v0.99.0
Analyzers
Changes
- "UseExplicitTypeInsteadOfVar" and "UseVarInsteadOfExplicitType" allow 'var' for enum member expression.
- "AddDefaultAccessModifier" works with partial classes.
- "AvoidUsageOfUsingAliasDirective" has code fix.
Refactorings
New Refactorings
- ReplaceIfElseWithConditionalExpression
- ReplaceConditionalExpressionWithExpression
v0.98.0
Analyzers
Changes
- "RemoveRedundantEmptyLine" analyzer - empty line is allowed when it is last line in 'do' statement's body (when 'while' token is on the same line as closing brace)
- "UseExplicitTypeInsteadOfVar" and "UseVarInsteadOfExplicitType" analyzers - 'var' is allowed for 'default(T)' expression
Refactorings
New Refactorings
- MergeAssignmentExpressionWithReturnStatement
- CollapseToInitializer
- IntroduceAndInitializeField
- IntroduceAndInitializeProperty
v0.97.0
Refactorings
New Refactorings
- AddRegion
- AddIfDirective
- RemoveAllStatements
- RemoveAllMembers
- AddUsingDirective
v0.96.0
Refactorings
New Refactorings
- MergeIfStatements
- AddDefaultValueToReturnStatement
- InlineMethod
v0.95.0
Refactorings
New Refactorings
- AddExpressionFromIfStatement
- RemoveAllSwitchSections
- RemoveStatementsFromSwitchSections
- AddConfigureAwait
- RemovePreprocessorDirectiveAndRelatedDirectives
v0.94.0
Refactorings
New Refactorings
- ReplaceReturnStatementWithIfStatement
- WrapStatementsInTryCatch
- WrapStatementsInIfStatement
- RemoveMemberDeclarations
v0.93.0
Refactorings
New Refactorings
- AddIdentifierToVariableDeclaration
- RemoveEmptyLines
v0.92.0
Refactorings
New Refactorings
- CommentOutMember
- CommentOutStatement
- IntializerLocalWithDefaultValue
- AddDefaultValueToParameter
Improvements
- refactoring "ChangeTypeAccordingToExpression" works for field declaration
- refactoring "AddCastExpression" works for case label expression
- refactoring "FormatExpressionChain" does not format namespace
- refactoring "ReplacePropertyWithMethod" works for property with setter
- refactoring "ReverseForLoop" works for reversed for loop
v0.91.0
Refactorings
New Refactorings
- RemoveConditionFromLastElseIf
- RemoveAllXmlComments
- RemoveStatement
- DuplicateStatement
- ReplaceAnonymousMethodWithLambdaExpression
- SplitVariableDeclaration
- ReplaceCountWithLengthOrLengthWithCount
Changes
- ChangeMethodReturnTypeToVoid
- refactoring is available only when method body contains at least one statement
- refactoring is not available for async method that returns Task
- IntroduceUsingStaticDirective
- refactoring is available only when class name is selected