Releases: openrewrite/rewrite-static-analysis
Releases · openrewrite/rewrite-static-analysis
2.33.0
What's Changed
- A new test case for
SimplifyBooleanExpressionby @greg-at-moderne in #848 InstanceOfPatternMatchto avoid providing invalid variable definitions pointing to itself by @greg-at-moderne in #849- Enrich recipe descriptions with rationale by @jkschneider in #850
- Fix EmptyBlock, FinalClass, HideUtilityClassConstructor; add regression tests by @timtebeek in #851
- Fix switch-related recipe bugs (#6, #9, #14, #687) by @timtebeek in #852
- Add space after // in single-line comments by @AVIMTA in #854
- Fix InstanceOfPatternMatch duplicate pattern variable names with flow scoping by @timtebeek in #855
- Fix RenameExceptionInEmptyCatch crash on Kotlin/Groovy files by @timtebeek in #856
- Fix FinalizeLocalVariables crash on Kotlin/Groovy top-level variables by @timtebeek in #857
- Fix UnnecessaryExplicitTypeArguments within lambda return statements by @timtebeek in #858
- Add SillyEqualsCheck recipe (RSPEC-S2159) by @timtebeek in #834
- Add RemoveUnusedLabels recipe (RSPEC-S1065) by @timtebeek in #835
- Add S2209/S3252 recipe: Static members via class name by @timtebeek in #836
- Add S1185 recipe: Remove methods that only call super by @timtebeek in #837
- NeedBraces: add test for if-else, fix do-while by @greg-at-moderne in #859
- Add tests confirming #20 is fixed by @greg-at-moderne in #860
- Handle chained addition in PreferIncrementOperator by @greg-at-moderne in #816
- Fix UnnecessaryCatch for nested try-with-resources close() by @timtebeek in #863
- Fix FinalizePrivateFields breaking code with lambda reads in field initializers by @timtebeek in #862
- Regression test for
ReplaceStackWithDequecrash onthisargument by @knutwannheden in #864
New Contributors
Full Changelog: v2.32.0...v2.33.0
2.32.0
What's Changed
- Remove @disabled tests in
ReplaceStackWithDequeTestby @greg-at-moderne in #840 - A couple of test cases in
RemoveExtraSemicolonsTestare no longer expected to fail by @greg-at-moderne in #841 - Fix compilation after new args added to Cs.CompilationUnit by @greg-at-moderne in #842
- Improve AnnotateNullableParameters to avoid duplicate annotations and annotation placement issues by @stefanodallapalma in #843
- Inline JavaTemplate fields at call sites by @timtebeek in #844
- Use
JavaTemplate.apply()static method by @timtebeek in #846 - Improve AnnotateNullableMethods to avoid duplicate annotations and annotation placement issues by @stefanodallapalma in #845
- Skip
InstanceOfPatternMatchfor try-with-resources casts by @timtebeek in #847
Full Changelog: v2.31.0...v2.32.0
2.31.0
What's Changed
- Add InterruptedExceptionHandling recipe (RSPEC-S2142) by @timtebeek in #838
- Add ExplicitThis recipe to make
this.prefix explicit. by @motlin in #791 - SimplifyBooleanExpression: skip nullable boolean comparisons in Kotlin by @timtebeek in #839
Full Changelog: v2.30.1...v2.31.0
2.30.1
What's Changed
- Fix RemoveInstanceOfPatternMatch crash on Groovy files by @timtebeek in #828
- Add
RSPEC-S2387tag to HiddenField recipe by @timtebeek in #829 - Add
RSPEC-S1845recipe: members differing only by capitalization by @timtebeek in #830 - Add
UseTryWithResourcesrecipe (RSPEC-S2093) by @timtebeek in #831 - Extend
UseTryWithResourcesto non-consecutive declarations by @timtebeek in #833
Full Changelog: v2.30.0...v2.30.1
2.30.0
What's Changed
- Disabling C# tests if no .dotnet available by @greg-at-moderne in #825
- Add missing RSPEC tags and fix inconsistent tag formatting by @timtebeek in #826
- Remove
RemoveTrailingWhitespaceby @greg-at-moderne in #827
Full Changelog: v2.29.0...v2.30.0
2.29.0
What's Changed
- Remove mutable static field in ChainStringBuilderAppendCalls by @timtebeek in #822
ChainStringBuilderAppendCallsshould not flatten a single argument by @motlin in #823
New Contributors
Full Changelog: v2.28.0...v2.29.0
2.28.0
What's Changed
- CLAUDE instructions: Do not add to common-static-analysis.yml by @greg-at-moderne in #818
- Regenerate recipes.csv to fix CI by @timtebeek in #820
RemoveTrailingWhitespacerecipe by @greg-at-moderne in #819SimplifyForLoopBoundaryComparisonrecipe by @greg-at-moderne in #821
Full Changelog: v2.27.0...v2.28.0
2.27.0
What's Changed
- Skip MinimumSwitchCases transformation when type info is missing by @jkschneider in #808
- Preserve
else-ifchains inUnwrapElseAfterReturnrecipe by @knutwannheden in #809 - Followup after the formatting merge by @Jenson3210 in #810
- Make declarative recipes singletons by @sambsnyd in #811
- Fix UnnecessaryThrows to check actual close() method exceptions by @timtebeek in #812
- Adjust indent in
ReplaceRedundantFormatWithPrintfTestby @greg-at-moderne in #815 - One more test case for
ExplicitLambdaArgumentTypesby @greg-at-moderne in #814
New Contributors
Full Changelog: v2.26.0...v2.27.0
2.26.0
What's Changed
- Replace
getDisplayName()andgetDescription()methods with fields by @timtebeek in #805 - Replace
getTags()method with field by @timtebeek in #806 - Replace
getEstimatedEffortPerOccurrence()method with field by @timtebeek in #807
Full Changelog: v2.25.0...v2.26.0
2.25.0
What's Changed
ReplaceWeekYearWithYearshould not replace valid week-year usages by @tginsberg in #801
New Contributors
- @tginsberg made their first contribution in #801
Full Changelog: v2.24.0...v2.25.0