Skip to content
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

Preserve copyright years #23

Open
retronym opened this issue May 4, 2015 · 7 comments
Open

Preserve copyright years #23

retronym opened this issue May 4, 2015 · 7 comments

Comments

@retronym
Copy link
Member

retronym commented May 4, 2015

Rather than just writing the new header into files, it would be better to "merge" the old and new headers, taking the current year and overall format from the configured header, and the copyright year ranges from the old.

@retronym
Copy link
Member Author

retronym commented May 4, 2015

WIP retronym#1

@hseeberger
Copy link
Member

I haven't looked into your code yet, but one feature I want to keep is overwriting existing headers in order to enforce a single header thought the whole project. Of course an option to allow for file specific dates is fine and maybe another one (not the default) to keep (the format of) existing headers. If you plan for the latter, too, please add another issue/PR, i.e. let's keep this focussed on optionally preserving the copyright year(s).

@retronym
Copy link
Member Author

retronym commented May 4, 2015

I'm all for consistent headers too. I think we can expose a new boolean setting that one can use to enable the date range merging.

@fommil
Copy link
Contributor

fommil commented Jan 12, 2016

@retronym did you ever get round to finishing this off? Sounds like something I'd be interested in too.

@FelAl
Copy link

FelAl commented May 31, 2016

I can finish it.

@dwijnand
Copy link
Member

note for people subscribed here that progress was made here by way of #142.

and sbt-header is now used by the akka and akka-http projects:

@mkurz
Copy link
Member

mkurz commented Oct 18, 2022

Probably related: #282

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants