1b8a72a62Sopenharmony_ci<?xml version="1.0" encoding="UTF-8"?> 2b8a72a62Sopenharmony_ci<!-- Copyright (c) 2021-2023 Huawei Device Co., Ltd. 3b8a72a62Sopenharmony_ci 4b8a72a62Sopenharmony_ci Licensed under the Apache License, Version 2.0 (the "License"); 5b8a72a62Sopenharmony_ci you may not use this file except in compliance with the License. 6b8a72a62Sopenharmony_ci You may obtain a copy of the License at 7b8a72a62Sopenharmony_ci 8b8a72a62Sopenharmony_ci http://www.apache.org/licenses/LICENSE-2.0 9b8a72a62Sopenharmony_ci 10b8a72a62Sopenharmony_ci Unless required by applicable law or agreed to in writing, software 11b8a72a62Sopenharmony_ci distributed under the License is distributed on an "AS IS" BASIS, 12b8a72a62Sopenharmony_ci WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13b8a72a62Sopenharmony_ci See the License for the specific language governing permissions and 14b8a72a62Sopenharmony_ci limitations under the License. 15b8a72a62Sopenharmony_ci 16b8a72a62Sopenharmony_ci Notes: 17b8a72a62Sopenharmony_ci This is project config file for OpenHarmony OSS Audit Tool, if you have any questions or concerns, please email chenyaxun@huawei.com. 18b8a72a62Sopenharmony_ci--> 19b8a72a62Sopenharmony_ci<!-- OAT(OSS Audit Tool) configuration guide: 20b8a72a62Sopenharmony_cibasedir: Root dir, the basedir + project path is the real source file location. 21b8a72a62Sopenharmony_cilicensefile: 22b8a72a62Sopenharmony_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. 23b8a72a62Sopenharmony_ci 24b8a72a62Sopenharmony_citasklist(only for batch mode): 25b8a72a62Sopenharmony_ci1. task: Define oat check thread, each task will start a new thread. 26b8a72a62Sopenharmony_ci2. task name: Only an name, no practical effect. 27b8a72a62Sopenharmony_ci3. task policy: Default policy for projects under this task, this field is required and the specified policy must defined in policylist. 28b8a72a62Sopenharmony_ci4. task filter: Default filefilter for projects under this task, this field is required and the specified filefilter must defined in filefilterlist. 29b8a72a62Sopenharmony_ci5. task project: Projects to be checked, the path field define the source root dir of the project. 30b8a72a62Sopenharmony_ci 31b8a72a62Sopenharmony_ci 32b8a72a62Sopenharmony_cipolicyList: 33b8a72a62Sopenharmony_ci1. policy: All policyitems will be merged to default OAT.xml rules, the name of policy doesn't affect OAT check process. 34b8a72a62Sopenharmony_ci2. policyitem: The fields type, name, path, desc is required, and the fields rule, group, filefilter is optional,the default value is: 35b8a72a62Sopenharmony_ci<policyitem type="" name="" path="" desc="" rule="may" group="defaultGroup" filefilter="defaultPolicyFilter"/> 36b8a72a62Sopenharmony_ci3. policyitem type: 37b8a72a62Sopenharmony_ci "compatibility" is used to check license compatibility in the specified path; 38b8a72a62Sopenharmony_ci "license" is used to check source license header in the specified path; 39b8a72a62Sopenharmony_ci "copyright" is used to check source copyright header in the specified path; 40b8a72a62Sopenharmony_ci "import" is used to check source dependency in the specified path, such as import ... ,include ... 41b8a72a62Sopenharmony_ci "filetype" is used to check file type in the specified path, supported file types: archive, binary 42b8a72a62Sopenharmony_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 43b8a72a62Sopenharmony_ci 44b8a72a62Sopenharmony_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. 45b8a72a62Sopenharmony_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 exclude while process this policyitem. 46b8a72a62Sopenharmony_ci6. policyitem rule and group: These two fields are used together to merge policy results. "may" policyitems in the same group means any one in this group passed, the result will be passed. 47b8a72a62Sopenharmony_ci7. policyitem filefilter: Used to bind filefilter which define filter rules. 48b8a72a62Sopenharmony_ci8. filefilter: Filter rules, the type filename is used to filter file name, the type filepath is used to filter file path. 49b8a72a62Sopenharmony_ci 50b8a72a62Sopenharmony_ciNote:If the text contains special characters, please escape them according to the following rules: 51b8a72a62Sopenharmony_ci" == > 52b8a72a62Sopenharmony_ci& == > 53b8a72a62Sopenharmony_ci' == > 54b8a72a62Sopenharmony_ci< == > 55b8a72a62Sopenharmony_ci> == > 56b8a72a62Sopenharmony_ci--> 57b8a72a62Sopenharmony_ci<configuration> 58b8a72a62Sopenharmony_ci <oatconfig> 59b8a72a62Sopenharmony_ci <filefilterlist> 60b8a72a62Sopenharmony_ci <filefilter name="binaryFileTypePolicyFilter" desc="Filters for binary file policies" > 61b8a72a62Sopenharmony_ci <filteritem type="filepath" name="img/打包工具架构图.webp" desc="the webp file for packing tool, the file is self-developed"/> 62b8a72a62Sopenharmony_ci <filteritem type="filepath" name="jar/app_packing_tool.jar" desc="the jar file for packing pre-installed hap, the file is self-developed"/> 63b8a72a62Sopenharmony_ci <filteritem type="filepath" name="jar/app_unpacking_tool.jar" desc="the jar file for unpacking hap, the file is self-developed"/> 64b8a72a62Sopenharmony_ci <filteritem type="filepath" name="jar/app_check_tool.jar" desc="the jar file for check hap, the file is self-developed"/> 65b8a72a62Sopenharmony_ci <filteritem type="filepath" name="jar/haptobin_tool.jar" desc="the jar file for hap to bin hap, the file is self-developed"/> 66b8a72a62Sopenharmony_ci <filteritem type="filepath" name="jar/fastjson-1.2.83.jar" desc="the jar file for fast json, the file is self-developed"/> 67b8a72a62Sopenharmony_ci <filteritem type="filepath" name="adapter/scanner/image/construct.png" desc="the png file for packing tool, the file is self-developed"/> 68b8a72a62Sopenharmony_ci <filteritem type="filepath" name="packing_tool/frameworks/test/unittest/app_packager_test/appPackagerHapTest/entry/src/main/resources/base/media/app_icon.png" desc="the png file for packing tool, the file is self-developed"/> 69b8a72a62Sopenharmony_ci <filteritem type="filepath" name="packing_tool/frameworks/test/unittest/app_packager_test/appPackagerHapTest/entry/src/main/resources/base/media/icon.png" desc="the png file for packing tool, the file is self-developed"/> 70b8a72a62Sopenharmony_ci <filteritem type="filepath" name="packing_tool/frameworks/test/unittest/app_packager_test/appPackagerHapTest/AppScope/resources/base/media/app_icon.png" desc="the png file for packing tool, the file is self-developed"/> 71b8a72a62Sopenharmony_ci <filteritem type="filepath" name="packing_tool/frameworks/test/unittest/app_packager_test/appPackagerHspTest/entry/src/main/resources/base/media/icon.png" desc="the png file for packing tool, the file is self-developed"/> 72b8a72a62Sopenharmony_ci <filteritem type="filepath" name="packing_tool/frameworks/test/unittest/app_packager_test/appPackagerHspTest/AppScope/resources/base/media/app_icon.png" desc="the png file for packing tool, the file is self-developed"/> 73b8a72a62Sopenharmony_ci <filteritem type="filepath" name="packing_tool/frameworks/test/unittest/app_packager_test/appPackagerHspTest/entry/src/main/resources/base/media/app_icon.png" desc="the jpeg file for packing tool, the file is self-developed"/> 74b8a72a62Sopenharmony_ci <filteritem type="filepath" name="packing_tool/frameworks/test/unittest/multiapp_packager_test/multiappPackagerHapTest/entry/src/main/resources/base/media/icon.png" desc="the png file for packing tool, the file is self-developed"/> 75b8a72a62Sopenharmony_ci <filteritem type="filepath" name="packing_tool/frameworks/test/unittest/multiapp_packager_test/multiappPackagerHapTest/entry/src/main/resources/base/media/app_icon.png" desc="the png file for packing tool, the file is self-developed"/> 76b8a72a62Sopenharmony_ci <filteritem type="filepath" name="packing_tool/frameworks/test/unittest/multiapp_packager_test/multiappPackagerHapTest/entry/src/main/resources/base/media/icon.png" desc="the png file for packing tool, the file is self-developed"/> 77b8a72a62Sopenharmony_ci <filteritem type="filepath" name="packing_tool/frameworks/test/unittest/multiapp_packager_test/multiappPackagerHapTest/AppScope/resources/base/media/app_icon.png" desc="the png file for packing tool, the file is self-developed"/> 78b8a72a62Sopenharmony_ci <filteritem type="filepath" name="packing_tool/frameworks/test/unittest/multiapp_packager_test/multiappPackagerHspTest/entry/src/main/resources/base/media/icon.png" desc="the png file for packing tool, the file is self-developed"/> 79b8a72a62Sopenharmony_ci <filteritem type="filepath" name="packing_tool/frameworks/test/unittest/multiapp_packager_test/multiappPackagerHspTest/AppScope/resources/base/media/app_icon.png" desc="the png file for packing tool, the file is self-developed"/> 80b8a72a62Sopenharmony_ci <filteritem type="filepath" name="packing_tool/frameworks/test/unittest/multiapp_packager_test/multiappPackagerHspTest/entry/src/main/resources/base/media/app_icon.png" desc="the jpeg file for packing tool, the file is self-developed"/> 81b8a72a62Sopenharmony_ci <filteritem type="filepath" name="packing_tool/frameworks/test/unittest/hqf_packager_test/hqf_packager_file/hqfFileExample1/resources/base/media/app_icon.png" desc="the png file for packing tool, the file is self-developed"/> 82b8a72a62Sopenharmony_ci <filteritem type="filepath" name="packing_tool/frameworks/test/unittest/hqf_packager_test/hqf_packager_file/hqfFileExample1/resources/base/media/aa_icon.png" desc="the png file for packing tool, the file is self-developed"/> 83b8a72a62Sopenharmony_ci <filteritem type="filepath" name="packing_tool/frameworks/test/unittest/hqf_packager_test/hqf_packager_file/hqfFileExample2/resources/base/media/app_icon.png" desc="the png file for packing tool, the file is self-developed"/> 84b8a72a62Sopenharmony_ci <filteritem type="filepath" name="packing_tool/frameworks/test/unittest/hqf_packager_test/hqf_packager_file/hqfFileExample2/resources/base/media/aa_icon.png" desc="the png file for packing tool, the file is self-developed"/> 85b8a72a62Sopenharmony_ci <filteritem type="filepath" name="packing_tool/frameworks/test/unittest/hqf_packager_test/hqf_packager_file/hqfFileExample2/resources/base/media/icon.png" desc="the png file for packing tool, the file is self-developed"/> 86b8a72a62Sopenharmony_ci <filteritem type="filepath" name="packing_tool/frameworks/test/unittest/fast_app_packager_test/hspTestFile/library/src/main/resources/base/media/icon.png" desc="the png file for packing tool, the file is self-developed"/> 87b8a72a62Sopenharmony_ci <filteritem type="filepath" name="packing_tool/frameworks/test/unittest/fast_app_packager_test/hspTestFile/AppScope/resources/base/media/app_icon.png" desc="the png file for packing tool, the file is self-developed"/> 88b8a72a62Sopenharmony_ci <filteritem type="filepath" name="packing_tool/frameworks/test/unittest/fast_app_packager_test/hspTestFile/library/src/main/resources/base/media/app_icon.png" desc="the jpeg file for packing tool, the file is self-developed"/> 89b8a72a62Sopenharmony_ci </filefilter> 90b8a72a62Sopenharmony_ci </filefilterlist> 91b8a72a62Sopenharmony_ci </oatconfig> 92b8a72a62Sopenharmony_ci</configuration>