1275793eaSopenharmony_ci<?xml version="1.0" encoding="UTF-8"?> 2275793eaSopenharmony_ci<!-- Copyright (c) 2021 Huawei Device Co., Ltd. 3275793eaSopenharmony_ci 4275793eaSopenharmony_ci Licensed under the Apache License, Version 2.0 (the "License"); 5275793eaSopenharmony_ci you may not use this file except in compliance with the License. 6275793eaSopenharmony_ci You may obtain a copy of the License at 7275793eaSopenharmony_ci 8275793eaSopenharmony_ci http://www.apache.org/licenses/LICENSE-2.0 9275793eaSopenharmony_ci 10275793eaSopenharmony_ci Unless required by applicable law or agreed to in writing, software 11275793eaSopenharmony_ci distributed under the License is distributed on an "AS IS" BASIS, 12275793eaSopenharmony_ci WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13275793eaSopenharmony_ci See the License for the specific language governing permissions and 14275793eaSopenharmony_ci limitations under the License. 15275793eaSopenharmony_ci 16275793eaSopenharmony_ci Notes: 17275793eaSopenharmony_ci This is project config file for OpenHarmony OSS Audit Tool, if you have any questions or concerns, please email chenyaxun. 18275793eaSopenharmony_ci--> 19275793eaSopenharmony_ci<!-- OAT(OSS Audit Tool) configuration guide: 20275793eaSopenharmony_cibasedir: Root dir, the basedir + project path is the real source file location. 21275793eaSopenharmony_cilicensefile: 22275793eaSopenharmony_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. 23275793eaSopenharmony_ci 24275793eaSopenharmony_citasklist(only for batch mode): 25275793eaSopenharmony_ci1. task: Define oat check thread, each task will start a new thread. 26275793eaSopenharmony_ci2. task name: Only an name, no practical effect. 27275793eaSopenharmony_ci3. task policy: Default policy for projects under this task, this field is required and the specified policy must defined in policylist. 28275793eaSopenharmony_ci4. task filter: Default filefilter for projects under this task, this field is required and the specified filefilter must defined in filefilterlist. 29275793eaSopenharmony_ci5. task project: Projects to be checked, the path field define the source root dir of the project. 30275793eaSopenharmony_ci 31275793eaSopenharmony_ci 32275793eaSopenharmony_cipolicyList: 33275793eaSopenharmony_ci1. policy: All policyitems will be merged to default OAT.xml rules, the name of policy doesn't affect OAT check process. 34275793eaSopenharmony_ci2. policyitem: The fields type, name, path, desc is required, and the fields rule, group, filefilter is optional,the default value is: 35275793eaSopenharmony_ci<policyitem type="" name="" path="" desc="" rule="may" group="defaultGroup" filefilter="defaultPolicyFilter"/> 36275793eaSopenharmony_ci3. policyitem type: 37275793eaSopenharmony_ci "compatibility" is used to check license compatibility in the specified path; 38275793eaSopenharmony_ci "license" is used to check source license header in the specified path; 39275793eaSopenharmony_ci "copyright" is used to check source copyright header in the specified path; 40275793eaSopenharmony_ci "import" is used to check source dependency in the specified path, such as import ... ,include ... 41275793eaSopenharmony_ci "filetype" is used to check file type in the specified path, supported file types: archive, binary 42275793eaSopenharmony_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 43275793eaSopenharmony_ci 44275793eaSopenharmony_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. 45275793eaSopenharmony_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. 46275793eaSopenharmony_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. 47275793eaSopenharmony_ci7. policyitem filefilter: Used to bind filefilter which define filter rules. 48275793eaSopenharmony_ci8. filefilter: Filter rules, the type filename is used to filter file name, the type filepath is used to filter file path. 49275793eaSopenharmony_ci 50275793eaSopenharmony_ciNote:If the text contains special characters, please escape them according to the following rules: 51275793eaSopenharmony_ci" == > 52275793eaSopenharmony_ci& == > 53275793eaSopenharmony_ci' == > 54275793eaSopenharmony_ci< == > 55275793eaSopenharmony_ci> == > 56275793eaSopenharmony_ci--> 57275793eaSopenharmony_ci<configuration> 58275793eaSopenharmony_ci <oatconfig> 59275793eaSopenharmony_ci <licensefile>LICENSE</licensefile> 60275793eaSopenharmony_ci <policylist> 61275793eaSopenharmony_ci <policy name="projectPolicy" desc=""> 62275793eaSopenharmony_ci <policyitem type="compatibility" name="zlib-acknowledgement" path=".*" desc="兼容license"/> 63275793eaSopenharmony_ci </policy> 64275793eaSopenharmony_ci </policylist> 65275793eaSopenharmony_ci <licensematcherlist> 66275793eaSopenharmony_ci <licensematcher name="zlib-acknowledgement" desc="If the scanning result is InvalidLicense, you can define matching rules here. Note that quotation marks must be escaped."> 67275793eaSopenharmony_ci <licensetext name=" 68275793eaSopenharmony_ci Permission is granted to anyone to use this software for any purpose 69275793eaSopenharmony_ci " desc=""/> 70275793eaSopenharmony_ci <licensetext name=" 71275793eaSopenharmony_ci For conditions of distribution and use, see copyright notice in zlib.h 72275793eaSopenharmony_ci " desc=""/> 73275793eaSopenharmony_ci <licensetext name=" 74275793eaSopenharmony_ci For more info read MiniZip_info.txt 75275793eaSopenharmony_ci " desc=""/> 76275793eaSopenharmony_ci <licensetext name=" 77275793eaSopenharmony_ci This code is a modified version of crypting code in Infozip distribution 78275793eaSopenharmony_ci " desc=""/> 79275793eaSopenharmony_ci </licensematcher> 80275793eaSopenharmony_ci </licensematcherlist> 81275793eaSopenharmony_ci <filefilterlist> 82275793eaSopenharmony_ci <filefilter name="defaultFilter" desc="Files not to check"> 83275793eaSopenharmony_ci <filteritem type="filepath" name="contrib/ada " desc="not used in ohos "/> 84275793eaSopenharmony_ci <filteritem type="filepath" name="contrib/pascal " desc="not used in ohos "/> 85275793eaSopenharmony_ci <filteritem type="filepath" name="contrib/puff " desc="not used in ohos "/> 86275793eaSopenharmony_ci <filteritem type="filepath" name="contrib/blast " desc="not used in ohos "/> 87275793eaSopenharmony_ci <filteritem type="filepath" name="contrib/gcc_gvmat64 " desc="not used in ohos "/> 88275793eaSopenharmony_ci <filteritem type="filepath" name="contrib/iostream2 " desc="not used in ohos "/> 89275793eaSopenharmony_ci <filteritem type="filepath" name="examples " desc="not used in ohos "/> 90275793eaSopenharmony_ci <filteritem type="filepath" name="contrib/dotzlib " desc="not used in ohos "/> 91275793eaSopenharmony_ci <filteritem type="filepath" name="FAQ " desc="not used in ohos "/> 92275793eaSopenharmony_ci <filteritem type="filename" name="*.pdf" desc="not used in ohos "/> 93275793eaSopenharmony_ci </filefilter> 94275793eaSopenharmony_ci </filefilterlist> 95275793eaSopenharmony_ci </oatconfig> 96275793eaSopenharmony_ci</configuration> 97