File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
tests/integration_tests/style Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change 2323)
2424ALIBABA_COPYRIGHT = "Copyright (C) 2019 Alibaba Cloud Computing. All rights reserved."
2525ALIBABA_LICENSE = "SPDX-License-Identifier: Apache-2.0 OR BSD-3-Clause"
26+ ORACLE_COPYRIGHT = "Copyright © 2020, Oracle and/or its affiliates."
27+ ORACLE_LICENSE = "SPDX-License-Identifier: Apache-2.0"
2628
2729EXCLUDE = ["build" , ".kernel" , ".git" ]
2830
@@ -77,11 +79,16 @@ def _validate_license(filename):
7779 ALIBABA_COPYRIGHT in copyright_info
7880 and _look_for_license (file , ALIBABA_LICENSE )
7981 )
82+
83+ has_oracle_copyright = ORACLE_COPYRIGHT in copyright_info and _look_for_license (
84+ file , ORACLE_LICENSE
85+ )
8086 return (
8187 has_amazon_copyright
8288 or has_chromium_copyright
8389 or has_tuntap_copyright
8490 or has_alibaba_copyright
91+ or has_oracle_copyright
8592 )
8693 return True
8794
You can’t perform that action at this time.
0 commit comments