Skip to content
This repository has been archived by the owner. It is now read-only.

Release 2.0

Christoph Wille edited this page Sep 24, 2015 · 12 revisions

Version 2.0

  • Bugfixes and improvements in existing analyzers/refactorings in this release: see list
  • Consolidation of some redundancies between analyzers and refactorings (example: RewriteIfReturnToReturnAnalyzer vs. ConvertIfStatementToReturnStatementAction)

What's New in C#

New refactorings - thanks to @Novakov

  • "Put inside 'using'"

PutInsideUsingAction

New analyzers - thanks to @Novakov

  • "Iterate via 'foreach'"

IterateViaForeachAction

  • "Merge nested 'if'"

MergeNestedIfAction

New analyzers - ported by @Kavignon

  • "Redundant explicit size in array creation"

RedundantExplicitArraySizeAnalyzer

  • "Redundant comma in array initializer"

RedundantCommaInArrayInitializerAnalyzer

  • "Redundant base constructor call"

RedundantBaseConstructorCallAnalyzer

  • "Empty argument list is redundant"

RedundantObjectCreationArgumentListAnalyzer

  • "Local variable is never used"

LocalVariableNotUsedAnalyzer

  • "Parameter is assigned but its value is never used"

ParameterOnlyAssignedAnalyzer

  • "Redundant condition check before assignment"

RedundantCheckBeforeAssignmentAnalyzer

What's New in VB

New refactorings:

  • "Check if parameter is Nothing":

CheckIfParameterIsNothingCodeRefactoringProvider

  • "Compute constant value":

ComputeConstantValueCodeRefactoring

  • "Convert dec to hex.":

ConvertDecToHexCodeRefactoringProvider

  • "Convert hex to dec.":

ConvertHexToDecCodeRefactoringProvider

  • "Convert 'If' to 'Select Case'":

ConvertIfStatementToSelectCaseStatementCodeRefactoringProvider

  • "Convert 'Select Case' to 'If'":

ConvertSelectCaseToIfCodeRefactoringProvider

  • "Convert cast to 'TryCast'":

ReplaceDirectCastWithSafeCastCodeRefactoring

  • "Convert 'TryCast' to cast":

ReplaceSafeCastWithDirectCastCodeRefactoringProvider

Improvement of "Check dictionary key value" refactoring:

CheckDictionaryKeyValueCodeRefactoring