Update boilerplate check to allow new go:build syntax
This commit is contained in:
parent
8f003dcb70
commit
37d2bd38cc
|
|
@ -215,7 +215,8 @@ def get_regexs():
|
|||
# company holder names can be anything
|
||||
regexs["date"] = re.compile(get_dates())
|
||||
# strip // +build \n\n build constraints
|
||||
regexs["go_build_constraints"] = re.compile(r"^(// \+build.*\n)+\n", re.MULTILINE)
|
||||
regexs["go_build_constraints"] = re.compile(
|
||||
r"^(//(go:build| \+build).*\n)+\n", re.MULTILINE)
|
||||
# strip #!.* from shell scripts
|
||||
regexs["shebang"] = re.compile(r"^(#!.*\n)\n*", re.MULTILINE)
|
||||
# Search for generated files
|
||||
|
|
|
|||
Loading…
Reference in New Issue