Greg Oledzki

Results 52 issues of Greg Oledzki

## What problem are you trying to solve? I'd like to be able to tackle inconsistent order of frequently used annotations in the code. e.g. ``` @Issue("https://github.com/openrewrite/rewrite/issues/2973") @Test @ExpectedToFail void...

enhancement
good first issue
recipe

## What problem are you trying to solve? Simplify code. ## Describe the situation before applying the recipe ```java class A { void foo(boolean a, boolean b) { if (a)...

recipe

## What version of OpenRewrite are you using? Current main of: - `rewrite-static-analysis`: 6f2d4e1aaddd55e64713bc3e5353d7bfadfc27b3 - `rewrite`: 59acfcd277c4e2d8c07ee8608117c8767a41e4f8 ## What is the smallest, simplest way to reproduce the problem? See `CombineSemanticallyEqualCatchBlocksTest#combineSameSemanticallyEquivalentMethodTypes`...

bug

## Steps to reproduce Using current main (da16633812da68d2b2d8d9054030fbbda733d5a2) the following test: ```python def test_concatenation_with_empty_string(): # language=python rewrite_run(python('print("alef" "")')) ``` fails with: ``` Expected :'print("alef" "")' Actual :'print("alef" )' ``` AFAICT...

bug
python

## What problem are you trying to solve? Implement an Autodetector of Python formatting style. ## Describe the solution you'd like So that we can process Python source code without...

enhancement
python

It would be great if Mockito allowed to `mockConstruction` of a class resulting in constructor(s) throwing a given exception. This would be useful for testing of bad-path handling, especially for...

## What's changed? ## What's your motivation? - Fixes https://github.com/openrewrite/rewrite/issues/5270 ## Anything in particular you'd like reviewers to focus on? ## Anyone you would like to review specifically? ## Have...

dependencies
recipe

Our CI suddenly started failing with: ``` /home/runner/work/rewrite/rewrite/rewrite-gradle/src/main/groovy/RewriteSettings.groovy: 19: unable to resolve class com.gradle.enterprise.gradleplugin.GradleEnterpriseExtension > Task :rewrite-gradle:compileGroovy FAILED @ line 19, column 1. Created user preferences directory. import com.gradle.enterprise.gradleplugin.GradleEnterpriseExtension ^...

dependencies

## What's changed? In Java: - changing the type of `ForEachLoop.Control.variable` from `VariableDeclarations` to `Statement`. In Javascript: - using this to handle cases where `for-of` or `for-in` loops use a...

parser-javascript

## What's changed? In Javascript fixing parsing of a special case of `export import ...` statements. ## What's your motivation? Otherwise the parser fails to recognize it properly and swallows...