Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve recipes and excluded them from C# codebase if needed #396

Merged
merged 6 commits into from
Nov 28, 2024

Conversation

jevanlingen
Copy link
Contributor

What's changed?

Excluded CSharp for some recipes + made some recipes a little bit more modern

What's your motivation?

Some recipes don't work for C#.

Checklist

  • I've added unit tests to cover both positive and negative cases
  • I've read and applied the recipe conventions and best practices
  • I've used the IntelliJ IDEA auto-formatter on affected files

@jevanlingen jevanlingen force-pushed the exclude-non-usable-cs-recipes branch from ab20d12 to 2d28a34 Compare November 26, 2024 16:07
Copy link
Contributor

@timtebeek timtebeek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good; what part of this is still in draft? Or can we already merge this increment?

@timtebeek timtebeek added the bug Something isn't working label Nov 26, 2024
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some suggestions could not be made:

  • src/main/java/org/openrewrite/staticanalysis/FixStringFormatExpressions.java
    • lines 29-29
  • src/main/java/org/openrewrite/staticanalysis/IndexOfChecksShouldUseAStartPosition.java
    • lines 27-27
  • src/main/java/org/openrewrite/staticanalysis/IndexOfReplaceableByContains.java
    • lines 25-25
  • src/main/java/org/openrewrite/staticanalysis/IndexOfShouldNotCompareGreaterThanZero.java
    • lines 20-20
  • src/main/java/org/openrewrite/staticanalysis/ObjectFinalizeCallsSuper.java
    • lines 28-28
  • src/main/java/org/openrewrite/staticanalysis/PrimitiveWrapperClassConstructorToValueOf.java
    • lines 30-30
  • src/main/java/org/openrewrite/staticanalysis/StringLiteralEquality.java
    • lines 25-25
  • src/main/java/org/openrewrite/staticanalysis/WriteOctalValuesAsDecimal.java
    • lines 26-27

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some suggestions could not be made:

  • src/main/java/org/openrewrite/staticanalysis/FixStringFormatExpressions.java
    • lines 29-29
  • src/main/java/org/openrewrite/staticanalysis/IndexOfChecksShouldUseAStartPosition.java
    • lines 27-27
  • src/main/java/org/openrewrite/staticanalysis/IndexOfReplaceableByContains.java
    • lines 25-25
  • src/main/java/org/openrewrite/staticanalysis/IndexOfShouldNotCompareGreaterThanZero.java
    • lines 20-20
  • src/main/java/org/openrewrite/staticanalysis/ObjectFinalizeCallsSuper.java
    • lines 28-28
  • src/main/java/org/openrewrite/staticanalysis/PrimitiveWrapperClassConstructorToValueOf.java
    • lines 30-30
  • src/main/java/org/openrewrite/staticanalysis/StringLiteralEquality.java
    • lines 25-25
  • src/main/java/org/openrewrite/staticanalysis/WriteOctalValuesAsDecimal.java
    • lines 26-27

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some suggestions could not be made:

  • src/main/java/org/openrewrite/staticanalysis/FixStringFormatExpressions.java
    • lines 29-29
  • src/main/java/org/openrewrite/staticanalysis/IndexOfChecksShouldUseAStartPosition.java
    • lines 27-27
  • src/main/java/org/openrewrite/staticanalysis/IndexOfReplaceableByContains.java
    • lines 25-25
  • src/main/java/org/openrewrite/staticanalysis/IndexOfShouldNotCompareGreaterThanZero.java
    • lines 20-20
  • src/main/java/org/openrewrite/staticanalysis/ObjectFinalizeCallsSuper.java
    • lines 28-28
  • src/main/java/org/openrewrite/staticanalysis/PrimitiveWrapperClassConstructorToValueOf.java
    • lines 30-30
  • src/main/java/org/openrewrite/staticanalysis/StringLiteralEquality.java
    • lines 25-25
  • src/main/java/org/openrewrite/staticanalysis/WriteOctalValuesAsDecimal.java
    • lines 26-27

@jevanlingen jevanlingen marked this pull request as ready for review November 27, 2024 13:03
@jevanlingen jevanlingen force-pushed the exclude-non-usable-cs-recipes branch from 68200b7 to 9fc2972 Compare November 28, 2024 12:47
@timtebeek timtebeek merged commit 0b00944 into main Nov 28, 2024
2 checks passed
@timtebeek timtebeek deleted the exclude-non-usable-cs-recipes branch November 28, 2024 18:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants