-
-
Notifications
You must be signed in to change notification settings - Fork 15
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
feat: Introduce hawkeye-maven-plugin
#84
Conversation
hawkeye-maven-plugin
hawkeye-maven-plugin
Thanks for your participantion @spencercjh! This seems in a good direction. You may depend on the |
@tisonkun I have run |
@spencercjh You're right that I don't add an |
@spencercjh You can merge #89 and rerun the command above. |
done |
Cool! You may try to add some tests or at least share some evidences tested locally so that we're sure it's a good starting point for Maven plugin support. |
done |
I will fix wrong tests ASAP. |
@spencercjh We're not in a hurry so just take your time :D You can verify the tests locally first. |
hawkeye-maven-plugin/src/test/java/io/korandoru/hawkeye/RemoveMojoTest.java
Outdated
Show resolved
Hide resolved
I found something unexpected on Windows which leads the failure of my tests. Associated codes are here: https://github.com/korandoru/hawkeye/blob/main/hawkeye-core/src/main/java/io/korandoru/hawkeye/core/header/Header.java#L110-L116 All But there are still I think it's a bug because of missing integration tests on Windows :D. Maybe we need another bug issue? I tried to fix it on this commit and make tests pass on my Windows PC. If you mind it I can raise another PR to fix it. |
Let me think of it.. The expected header should be generated from the content or file you provided instead of the tested files. So I may suggest that you force use |
Do you mean to force the line separator of file |
Now I found that on Windows if I don't update |
After a closer look I noticed that we use |
May you share the console output or screenshot? I'm not sure what's the issue here. |
It runs on b7cb7fd, the previous commit.
I just want to tell you the bug. I think there is no other issues besides of the |
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.
Thank you!
It's a bit late now so I may not be quite clear.
Pending to merge tomorrow morning.
Merging... I'll prepare a release for delivering this plugin. Maybe you can try to write a few docs for the Maven plugin usage. Either in Usage section under README.md or in the hawkeye-maven-plugin folder should be fine. |
Released as 3.3.0. We may add a skip option to these Mojos so that users can opt-out the plugin execution. |
RESOLVE #21