14ed2deddSopenharmony_ci<?xml version="1.0" encoding="UTF-8"?> 24ed2deddSopenharmony_ci<!-- Copyright (c) 2021 Huawei Device Co., Ltd. 34ed2deddSopenharmony_ci 44ed2deddSopenharmony_ci Licensed under the Apache License, Version 2.0 (the "License"); 54ed2deddSopenharmony_ci you may not use this file except in compliance with the License. 64ed2deddSopenharmony_ci You may obtain a copy of the License at 74ed2deddSopenharmony_ci 84ed2deddSopenharmony_ci http://www.apache.org/licenses/LICENSE-2.0 94ed2deddSopenharmony_ci 104ed2deddSopenharmony_ci Unless required by applicable law or agreed to in writing, software 114ed2deddSopenharmony_ci distributed under the License is distributed on an "AS IS" BASIS, 124ed2deddSopenharmony_ci WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 134ed2deddSopenharmony_ci See the License for the specific language governing permissions and 144ed2deddSopenharmony_ci limitations under the License. 154ed2deddSopenharmony_ci 164ed2deddSopenharmony_ci Notes: 174ed2deddSopenharmony_ci This is project config file for OpenHarmony OSS Audit Tool. If you have any questions or concerns, please send an email to chenyaxun. 184ed2deddSopenharmony_ci--> 194ed2deddSopenharmony_ci<!-- OAT (OSS Audit Tool) configuration guide: 204ed2deddSopenharmony_cibasedir: Root dir. basedir + project path is the real source file location. 214ed2deddSopenharmony_cilicensefile: 224ed2deddSopenharmony_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. 234ed2deddSopenharmony_ci 244ed2deddSopenharmony_citasklist (for the batch mode only): 254ed2deddSopenharmony_ci1. task: OAT check thread. Each task will start a new thread. 264ed2deddSopenharmony_ci2. task name: Task name. 274ed2deddSopenharmony_ci3. task policy: Default policy for projects under this task. This field is required and the specified policy must be defined in policylist. 284ed2deddSopenharmony_ci4. task filter: Default filefilter for projects under this task. This field is required and the specified filefilter must be defined in filefilterlist. 294ed2deddSopenharmony_ci5. task project: Projects to be checked. The path field defines the source root dir of the project. 304ed2deddSopenharmony_ci 314ed2deddSopenharmony_ci 324ed2deddSopenharmony_cipolicyList: 334ed2deddSopenharmony_ci1. policy: All policyitems will be merged to default OAT.xml rules. The name of policy doesn't affect the OAT check process. 344ed2deddSopenharmony_ci2. policyitem: The fields type, name, path, desc are required, and the fields rule, group, filefilter are optional. The default value is: 354ed2deddSopenharmony_ci<policyitem type="" name="" path="" desc="" rule="may" group="defaultGroup" filefilter="defaultPolicyFilter"/> 364ed2deddSopenharmony_ci3. policyitem type: 374ed2deddSopenharmony_ci "compatibility" is used to check license compatibility in the specified path. 384ed2deddSopenharmony_ci "license" is used to check source license header in the specified path. 394ed2deddSopenharmony_ci "copyright" is used to check source copyright header in the specified path. 404ed2deddSopenharmony_ci "import" is used to check source dependency in the specified path, such as import and include. 414ed2deddSopenharmony_ci "filetype" is used to check file type in the specified path. Supported file types include archive and binary. 424ed2deddSopenharmony_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. 434ed2deddSopenharmony_ci 444ed2deddSopenharmony_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. 454ed2deddSopenharmony_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. 464ed2deddSopenharmony_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. 474ed2deddSopenharmony_ci7. policyitem filefilter: This field is used to bind filefilter which define filter rules. 484ed2deddSopenharmony_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. 494ed2deddSopenharmony_ci 504ed2deddSopenharmony_ciNote: If the text contains special characters, please escape them according to the following rules: 514ed2deddSopenharmony_ci" == > 524ed2deddSopenharmony_ci& == > 534ed2deddSopenharmony_ci' == > 544ed2deddSopenharmony_ci< == > 554ed2deddSopenharmony_ci> == > 564ed2deddSopenharmony_ci--> 574ed2deddSopenharmony_ci<configuration> 584ed2deddSopenharmony_ci <oatconfig> 594ed2deddSopenharmony_ci <licensefile>LICENSE</licensefile> 604ed2deddSopenharmony_ci <filefilterlist> 614ed2deddSopenharmony_ci <filefilter name="binaryFileTypePolicyFilter" desc="Filters for binary file policies" > 624ed2deddSopenharmony_ci <filteritem type="filepath" name="figures/.*" desc="Self-developed image"/> 634ed2deddSopenharmony_ci </filefilter> 644ed2deddSopenharmony_ci </filefilterlist> 654ed2deddSopenharmony_ci </oatconfig> 664ed2deddSopenharmony_ci</configuration>