mirror of https://github.com/google/oss-fuzz.git
[infra] Presubmit: remove license check for all .yaml files. (#3235)
This commit is contained in:
parent
d2330b29a6
commit
b5abd91f20
|
@ -199,9 +199,8 @@ _CHECK_LICENSE_EXTENSIONS = [
|
||||||
'.proto',
|
'.proto',
|
||||||
'.py',
|
'.py',
|
||||||
'.sh',
|
'.sh',
|
||||||
'.yaml',
|
|
||||||
]
|
]
|
||||||
_CHECK_LICENSE_EXCLUSIONS = ['project.yaml']
|
|
||||||
_LICENSE_STRING = 'http://www.apache.org/licenses/LICENSE-2.0'
|
_LICENSE_STRING = 'http://www.apache.org/licenses/LICENSE-2.0'
|
||||||
|
|
||||||
|
|
||||||
|
@ -213,9 +212,6 @@ def check_license(paths):
|
||||||
success = True
|
success = True
|
||||||
for path in paths:
|
for path in paths:
|
||||||
filename = os.path.basename(path)
|
filename = os.path.basename(path)
|
||||||
if filename in _CHECK_LICENSE_EXCLUSIONS:
|
|
||||||
continue
|
|
||||||
|
|
||||||
extension = os.path.splitext(path)[1]
|
extension = os.path.splitext(path)[1]
|
||||||
if (filename not in _CHECK_LICENSE_FILENAMES and
|
if (filename not in _CHECK_LICENSE_FILENAMES and
|
||||||
extension not in _CHECK_LICENSE_EXTENSIONS):
|
extension not in _CHECK_LICENSE_EXTENSIONS):
|
||||||
|
|
Loading…
Reference in New Issue