- Notifications
You must be signed in to change notification settings - Fork 486
allow ReplaceRegexStep
to function as a Linter, use that to improve RemoveWildcardImports
#2571
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nedtwigg
spotless:apply for maven does not show lint errors ? for gradle it does.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
aha! you are correct! i will try to fix that problem this week...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
undo by inline. Thanks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks
#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