12d4d9a4dSopenharmony_ci<?xml version="1.0" encoding="UTF-8"?> 22d4d9a4dSopenharmony_ci<!-- Copyright (c) 2022 Huawei Device Co., Ltd. 32d4d9a4dSopenharmony_ci 42d4d9a4dSopenharmony_ci Licensed under the Apache License, Version 2.0 (the "License"); 52d4d9a4dSopenharmony_ci you may not use this file except in compliance with the License. 62d4d9a4dSopenharmony_ci You may obtain a copy of the License at 72d4d9a4dSopenharmony_ci 82d4d9a4dSopenharmony_ci http://www.apache.org/licenses/LICENSE-2.0 92d4d9a4dSopenharmony_ci 102d4d9a4dSopenharmony_ci Unless required by applicable law or agreed to in writing, software 112d4d9a4dSopenharmony_ci distributed under the License is distributed on an "AS IS" BASIS, 122d4d9a4dSopenharmony_ci WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 132d4d9a4dSopenharmony_ci See the License for the specific language governing permissions and 142d4d9a4dSopenharmony_ci limitations under the License. 152d4d9a4dSopenharmony_ci 162d4d9a4dSopenharmony_ci Notes: 172d4d9a4dSopenharmony_ci This is project config file for OpenHarmony OSS Audit Tool, if you have any questions or concerns, please email chenyaxun. 182d4d9a4dSopenharmony_ci--> 192d4d9a4dSopenharmony_ci<!-- OAT(OSS Audit Tool) configuration guide: 202d4d9a4dSopenharmony_cibasedir: Root dir, the basedir + project path is the real source file location. 212d4d9a4dSopenharmony_cilicensefile: 222d4d9a4dSopenharmony_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. 232d4d9a4dSopenharmony_ci 242d4d9a4dSopenharmony_citasklist(only for batch mode): 252d4d9a4dSopenharmony_ci1. task: Define oat check thread, each task will start a new thread. 262d4d9a4dSopenharmony_ci2. task name: Only an name, no practical effect. 272d4d9a4dSopenharmony_ci3. task policy: Default policy for projects under this task, this field is required and the specified policy must defined in policylist. 282d4d9a4dSopenharmony_ci4. task filter: Default filefilter for projects under this task, this field is required and the specified filefilter must defined in filefilterlist. 292d4d9a4dSopenharmony_ci5. task project: Projects to be checked, the path field define the source root dir of the project. 302d4d9a4dSopenharmony_ci 312d4d9a4dSopenharmony_ci 322d4d9a4dSopenharmony_cipolicyList: 332d4d9a4dSopenharmony_ci1. policy: All policyitems will be merged to default OAT.xml rules, the name of policy doesn't affect OAT check process. 342d4d9a4dSopenharmony_ci2. policyitem: The fields type, name, path, desc is required, and the fields rule, group, filefilter is optional,the default value is: 352d4d9a4dSopenharmony_ci<policyitem type="" name="" path="" desc="" rule="may" group="defaultGroup" filefilter="defaultPolicyFilter"/> 362d4d9a4dSopenharmony_ci3. policyitem type: 372d4d9a4dSopenharmony_ci "compatibility" is used to check license compatibility in the specified path; 382d4d9a4dSopenharmony_ci "license" is used to check source license header in the specified path; 392d4d9a4dSopenharmony_ci "copyright" is used to check source copyright header in the specified path; 402d4d9a4dSopenharmony_ci "import" is used to check source dependency in the specified path, such as import ... ,include ... 412d4d9a4dSopenharmony_ci "filetype" is used to check file type in the specified path, supported file types: archive, binary 422d4d9a4dSopenharmony_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 432d4d9a4dSopenharmony_ci 442d4d9a4dSopenharmony_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. 452d4d9a4dSopenharmony_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. 462d4d9a4dSopenharmony_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. 472d4d9a4dSopenharmony_ci7. policyitem filefilter: Used to bind filefilter which define filter rules. 482d4d9a4dSopenharmony_ci8. filefilter: Filter rules, the type filename is used to filter file name, the type filepath is used to filter file path. 492d4d9a4dSopenharmony_ci 502d4d9a4dSopenharmony_ciNote:If the text contains special characters, please escape them according to the following rules: 512d4d9a4dSopenharmony_ci" == > 522d4d9a4dSopenharmony_ci& == > 532d4d9a4dSopenharmony_ci' == > 542d4d9a4dSopenharmony_ci< == > 552d4d9a4dSopenharmony_ci> == > 562d4d9a4dSopenharmony_ci--> 572d4d9a4dSopenharmony_ci<configuration> 582d4d9a4dSopenharmony_ci <oatconfig> 592d4d9a4dSopenharmony_ci <filefilterlist> 602d4d9a4dSopenharmony_ci <filefilter name="binaryFileTypePolicyFilter" desc="Filters for project binary file" > 612d4d9a4dSopenharmony_ci <filteritem type="filepath" name="figures/distributedinput_arch.png" desc="pictures for project readme document"/> 622d4d9a4dSopenharmony_ci </filefilter> 632d4d9a4dSopenharmony_ci </filefilterlist> 642d4d9a4dSopenharmony_ci </oatconfig> 652d4d9a4dSopenharmony_ci</configuration> 66