with <Rules AnalyzerId="Roslynator.CSharp.Analyzers" RuleNamespace="Roslynator.CSharp.Analyzers">
roslynator
-
Published by JosefPihrt about 8 years ago
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.
roslynator
-
Published by JosefPihrt about 8 years ago
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
roslynator
-
Published by JosefPihrt about 8 years ago
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
roslynator
-
Published by JosefPihrt about 8 years ago
Refactorings
New Refactorings
AddRegion
AddIfDirective
RemoveAllStatements
RemoveAllMembers
AddUsingDirective
roslynator
-
Published by JosefPihrt about 8 years ago
Refactorings
New Refactorings
MergeIfStatements
AddDefaultValueToReturnStatement
InlineMethod
roslynator
-
Published by JosefPihrt about 8 years ago
Refactorings
New Refactorings
AddExpressionFromIfStatement
RemoveAllSwitchSections
RemoveStatementsFromSwitchSections
AddConfigureAwait
RemovePreprocessorDirectiveAndRelatedDirectives
roslynator
-
Published by JosefPihrt about 8 years ago
Refactorings
New Refactorings
ReplaceReturnStatementWithIfStatement
WrapStatementsInTryCatch
WrapStatementsInIfStatement
RemoveMemberDeclarations
roslynator
-
Published by JosefPihrt over 8 years ago
Refactorings
New Refactorings
AddIdentifierToVariableDeclaration
RemoveEmptyLines
roslynator
-
Published by JosefPihrt over 8 years ago
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
roslynator
-
Published by JosefPihrt over 8 years ago
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
roslynator
-
Published by JosefPihrt over 8 years ago
Refactorings
New Refactorings
ReplaceDoStatementWithWhileStatement
ReplaceWhileStatementWithDoStatement
IntroduceUsingStaticDirective
ChangeMethodReturnTypeToVoid
ReplaceEnumHasFlagWithBitwiseOperation
roslynator
-
Published by JosefPihrt over 8 years ago
Analyzers
Changes
many analyzers renamed
developmentDependency element added to CSharpAnalyzers.nuspec
Refactorings
New Refactorings
AddInterpolation
SimplifyLambdaExpression
Changes
refactorings can be enabled/disabled in Visual Studio UI (Tools - Options)
some refactorings are available only when C# 6.0 is available.
many refactorings renamed
refactoring "ChangeMemberTypeAccordingToReturnExpression" improved for async method
refactoring "AddCastToReturnExpression" improved for async method
refactoring "CheckParameterForNull" is not available for lambda and anonymous method
Bug Fixes
refactoring "MarkMemberAsStatic" should not be available for a constant.
roslynator
-
Published by JosefPihrt over 8 years ago
Analyzers
Changes
analyzer "MergeIfStatementWithContainedIfStatement" renamed to "MergeIfStatementWithNestedIfStatement"
Refactorings
New Refactorings
MarkMemberAsStatic
MarkAllMembersAsStatic
FormatAccessorBracesOnSingleLine
GenerateSwitchSections
ConvertStringLiteralToCharacterLiteral
Changes
refactoring "ReverseForLoop" is available within 'for' keyword.
refactoring "SwapExpressionsInBinaryExpression" is available only for logical and/or expression.
refactoring "AddCastAccordingToParameterType" can offer more than one cast.
refactorings "SwapParameters" and "SwapArguments" removed (these are covered by "Change signature..." dialog)
refactorings "RemoveMember" and "DuplicateMember" are available only at opening/closing brace
Bug Fixes
refactoring "RemoveAllRegions" is available inside #endregion directive.