-
Notifications
You must be signed in to change notification settings - Fork 82
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
Code with inline comment disappear after apply licenseheaders #38
Comments
That looks like a terrible terrbile bug, thanks for reporting. |
I noticed this bug too. Is it easy to fix? |
@jdumas , Hello. I found solution that looks like working. Line 85 in licenseheaders.py. Replace: Description: |
Probably wouldn't work if the line just below the header is a comment, but not part of the header itself. |
@jdumas, its working for this case:
Import will not be rewritten. |
How about this one: #
# Copyright (c) 2020 Foo Inc. All rights reserved.
#
# Import package
from XXX import YYY |
@Igor1306 Thank you. Your solution solved my issue. Anyway, I try with this case but the
I have this modification.
Could you tell me any other modification? |
@oatawa1, you are welcome. I will try to investigate this issue a little bit later, will inform about results. |
@oatawa1 hello, sorry for long delay in response, I didn't come up with solution for now. Logic of licenseheader should be rewrite a little, for covering your case. |
I installed
licenseheaders
via pip and get licenseheaders_0.8.5.I applied
licenseheaders
on my code and the line with a comment symbol (#), which is continue from header block, is disappeared.Here is my command and log.
foo.py.bak (original)
foo.py (after)
The text was updated successfully, but these errors were encountered: