Replies: 1 comment
-
Hello, this is possible by defining a new header definition and adding a blank line after the last line. will move to discussion. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Describe the feature
Thanks for the awesome plugin, first off. It is really useful for what I am working with!
I run a few projects that use this plugin to enforce license headers in Java sources amongst other things. I also make use of Checkstyle in these projects to enforce the Google Java code style in my work.
I've encountered a bit of an annoyance where by the rule set for Checkstyle expects a space between any license header and the package declaration for the file. Unfortunately, I cannot seem to find a way for the license plugin to respect whitespace at the end of the license.txt file that I am using. This becomes a little annoying to manage as well since EditorConfig enforcement likes to strip away trailing whitespace in files.
The feature that I'd like to see is something that allows us to say "put an empty line after the license header". If I do this manually, it is fine and the plugin respects it, but this makes the
license:format
goal somewhat painful to use as I have to manually change the file formatting after running it.Current output:
Desired output:
Any alternative you've considered ?
Beta Was this translation helpful? Give feedback.
All reactions