fixed boilerplate verification
This commit is contained in:
parent
e2b87c896d
commit
090529ecee
@ -138,7 +138,7 @@ def get_regexs():
|
|||||||
# Search for "YEAR" which exists in the boilerplate, but shouldn't in the real thing
|
# Search for "YEAR" which exists in the boilerplate, but shouldn't in the real thing
|
||||||
regexs["year"] = re.compile( 'YEAR' )
|
regexs["year"] = re.compile( 'YEAR' )
|
||||||
# dates can be 2014, 2015 or 2016, company holder names can be anything
|
# dates can be 2014, 2015 or 2016, company holder names can be anything
|
||||||
regexs["date"] = re.compile( '(2014|2015|2016)' )
|
regexs["date"] = re.compile( '(2014|2015|2016|2017|2018|2019|2020)' )
|
||||||
# strip // +build \n\n build constraints
|
# 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"^(// \+build.*\n)+\n", re.MULTILINE)
|
||||||
# strip #!.* from shell scripts
|
# strip #!.* from shell scripts
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// Copyright 2016 Google Inc. All Rights Reserved.
|
// Copyright 2017 Google Inc. All Rights Reserved.
|
||||||
//
|
//
|
||||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
// you may not use this file except in compliance with the License.
|
// you may not use this file except in compliance with the License.
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// Copyright 2016 Google Inc. All Rights Reserved.
|
// Copyright 2017 Google Inc. All Rights Reserved.
|
||||||
//
|
//
|
||||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
// you may not use this file except in compliance with the License.
|
// you may not use this file except in compliance with the License.
|
||||||
|
Loading…
Reference in New Issue
Block a user