Skip to content

Releases: dotnet/roslynator

v1.0.3

15 Oct 20:25
Compare
Choose a tag to compare

Analyzers

New Analyzers
  • UsePostfixUnaryOperatorInsteadOfAssignment
  • AddConfigureAwait

v1.0.2

12 Oct 12:03
Compare
Choose a tag to compare

Analyzers

New Analyzers
  • UseLinefeedAsNewline
  • UseCarriageReturnAndLinefeedAsNewline
  • AvoidUsageOfTab

v1.0.1

08 Oct 14:45
Compare
Choose a tag to compare

Refactorings

Changes
  • ReplaceMethodWithProperty and ReplacePropertyWithMethod refactorings significantly improved.
New Refactorings
  • ExtractTypeDeclarationToNewFile
  • MergeLocalDeclarations

v1.0.0

03 Oct 13:50
Compare
Choose a tag to compare
  • 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

12 Sep 14:37
Compare
Choose a tag to compare

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

28 Aug 14:24
Compare
Choose a tag to compare

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

14 Aug 03:23
Compare
Choose a tag to compare

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

08 Aug 01:53
Compare
Choose a tag to compare

Refactorings

New Refactorings
  • AddRegion
  • AddIfDirective
  • RemoveAllStatements
  • RemoveAllMembers
  • AddUsingDirective

v0.96.0

04 Aug 23:28
Compare
Choose a tag to compare

Refactorings

New Refactorings
  • MergeIfStatements
  • AddDefaultValueToReturnStatement
  • InlineMethod

v0.95.0

29 Jul 23:40
Compare
Choose a tag to compare

Refactorings

New Refactorings
  • AddExpressionFromIfStatement
  • RemoveAllSwitchSections
  • RemoveStatementsFromSwitchSections
  • AddConfigureAwait
  • RemovePreprocessorDirectiveAndRelatedDirectives