132a6e48fSopenharmony_ci<?xml version="1.0" encoding="UTF-8"?> 232a6e48fSopenharmony_ci<!-- Copyright (c) 2021 Huawei Device Co., Ltd. 332a6e48fSopenharmony_ci 432a6e48fSopenharmony_ci Licensed under the Apache License, Version 2.0 (the "License"); 532a6e48fSopenharmony_ci you may not use this file except in compliance with the License. 632a6e48fSopenharmony_ci You may obtain a copy of the License at 732a6e48fSopenharmony_ci 832a6e48fSopenharmony_ci http://www.apache.org/licenses/LICENSE-2.0 932a6e48fSopenharmony_ci 1032a6e48fSopenharmony_ci Unless required by applicable law or agreed to in writing, software 1132a6e48fSopenharmony_ci distributed under the License is distributed on an "AS IS" BASIS, 1232a6e48fSopenharmony_ci WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1332a6e48fSopenharmony_ci See the License for the specific language governing permissions and 1432a6e48fSopenharmony_ci limitations under the License. 1532a6e48fSopenharmony_ci 1632a6e48fSopenharmony_ci Notes: 1732a6e48fSopenharmony_ci This is project config file for OpenHarmony OSS Audit Tool. If you have any questions or concerns, please send an email to chenyaxun. 1832a6e48fSopenharmony_ci--> 1932a6e48fSopenharmony_ci<!-- OAT (OSS Audit Tool) configuration guide: 2032a6e48fSopenharmony_cibasedir: Root dir. basedir + project path is the real source file location. 2132a6e48fSopenharmony_cilicensefile: 2232a6e48fSopenharmony_ciIf the project doesn't have "LICENSE" in root dir, please define all the license files in this project. OAT will check license files according to this rule. 2332a6e48fSopenharmony_ci 2432a6e48fSopenharmony_citasklist (for the batch mode only): 2532a6e48fSopenharmony_ci1. task: OAT check thread. Each task will start a new thread. 2632a6e48fSopenharmony_ci2. task name: Task name. 2732a6e48fSopenharmony_ci3. task policy: Default policy for projects under this task. This field is required and the specified policy must be defined in policylist. 2832a6e48fSopenharmony_ci4. task filter: Default filefilter for projects under this task. This field is required and the specified filefilter must be defined in filefilterlist. 2932a6e48fSopenharmony_ci5. task project: Projects to be checked. The path field defines the source root dir of the project. 3032a6e48fSopenharmony_ci 3132a6e48fSopenharmony_ci 3232a6e48fSopenharmony_cipolicyList: 3332a6e48fSopenharmony_ci1. policy: All policyitems will be merged to default OAT.xml rules. The name of policy doesn't affect the OAT check process. 3432a6e48fSopenharmony_ci2. policyitem: The fields type, name, path, desc are required, and the fields rule, group, filefilter are optional. The default value is: 3532a6e48fSopenharmony_ci<policyitem type="" name="" path="" desc="" rule="may" group="defaultGroup" filefilter="defaultPolicyFilter"/> 3632a6e48fSopenharmony_ci3. policyitem type: 3732a6e48fSopenharmony_ci "compatibility" is used to check license compatibility in the specified path. 3832a6e48fSopenharmony_ci "license" is used to check source license header in the specified path. 3932a6e48fSopenharmony_ci "copyright" is used to check source copyright header in the specified path. 4032a6e48fSopenharmony_ci "import" is used to check source dependency in the specified path, such as import and include. 4132a6e48fSopenharmony_ci "filetype" is used to check file type in the specified path. Supported file types include archive and binary. 4232a6e48fSopenharmony_ci "filename" is used to check whether the specified file exists in the specified path (support projectroot in the default OAT.xml). Supported file names include LICENSE, README, README.OpenSource. 4332a6e48fSopenharmony_ci 4432a6e48fSopenharmony_ci4. policyitem name: This field is used to define the license, copyright, "*" means match all, the "!" prefix means could not match this value. For example, "!GPL" means can not use GPL license. 4532a6e48fSopenharmony_ci5. policyitem path: This field is used to 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. 4632a6e48fSopenharmony_ci6. policyitem rule and group: These two fields are used together to merge policy results. "may" means that the result will be passed if any policyitem in the same group is passed. 4732a6e48fSopenharmony_ci7. policyitem filefilter: This field is used to bind filefilter which define filter rules. 4832a6e48fSopenharmony_ci8. filefilter: This field is used to define filter rules. filename is used to filter file name, and filepath is used to filter file path. 4932a6e48fSopenharmony_ci 5032a6e48fSopenharmony_ciNote: If the text contains special characters, please escape them according to the following rules: 5132a6e48fSopenharmony_ci" == > 5232a6e48fSopenharmony_ci& == > 5332a6e48fSopenharmony_ci' == > 5432a6e48fSopenharmony_ci< == > 5532a6e48fSopenharmony_ci> == > 5632a6e48fSopenharmony_ci--> 5732a6e48fSopenharmony_ci<configuration> 5832a6e48fSopenharmony_ci <oatconfig> 5932a6e48fSopenharmony_ci <licensefile>LICENSE</licensefile> 6032a6e48fSopenharmony_ci <filefilterlist> 6132a6e48fSopenharmony_ci <filefilter name="binaryFileTypePolicyFilter" desc="Filters for binary file policies" > 6232a6e48fSopenharmony_ci <filteritem type="filename" name="surface在系统架构中的位置(绿色部分为surface-buffer).png" desc="readme graphic png"/> 6332a6e48fSopenharmony_ci <filteritem type="filename" name="Surface轮转流程.png" desc="readme graphic png"/> 6432a6e48fSopenharmony_ci <filteritem type="filename" name="surface-rotation-process.png" desc="readme graphic png"/> 6532a6e48fSopenharmony_ci <filteritem type="filename" name="position-of-a-surface-in-the-system-architecture.png" desc="readme graphic png"/> 6632a6e48fSopenharmony_ci <filteritem type="filename" name="icon-notice.gif" desc="readme graphic gif"/> 6732a6e48fSopenharmony_ci </filefilter> 6832a6e48fSopenharmony_ci </filefilterlist> 6932a6e48fSopenharmony_ci </oatconfig> 7032a6e48fSopenharmony_ci</configuration> 71