google / addlicense

A program which ensures source code files have copyright license headers by scanning directory patterns recursively

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Apply license update

marcelosousa opened this issue · comments

Unless I'm missing something in the documentation, there's no way to update the license and apply this change in the relevant files. This is particularly important when the year span changes and an update mechanism would be useful.

I have proposed solution for that in #60

@marcelosousa, what do you think of my comment in #60 about leaving the current year off entirely, as some have done? Would that be an option for you?

@willnorris that's unfortunately not an option for us. However, I think the year change doesn't justify a feature as it can easily be done with a simple bash command in our case. There are other use cases that might be more relevant - I've seen cases in licenses with headquarters address that changes after a while. That's probably a much harder change to do. Perhaps the best option would be to simple have an option that removes a particular license so that you can update it as you want.