Nick McKinney

Results 41 issues of Nick McKinney

## What problem are you trying to solve? Standard formatting ## What precondition(s) should be checked before applying this recipe? None? ## Describe the situation before applying the recipe ```kotlin...

recipe

(based on conversation over here https://github.com/openrewrite/rewrite-gradle-plugin/issues/305) In order to customize plugin marker artifacts, the work must be done in an `afterEvaluate` block, as described here: https://discuss.gradle.org/t/how-can-i-customize-the-pom-of-the-plugin-marker-artifacts/33053 The `MavenApacheLicensePlugin` does not...

## What problem are you trying to solve? In Spring Framework 5.3, `ResponseStatusException` had methods `getRawStatusCode()` and `getStatus()`: https://docs.spring.io/spring-framework/docs/5.3.37/javadoc-api/org/springframework/web/server/ResponseStatusException.html In Spring Framework 6.0, these are removed. The `getStatusCode()` method from...

good first issue
recipe

test case: ```java @Test void resolveDependencyManagementImportsOnlyOnce() { rewriteRun( pomXml(""" 4.0.0 org.springframework.boot spring-boot-starter-parent 2.7.5 org.sample sample 3.9.0 org.mockito mockito-bom 4.6.1 """) ); } ``` This test fails during parsing with: >...

bug
enhancement

test cases: ```java @Test void moveSubpropertyOut() { rewriteRun( spec -> spec.recipe(new ChangePropertyKey("foo.bar", "bar", null, null, null)), yaml( """ foo: bar: prop: val other: other-val """, """ foo: other: other-val bar:...

bug

When `RemoveProperty` removes the last/only property in a `pom.xml`, then it would be nice if it also removed the empty `` tag. The existing recipe logic is trivial and does...

enhancement
good first issue

Test case: ```java @Test void consecutiveCommentBlocks() { rewriteRun( java( """ package org.sample; //import org.apache.log4j.Logger; /*import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger;*/ /** * Does stuff */ public class MyClass { /*// private static...

bug
parser-java

## What problem are you trying to solve? SpringFox to SpringDoc migration guide: https://springdoc.org/#migrating-from-springfox - #579 added support for the SB 2.6 recipe to include the dependency changes and the...

recipe

## What version of OpenRewrite are you using? I am using `main` ## How are you running OpenRewrite? unit tests ## What is the smallest, simplest way to reproduce the...

bug

## What version of OpenRewrite are you using? I am using `main` ## How are you running OpenRewrite? unit tests ## What is the smallest, simplest way to reproduce the...

bug