allow ReplaceRegexStep to function as a Linter, use that to improve RemoveWildcardImports#2571
Conversation
…ortsStep.java Co-authored-by: Owais Kazi <owaiskazi19@gmail.com>
…ix-RemoveWildcardImportsStep
|
nice one, thank you so much. |
|
Most of the work is already done by @Pankraz76. I updated Lint changes on top of it. kindly request your feedback. |
|
This is close! It needs
|
| int line = 1 + (int) raw.codePoints().limit(matcher.start()).filter(c -> c == '\n').count(); | ||
| lints.add(atLine(line, matcher.group(0), replacement)); | ||
| } | ||
| return lints; |
There was a problem hiding this comment.
@nedtwigg
spotless:apply for maven does not show lint errors ? for gradle it does.
There was a problem hiding this comment.
aha! you are correct! i will try to fix that problem this week...
There was a problem hiding this comment.
is it resolved so we can continue, or is the issue bigger than expected?
|
|
||
| public class MavenIntegrationHarness extends ResourceHarness { | ||
|
|
||
| protected static final String PATH = "src/main/java/test.java"; |
|
#2455 |
|
please let fix this first and have this as second version. Just fail the build with an bread error like done in open search. The detailed line number can follow afterwards not to block this issue. |
ReplaceRegexStep to function as a Linter, use that to improve RemoveWildcardImports
Thank you @Pankraz76. please feel free to use these changes
Original PR: #2557