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

Customize License check string

skumar6 opened this issue · comments

License could have different formats. For Instance, instead of string "copyright" some licenses just has "(c)". As of now this plugin just checks for string "copyright".

return bytes.Contains(bytes.ToLower(b[:n]), []byte("copyright")) ||

it would be nice to have customize checks.