15f9996aaSopenharmony_ci<?xml version="1.0" encoding="UTF-8"?>
25f9996aaSopenharmony_ci<!-- Copyright (c) 2021 Huawei Device Co., Ltd.
35f9996aaSopenharmony_ci
45f9996aaSopenharmony_ci     Licensed under the Apache License, Version 2.0 (the "License");
55f9996aaSopenharmony_ci     you may not use this file except in compliance with the License.
65f9996aaSopenharmony_ci     You may obtain a copy of the License at
75f9996aaSopenharmony_ci
85f9996aaSopenharmony_ci          http://www.apache.org/licenses/LICENSE-2.0
95f9996aaSopenharmony_ci
105f9996aaSopenharmony_ci     Unless required by applicable law or agreed to in writing, software
115f9996aaSopenharmony_ci     distributed under the License is distributed on an "AS IS" BASIS,
125f9996aaSopenharmony_ci     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
135f9996aaSopenharmony_ci     See the License for the specific language governing permissions and
145f9996aaSopenharmony_ci     limitations under the License.
155f9996aaSopenharmony_ci	 
165f9996aaSopenharmony_ci	 Notes:
175f9996aaSopenharmony_ci	 This is project config file for OpenHarmony OSS Audit Tool, if you have any questions or concerns, please email chenyaxun. 	 
185f9996aaSopenharmony_ci--> 
195f9996aaSopenharmony_ci<!-- OAT(OSS Audit Tool) configuration guide:
205f9996aaSopenharmony_cibasedir: Root dir, the basedir + project path is the real source file location.
215f9996aaSopenharmony_cilicensefile: 
225f9996aaSopenharmony_ci1.If the project don't have "LICENSE" in root dir, please define all the license files in this project in , OAT will check license files according to this rule.
235f9996aaSopenharmony_ci
245f9996aaSopenharmony_citasklist(only for batch mode):
255f9996aaSopenharmony_ci1. task: Define oat check thread, each task will start a new thread.
265f9996aaSopenharmony_ci2. task name: Only a name, no practical effect.
275f9996aaSopenharmony_ci3. task policy: Default policy for projects under this task, this field is required and the specified policy must be defined in policylist.
285f9996aaSopenharmony_ci4. task filter: Default filefilter for projects under this task, this field is required and the specified filefilter must be defined in filefilterlist.
295f9996aaSopenharmony_ci5. task project: Projects to be checked, the path field define the source root dir of the project.
305f9996aaSopenharmony_ci
315f9996aaSopenharmony_ci
325f9996aaSopenharmony_cipolicyList:
335f9996aaSopenharmony_ci1. policy: All policyitems will be merged to default OAT.xml rules, the name of policy doesn't affect OAT check process.
345f9996aaSopenharmony_ci2. policyitem: The fields type, name, path, desc is required, and the fields rule, group, filefilter is optional,the default value is:
355f9996aaSopenharmony_ci<policyitem type="" name="" path="" desc="" rule="may" group="defaultGroup" filefilter="defaultPolicyFilter"/>
365f9996aaSopenharmony_ci3. policyitem type:	
375f9996aaSopenharmony_ci    "compatibility" is used to check license compatibility in the specified path; 
385f9996aaSopenharmony_ci    "license" is used to check source license header in the specified path;
395f9996aaSopenharmony_ci    "copyright" is used to check source copyright header in the specified path;
405f9996aaSopenharmony_ci    "import" is used to check source dependency in the specified path, such as import ... ,include ...
415f9996aaSopenharmony_ci    "filetype" is used to check file type in the specified path, supported file types: archive, binary
425f9996aaSopenharmony_ci    "filename" is used to check whether the specified file exists in the specified path(support projectroot in default OAT.xml), supported file names: LICENSE, README, README.OpenSource
435f9996aaSopenharmony_ci
445f9996aaSopenharmony_ci4. policyitem name: This field is used for define the license, copyright, "*" means match all, the "!" prefix means could not match this value. For example, "!GPL" means can not use GPL license. 
455f9996aaSopenharmony_ci5. policyitem path: This field is used for define the source file scope to apply this policyitem, the "!" prefix means exclude the files. For example, "!.*/lib/.*" means files in lib dir will be excluded while process this policyitem.
465f9996aaSopenharmony_ci6. policyitem rule and group: These two fields are used together to merge policy results. "may" policyitems in the same group means anyone in this group passed, the result will be passed.
475f9996aaSopenharmony_ci7. policyitem filefilter: Used to bind filefilter which define filter rules.
485f9996aaSopenharmony_ci8. filefilter: Filter rules, the type filename is used to filter file name, the type filepath is used to filter file path.
495f9996aaSopenharmony_ci
505f9996aaSopenharmony_ciNote:If the text contains special characters, please escape them according to the following rules:
515f9996aaSopenharmony_ci" == &gt;
525f9996aaSopenharmony_ci& == &gt;
535f9996aaSopenharmony_ci' == &gt;
545f9996aaSopenharmony_ci< == &gt;
555f9996aaSopenharmony_ci> == &gt;
565f9996aaSopenharmony_ci-->
575f9996aaSopenharmony_ci<configuration>
585f9996aaSopenharmony_ci    <oatconfig>
595f9996aaSopenharmony_ci		<policylist>
605f9996aaSopenharmony_ci			<policy name="projectPolicy" desc="">
615f9996aaSopenharmony_ci				<policyitem type="license" name="BSDStyleLicense" path=".*" desc="Some chromium build code is modified and used in the build repository, and the license and copyright information are retained."/>
625f9996aaSopenharmony_ci				<policyitem type="license" name="BSD-3-Clause" path=".*" desc="Some chromium build code is modified and used in the build repository, and the license and copyright information are retained."/>
635f9996aaSopenharmony_ci			</policy>
645f9996aaSopenharmony_ci		</policylist>
655f9996aaSopenharmony_ci		<filefilterlist>
665f9996aaSopenharmony_ci			<filefilter name="defaultFilter" desc="Files not to check">
675f9996aaSopenharmony_ci				<filteritem type="filepath" name="common/musl/ld-musl-riscv64.path" desc="configuration file, this format doesn't support adding license header"/>
685f9996aaSopenharmony_ci				<filteritem type="filepath" name="common/musl/ld-musl-aarch64.path" desc="configuration file, this format doesn't support adding license header"/>
695f9996aaSopenharmony_ci				<filteritem type="filepath" name="common/musl/ld-musl-arm.path" desc="configuration file, this format doesn't support adding license header"/>
705f9996aaSopenharmony_ci				<filteritem type="filepath" name="common/musl/ld-musl-riscv64-asan.path" desc="configuration file, this format doesn't support adding license header"/>
715f9996aaSopenharmony_ci				<filteritem type="filepath" name="common/musl/ld-musl-aarch64-asan.path" desc="configuration file, this format doesn't support adding license header"/>
725f9996aaSopenharmony_ci				<filteritem type="filepath" name="common/musl/ld-musl-arm-asan.path" desc="configuration file, this format doesn't support adding license header"/>
735f9996aaSopenharmony_ci				<filteritem type="filepath" name="common/asan/asan.options" desc="configuration file, this format doesn't support adding license header"/>
745f9996aaSopenharmony_ci				<filteritem type="filepath" name="common/asan/tsan.options" desc="configuration file, this format doesn't support adding license header"/>
755f9996aaSopenharmony_ci			</filefilter>
765f9996aaSopenharmony_ci			<filefilter name="copyrightPolicyFilter" desc="Filters for copyright header policies" >
775f9996aaSopenharmony_ci				<filteritem type="filepath" name="gn_helpers.py" desc="keep the chromium src copyright"/>
785f9996aaSopenharmony_ci				<filteritem type="filepath" name="print_python_deps.py" desc="keep the chromium src copyright"/>
795f9996aaSopenharmony_ci				<filteritem type="filepath" name="zip.py" desc="keep the chromium src copyright"/>
805f9996aaSopenharmony_ci				<filteritem type="filepath" name="config/BUILD.gn" desc="keep the chromium src copyright"/>
815f9996aaSopenharmony_ci				<filteritem type="filepath" name="config/BUILDCONFIG.gn" desc="keep the chromium src copyright"/>
825f9996aaSopenharmony_ci				<filteritem type="filepath" name="config/allocator.gni" desc="keep the chromium src copyright"/>
835f9996aaSopenharmony_ci				<filteritem type="filepath" name="config/arm.gni" desc="keep the chromium src copyright"/>
845f9996aaSopenharmony_ci				<filteritem type="filepath" name="config/deps_revisions.gni" desc="keep the chromium src copyright"/>
855f9996aaSopenharmony_ci				<filteritem type="filepath" name="config/features.gni" desc="keep the chromium src copyright"/>
865f9996aaSopenharmony_ci				<filteritem type="filepath" name="config/python.gni" desc="keep the chromium src copyright"/>
875f9996aaSopenharmony_ci				<filteritem type="filepath" name="config/sysroot.gni" desc="keep the chromium src copyright"/>
885f9996aaSopenharmony_ci				<filteritem type="filepath" name="config/v8_target_cpu.gni" desc="keep the chromium src copyright"/>
895f9996aaSopenharmony_ci				<filteritem type="filepath" name="config/zip.gni" desc="keep the chromium src copyright"/>
905f9996aaSopenharmony_ci				<filteritem type="filepath" name="config/ohos/BUILD.gn" desc="keep the chromium src copyright"/>
915f9996aaSopenharmony_ci				<filteritem type="filepath" name="config/ohos/abi.gni" desc="keep the chromium src copyright"/>
925f9996aaSopenharmony_ci				<filteritem type="filepath" name="config/ohos/config.gni" desc="keep the chromium src copyright"/>
935f9996aaSopenharmony_ci				<filteritem type="filepath" name="config/c.*/c.*.gni" desc="keep the chromium src copyright"/>
945f9996aaSopenharmony_ci				<filteritem type="filepath" name="config/clang/BUILD.gn" desc="keep the chromium src copyright"/>
955f9996aaSopenharmony_ci				<filteritem type="filepath" name="config/clang/clang.gni" desc="keep the chromium src copyright"/>
965f9996aaSopenharmony_ci				<filteritem type="filepath" name="config/compiler/BUILD.gn" desc="keep the chromium src copyright"/>
975f9996aaSopenharmony_ci				<filteritem type="filepath" name="config/compiler/compiler.gni" desc="keep the chromium src copyright"/>
985f9996aaSopenharmony_ci				<filteritem type="filepath" name="config/coverage/BUILD.gn" desc="keep the chromium src copyright"/>
995f9996aaSopenharmony_ci				<filteritem type="filepath" name="config/coverage/coverage.gni" desc="keep the chromium src copyright"/>
1005f9996aaSopenharmony_ci				<filteritem type="filepath" name="config/gcc/BUILD.gn" desc="keep the chromium src copyright"/>
1015f9996aaSopenharmony_ci				<filteritem type="filepath" name="config/linux/BUILD.gn" desc="keep the chromium src copyright"/>
1025f9996aaSopenharmony_ci				<filteritem type="filepath" name="config/linux/pkg-config.py" desc="keep the chromium src copyright"/>
1035f9996aaSopenharmony_ci				<filteritem type="filepath" name="config/linux/pkg_config.gni" desc="keep the chromium src copyright"/>
1045f9996aaSopenharmony_ci				<filteritem type="filepath" name="config/mac/BUILD.gn" desc="keep the chromium src copyright"/>
1055f9996aaSopenharmony_ci				<filteritem type="filepath" name="config/mac/mac_sdk.gni" desc="keep the chromium src copyright"/>
1065f9996aaSopenharmony_ci				<filteritem type="filepath" name="config/mac/mac_sdk_overrides.gni" desc="keep the chromium src copyright"/>
1075f9996aaSopenharmony_ci				<filteritem type="filepath" name="config/mac/sdk_info.py" desc="keep the chromium src copyright"/>
1085f9996aaSopenharmony_ci				<filteritem type="filepath" name="config/mac/symbols.gni" desc="keep the chromium src copyright"/>
1095f9996aaSopenharmony_ci				<filteritem type="filepath" name="config/mac/xcrun.py" desc="keep the chromium src copyright"/>
1105f9996aaSopenharmony_ci				<filteritem type="filepath" name="config/ohos/copy_ex.gni" desc="keep the chromium src copyright"/>
1115f9996aaSopenharmony_ci				<filteritem type="filepath" name="config/posix/BUILD.gn" desc="keep the chromium src copyright"/>
1125f9996aaSopenharmony_ci				<filteritem type="filepath" name="config/posix/sysroot_ld_path.py" desc="keep the chromium src copyright"/>
1135f9996aaSopenharmony_ci				<filteritem type="filepath" name="config/sanitizers/BUILD.gn" desc="keep the chromium src copyright"/>
1145f9996aaSopenharmony_ci				<filteritem type="filepath" name="config/sanitizers/sanitizers.gni" desc="keep the chromium src copyright"/>
1155f9996aaSopenharmony_ci				<filteritem type="filepath" name="scripts/copy_ex.py" desc="keep the chromium src copyright"/>
1165f9996aaSopenharmony_ci				<filteritem type="filepath" name="scripts/find.py" desc="keep the chromium src copyright"/>
1175f9996aaSopenharmony_ci				<filteritem type="filepath" name="scripts/util/build_utils.py" desc="keep the chromium src copyright"/>
1185f9996aaSopenharmony_ci				<filteritem type="filepath" name="scripts/util/md5_check.py" desc="keep the chromium src copyright"/>
1195f9996aaSopenharmony_ci				<filteritem type="filepath" name="misc/linux/sysroot_ld_path.sh" desc="keep the chromium src copyright"/>
1205f9996aaSopenharmony_ci				<filteritem type="filepath" name="misc/mac/check_return_value.py" desc="keep the chromium src copyright"/>
1215f9996aaSopenharmony_ci				<filteritem type="filepath" name="misc/mac/find_sdk.py" desc="keep the chromium src copyright"/>
1225f9996aaSopenharmony_ci				<filteritem type="filepath" name="misc/overrides/build.gni" desc="keep the chromium src copyright"/>
1235f9996aaSopenharmony_ci				<filteritem type="filepath" name="misc/overrides/gtest.gni" desc="keep the chromium src copyright"/>
1245f9996aaSopenharmony_ci				<filteritem type="filepath" name="misc/sanitizers/asan_suppressions.cc" desc="keep the chromium src copyright"/>
1255f9996aaSopenharmony_ci				<filteritem type="filepath" name="misc/sanitizers/lsan_suppressions.cc" desc="keep the chromium src copyright"/>
1265f9996aaSopenharmony_ci				<filteritem type="filepath" name="misc/sanitizers/sanitizer_options.cc" desc="keep the chromium src copyright"/>
1275f9996aaSopenharmony_ci				<filteritem type="filepath" name="misc/sanitizers/tsan_suppressions.cc" desc="keep the chromium src copyright"/>
1285f9996aaSopenharmony_ci				<filteritem type="filepath" name="scripts/dir_exists.py" desc="keep the chromium src copyright"/>
1295f9996aaSopenharmony_ci				<filteritem type="filepath" name="toolchain/BUILD.gn" desc="keep the chromium src copyright"/>
1305f9996aaSopenharmony_ci				<filteritem type="filepath" name="toolchain/cc_wrapper.gni" desc="keep the chromium src copyright"/>
1315f9996aaSopenharmony_ci				<filteritem type="filepath" name="toolchain/clang_static_analyzer.gni" desc="keep the chromium src copyright"/>
1325f9996aaSopenharmony_ci				<filteritem type="filepath" name="toolchain/clang_static_analyzer_wrapper.py" desc="keep the chromium src copyright"/>
1335f9996aaSopenharmony_ci				<filteritem type="filepath" name="toolchain/concurrent_links.gni" desc="keep the chromium src copyright"/>
1345f9996aaSopenharmony_ci				<filteritem type="filepath" name="toolchain/gcc_link_wrapper.py" desc="keep the chromium src copyright"/>
1355f9996aaSopenharmony_ci				<filteritem type="filepath" name="toolchain/gcc_solink_wrapper.py" desc="keep the chromium src copyright"/>
1365f9996aaSopenharmony_ci				<filteritem type="filepath" name="toolchain/gcc_toolchain.gni" desc="keep the chromium src copyright"/>
1375f9996aaSopenharmony_ci				<filteritem type="filepath" name="toolchain/get_concurrent_links.py" desc="keep the chromium src copyright"/>
1385f9996aaSopenharmony_ci				<filteritem type="filepath" name="toolchain/get_cpu_count.py" desc="keep the chromium src copyright"/>
1395f9996aaSopenharmony_ci				<filteritem type="filepath" name="toolchain/toolchain.gni" desc="keep the chromium src copyright"/>
1405f9996aaSopenharmony_ci				<filteritem type="filepath" name="toolchain/wrapper_utils.py" desc="keep the chromium src copyright"/>
1415f9996aaSopenharmony_ci				<filteritem type="filepath" name="toolchain/ohos/BUILD.gn" desc="keep the chromium src copyright"/>
1425f9996aaSopenharmony_ci				<filteritem type="filepath" name="toolchain/linux/BUILD.gn" desc="keep the chromium src copyright"/>
1435f9996aaSopenharmony_ci				<filteritem type="filepath" name="toolchain/mac/BUILD.gn" desc="keep the chromium src copyright"/>
1445f9996aaSopenharmony_ci				<filteritem type="filepath" name="toolchain/mac/filter_libtool.py" desc="keep the chromium src copyright"/>
1455f9996aaSopenharmony_ci				<filteritem type="filepath" name="toolchain/mac/get_tool_mtime.py" desc="keep the chromium src copyright"/>
1465f9996aaSopenharmony_ci				<filteritem type="filepath" name="toolchain/mac/linker_driver.py" desc="keep the chromium src copyright"/>
1475f9996aaSopenharmony_ci				<filteritem type="filepath" name="toolchain/ohos/BUILD.gn" desc="keep the chromium src copyright"/>
1485f9996aaSopenharmony_ci				<filteritem type="filepath" name="toolchain/ohos/ohos_toolchain.gni" desc="keep the chromium src copyright"/>
1495f9996aaSopenharmony_ci				<filteritem type="filepath" name="indep_configs/mapping/gni/third_party/musl/musl_config.gni" desc="keep the chromium src copyright"/>
1505f9996aaSopenharmony_ci			</filefilter>
1515f9996aaSopenharmony_ci			<filefilter name="binaryFileTypePolicyFilter" desc="Filters for binary file policies" >
1525f9996aaSopenharmony_ci                <filteritem type="filepath" name="docs/figures/.*.png" desc="Self-developed image"/>
1535f9996aaSopenharmony_ci            </filefilter>
1545f9996aaSopenharmony_ci		</filefilterlist>
1555f9996aaSopenharmony_ci	
1565f9996aaSopenharmony_ci    </oatconfig>
1575f9996aaSopenharmony_ci</configuration>
158