-
Notifications
You must be signed in to change notification settings - Fork 478
Open
Labels
bugSomething isn't workingSomething isn't working
Description
What version of OpenRewrite are you using?
I am using
- OpenRewrite v1.2.3
- Maven/Gradle plugin v1.2.3
- rewrite-module v1.2.3
How are you running OpenRewrite?
I am using the Maven plugin, and my project is a single module project.
<plugin>
<groupId>org.openrewrite.maven</groupId>
<artifactId>rewrite-maven-plugin</artifactId>
<version>6.24.0</version>
<configuration>
<exportDatatables>true</exportDatatables>
<skipMavenParsing>true</skipMavenParsing>
<activeRecipes>
<recipe>org.checkstyle.openrewrite.SanityCheck</recipe>
</activeRecipes>
<exclusions>
<exclusion>**.ci-temp**</exclusion>
<exclusion>**.jp*g</exclusion>
<exclusion>**.png</exclusion>
<exclusion>**/resources-noncompilable</exclusion>
<exclusion>**src/it/resources**</exclusion>
<exclusion>**src/test/resources**</exclusion>
<exclusion>**xdocs-examples**</exclusion>
</exclusions>
<plainTextMasks>
<plainTextMask>**.groovy</plainTextMask>
<plainTextMask>**.xml</plainTextMask>
<plainTextMask>**.yml</plainTextMask>
<plainTextMask>**/resources-noncompilable/**</plainTextMask>
<plainTextMask>**/resources/**</plainTextMask>
</plainTextMasks>
</configuration>
<dependencies>
<dependency>
<groupId>com.puppycrawl.tools</groupId>
<artifactId>checkstyle-openrewrite-recipes</artifactId>
<version>1.0.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.openrewrite.recipe</groupId>
<artifactId>rewrite-migrate-java</artifactId>
<version>3.22.0</version>
</dependency>
<dependency>
<groupId>org.openrewrite.recipe</groupId>
<artifactId>rewrite-codemods</artifactId>
<version>0.22.0</version>
</dependency>
<dependency>
<groupId>org.openrewrite.recipe</groupId>
<artifactId>rewrite-static-analysis</artifactId>
<version>2.22.0</version>
</dependency>
<dependency>
<groupId>org.openrewrite.recipe</groupId>
<artifactId>rewrite-rewrite</artifactId>
<version>0.16.0</version>
</dependency>
</dependencies>
</plugin>What is the smallest, simplest way to reproduce the problem?
-
[rewrite] apply
ECMAScript6BestPracticesdiffplug/spotless#2768 (comment) -
https://github.com/checkstyle/checkstyle/pull/18158/files#r2555889770
What did you expect to see?
// this file will be glued to the top of the specific xy-serve.js file
const debug_serve = false; // set to true for debug log output in node process
const shutdownServer = require("http-graceful-shutdown");
const express = require("express");
What did you see instead?
happens only in/after second run:
first time it was fast and fine best second time freezed everything.
endless copying the comment every run:
// this file will be glued to the top of the specific xy-serve.js file
// this file will be glued to the top of the specific xy-serve.js file
// this file will be glued to the top of the specific xy-serve.js file
// this file will be glued to the top of the specific xy-serve.js file
// this file will be glued to the top of the specific xy-serve.js file
const debug_serve = false; // set to true for debug log output in node process
const shutdownServer = require("http-graceful-shutdown");
const express = require("express");
What is the full stack trace of any errors you encountered?
stacktrace output here
Are you interested in contributing a fix to OpenRewrite?
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working
Type
Projects
Status
No status