These are chat archives for sbt/sbt-header

4th
May 2015
Jason Zaugg
@retronym
May 04 2015 06:38
@hseeberger What is your take on the problem of maintaining per-file year ranges in copyright headers? For example, in https://github.com/scala/scala/blob/v2.11.6/src/compiler/scala/tools/nsc/typechecker/Implicits.scala#L1-L4, I would like to insert the updated header with the range 2005-2015.
Heiko Seeberger
@hseeberger
May 04 2015 06:52
I haven't spent any thoughts on this use case so far. Probably because this is something I haven't needed before. Do you think this is really necessary?
Jason Zaugg
@retronym
May 04 2015 08:02
Opinion varies, but some people claim keeping the starting year is more important than updating the ending year: http://stackoverflow.com/questions/3487007/when-to-update-the-year-in-open-source-copyright-notice
Both Akka and Scala note the start year of the individual source files in addition to the “Current” year.
Jason Zaugg
@retronym
May 04 2015 08:08
I’d propose that we parse the existing headers to extract the date range, and merge this with the date in the new header.
Heiko Seeberger
@hseeberger
May 04 2015 08:16
Sounds like a plan. Please create an issue. And a PR would be very welcome.
Jason Zaugg
@retronym
May 04 2015 12:43
I’ve created sbt/sbt-header#23 and spiked out a regex based parser.
I will clean it up and try it out in scala/scala in the next week or two.
Heiko Seeberger
@hseeberger
May 04 2015 13:45
Nice!
Let me know how it's going.
Thanks for the contribution!!