Code with inline comment disappear after apply licenseheaders
See original GitHub issueI 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.
$ licenseheaders -v -v -d target -t header.tmpl -b
licenseheaders_0.8.5 INFO: Using file //header.tmpl
licenseheaders_0.8.5 INFO: Processing file target/foo.py as python
licenseheaders_0.8.5 INFO: Backing up file target/foo.py to target/foo.py.bak
foo.py.bak (original)
#
# Copyright (c) 2020 Foo Inc. All rights reserved.
#
from XXX import YYY # Import package
foo.py (after)
#
# Copyright (c) 2020 Foo Inc. All rights reserved.
#
Issue Analytics
- State:
- Created 3 years ago
- Reactions:3
- Comments:9 (5 by maintainers)
Top Results From Across the Web
Inline comments disappear when the line they're on is modified
When making changes in the editor based on an inline comment, the inline comment disappears as soon as the line it's on is...
Read more >Markdown Cheatsheet - CFEngine 3.17 Documentation
If you want to include a code block within a list, put two tabs (8 spaces) in front of ... You can use...
Read more >Tool for adding license headers to source files? - Stack Overflow
It allows you to add a headerfile to all files in a directory, ... You can use this last argument to check if...
Read more >license-maven-plugin – license:check - Mycila
You can use in your header file some properties like ${year}, ... Maven license plugin uses concurrency to check license headers.
Read more >Correct warnings about missing or incorrect SPDX license ...
Correct existing SPDX license header in the files ... and > drivers/pci/controller/pcie-rockchip.h to use > correct comment style as per the ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I noticed this bug too. Is it easy to fix?
That looks like a terrible terrbile bug, thanks for reporting.