mirror of
https://github.com/octoleo/syncthing.git
synced 2024-11-09 14:50:56 +00:00
script, lib/discover: Fixup copyright checks
This commit is contained in:
parent
778ff9daa9
commit
dcb5026f33
@ -1,3 +1,9 @@
|
|||||||
|
// Copyright (C) 2016 The Syncthing Authors.
|
||||||
|
//
|
||||||
|
// This Source Code Form is subject to the terms of the Mozilla Public
|
||||||
|
// License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
||||||
|
// You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||||
|
|
||||||
package discover
|
package discover
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
@ -29,6 +29,7 @@ var copyrightRegexps = []string{
|
|||||||
`Copyright`,
|
`Copyright`,
|
||||||
`package auto`,
|
`package auto`,
|
||||||
`automatically generated by genxdr`,
|
`automatically generated by genxdr`,
|
||||||
|
`generated by protoc`,
|
||||||
}
|
}
|
||||||
|
|
||||||
var copyrightRe = regexp.MustCompile(strings.Join(copyrightRegexps, "|"))
|
var copyrightRe = regexp.MustCompile(strings.Join(copyrightRegexps, "|"))
|
||||||
|
Loading…
Reference in New Issue
Block a user