Don't be too clever with the copyright year (#26169)
This commit is contained in:
parent
1cae9b0d44
commit
6cca1a0ee3
1 changed files with 3 additions and 1 deletions
|
|
@ -47,7 +47,9 @@ trait CopyrightHeader extends AutoPlugin {
|
|||
}
|
||||
)
|
||||
|
||||
val CurrentYear = java.time.Year.now.getValue.toString
|
||||
// We hard-code this so PR's created in year X will not suddenly fail in X+1.
|
||||
// Of course we should remember to update it early in the year.
|
||||
val CurrentYear = "2019"
|
||||
val CopyrightPattern = "Copyright \\([Cc]\\) (\\d{4}([-–]\\d{4})?) (Lightbend|Typesafe) Inc. <.*>".r
|
||||
val CopyrightHeaderPattern = s"(?s).*${CopyrightPattern}.*".r
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue