Releases: dotnet/roslynator
Releases · dotnet/roslynator
v1.0.3
Analyzers
New Analyzers
- UsePostfixUnaryOperatorInsteadOfAssignment
- AddConfigureAwait
v1.0.2
Analyzers
New Analyzers
- UseLinefeedAsNewline
- UseCarriageReturnAndLinefeedAsNewline
- AvoidUsageOfTab
v1.0.1
Refactorings
Changes
- ReplaceMethodWithProperty and ReplacePropertyWithMethod refactorings significantly improved.
New Refactorings
- ExtractTypeDeclarationToNewFile
- MergeLocalDeclarations
v1.0.0
- Entire project was renamed to Roslynator
- Visual Studio extension C# Analyzers and Refactorings was renamed to Roslynator
- Visual Studio extension C# Refactorings was renamed to Roslynator Refactorings
- Some assemblies were renamed. As a result ruleset files must be updated in a following way:
- replace <Rules AnalyzerId="Pihrtsoft.CodeAnalysis.CSharp" RuleNamespace="Pihrtsoft.CodeAnalysis.CSharp">
- with <Rules AnalyzerId="Roslynator.CSharp.Analyzers" RuleNamespace="Roslynator.CSharp.Analyzers">
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