You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
I could wrap this in my own script, but that feels a bit like a hacky workaround that I'd rather avoid if possible.
I could alter the Checkstyle rules, but ideally I don't think I should need to do this as I'd like the license output to match my required code style rather than the code style satisfying the output of the license plugin.
The text was updated successfully, but these errors were encountered:
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 ?
The text was updated successfully, but these errors were encountered: