Skip to content

Releases: dotnet/roslynator

v1.4.57

06 Sep 00:50
Compare
Choose a tag to compare

Refactorings

New Refactorings
  • ReplaceIfElseWithIfReturn (RR0190)

Code Fixes

  • Add code fix for CS0021.

v1.4.56

28 Aug 15:01
Compare
Choose a tag to compare

Analyzers

New Analyzers
  • ReorderTypeParameterConstraints (RCS1209)

v1.4.55

16 Aug 15:39
Compare
Choose a tag to compare

Code Fixes

  • Add code fixes for CS0077, CS0201, CS0472, CS1623.

Analyzers

New Analyzers
  • ReduceIfNesting (RCS1208)

Refactorings

New Refactorings
  • ReduceIfNesting (RR0189)

v1.4.54

08 Aug 13:30
Compare
Choose a tag to compare

Code Fixes

  • Improve code fixes for CS0162, CS1061.

Analyzers

  • Add code fix for analyzer ParameterNameDiffersFromBase (RCS1168)
New Analyzers
  • UseAttributeUsageAttribute (RCS1203)
  • UseEventArgsEmpty (RCS1204)
  • ReorderNamedArguments (RCS1205)
  • UseConditionalAccessInsteadOfConditionalExpression (RCS1206)
  • UseMethodGroupInsteadOfAnonymousFunction (RCS1207)

v1.4.53

02 Aug 18:08
Compare
Choose a tag to compare

Code Fixes

  • New code fixes for CS0139, CS0266, CS0592, CS1689.

Analyzers

New Analyzers
  • SimplifyBooleanExpression (RCS1199)
  • CallThenByInsteadOfOrderBy (RCS1200)
  • UseMethodChaining (RCS1201)
  • UseConditionalAccessToAvoidNullReferenceException (RCS1202)

v1.4.52

24 Jul 14:17
Compare
Choose a tag to compare

Code Fixes

  • New code fixes for CS0115, CS1106, CS1621, CS1988.

v1.4.51

19 Jul 18:01
Compare
Choose a tag to compare

Refactorings

  • MarkContainingClassAsAbstract (RR0073) has been replaced with code fix.
New Refactorings
  • FormatWhereConstraint (RR0187)
  • ReplaceForEachWithForAndReverseLoop (RR0188)

Code Fixes

New Code Fixes

Code fixes has been added for the following compiler diagnostics:

  • NamespaceAlreadyContainsDefinition (CS0101)
  • TypeAlreadyContainsDefinition (CS0102)
  • TypeOfConditionalExpressionCannotBeDetermined (CS0173)
  • OutParameterMustBeAssignedToBeforeControlLeavesCurrentMethod (CS0177)
  • NewConstraintMustBeLastConstraintSpecified (CS0401)
  • DuplicateConstraintForTypeParameter (CS0405)
  • ConstraintClauseHasAlreadyBeenSpecified (CS0409)
  • ClassOrStructConstraintMustComeBeforeAnyOtherConstraints (CS0449)
  • CannotSpecifyBothConstraintClassAndClassOrStructConstraint (CS0450)
  • NewConstraintCannotBeUsedWithStructConstraint (CS0451)
  • TypeParameterHasSameNameAsTypeParameterFromOuterType (CS0693)
  • StaticTypesCannotBeUsedAsTypeArguments (CS0718)
  • PartialMethodCannotHaveAccessModifiersOrVirtualAbstractOverrideNewSealedOrExternModifiers (CS0750)
  • NoDefiningDeclarationFoundForImplementingDeclarationOfPartialMethod (CS0759)
  • PartialMethodsMustHaveVoidReturnType (CS0766)
  • MethodHasParameterModifierThisWhichIsNotOnFirstParameter (CS1100)
  • ExtensionMethodMustBeStatic (CS1105)
  • ElementsDefinedInNamespaceCannotBeExplicitlyDeclaredAsPrivateProtectedOrProtectedInternal (CS1527)
  • AsyncModifierCanOnlyBeUsedInMethodsThatHaveBody (CS1994)

v1.4.50

05 Jul 11:45
Compare
Choose a tag to compare
  • Add code fixes that fix 80+ compiler diagnostics (like 'CS0001')

Analyzers

  • Following analyzers have been replaced with code fixes:

    • ReplaceReturnStatementWithExpressionStatement (RCS1115)
    • AddBreakStatementToSwitchSection (RCS1116)
    • AddReturnStatementThatReturnsDefaultValue (RCS1117)
    • AddMissingSemicolon (RCS1122)
    • MarkMemberAsStatic (RCS1125)
    • ReplaceReturnWithYieldReturn (RCS1131)
    • AddDocumentationComment (RCS1137)
    • MarkContainingClassAsAbstract (RCS1144)
    • RemoveInapplicableModifier (RCS1147)
    • RemoveUnreachableCode (RCS1148)
    • RemoveImplementationFromAbstractMember (RCS1149)
    • MemberTypeMustMatchOverriddenMemberType (RCS1152)
    • OverridingMemberCannotChangeAccessModifiers (RCS1176)

Refactorings

  • Following refactorings have been replaced with code fixes:

    • AddBooleanComparison (RR0001)
    • ExtractDeclarationFromUsingStatement (RR0042)
    • MarkMemberAsStatic (RR0072)
    • ReplaceCountWithLengthOrLengthWitCount (RR0122)
    • ReplaceStringLiteralWithCharacterLiteral (RR0146)
New Refactorings
  • ChangeAccessibility (RR0186)

v1.4.13

21 Jun 15:56
Compare
Choose a tag to compare

Analyzers

New Analyzers
  • OptimizeStringBuilderAppendCall (RCS1197)
  • AvoidBoxingOfValueType (RCS1198)

v1.4.12

11 Jun 20:21
Compare
Choose a tag to compare

Analyzers

New Analyzers
  • UseRegularStringLiteralInsteadOfVerbatimStringLiteral (RCS1192)
  • OverridingMemberCannotChangeParamsModifier (RCS1193)
  • ImplementExceptionConstructors (RCS1194)
  • UseExclusiveOrOperator (RCS1195)
  • CallExtensionMethodAsInstanceMethod (RCS1196)

Refactorings

New Refactorings
  • UseListInsteadOfYield (RR0183)
  • SplitIfStatement (RR0184)
  • ReplaceObjectCreationWithDefaultValue (RR0185)