140681896Sopenharmony_ci<?xml version="1.0" encoding="UTF-8"?> 240681896Sopenharmony_ci<!-- Copyright (c) 2021 Huawei Device Co., Ltd. 340681896Sopenharmony_ci 440681896Sopenharmony_ci Licensed under the Apache License, Version 2.0 (the "License"); 540681896Sopenharmony_ci you may not use this file except in compliance with the License. 640681896Sopenharmony_ci You may obtain a copy of the License at 740681896Sopenharmony_ci 840681896Sopenharmony_ci http://www.apache.org/licenses/LICENSE-2.0 940681896Sopenharmony_ci 1040681896Sopenharmony_ci Unless required by applicable law or agreed to in writing, software 1140681896Sopenharmony_ci distributed under the License is distributed on an "AS IS" BASIS, 1240681896Sopenharmony_ci WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1340681896Sopenharmony_ci See the License for the specific language governing permissions and 1440681896Sopenharmony_ci limitations under the License. 1540681896Sopenharmony_ci 1640681896Sopenharmony_ci Notes: 1740681896Sopenharmony_ci This is project config file for OpenHarmony OSS Audit Tool, if you have any questions or concerns, please email chenyaxun. 1840681896Sopenharmony_ci--> 1940681896Sopenharmony_ci<!-- OAT(OSS Audit Tool) configuration guide: 2040681896Sopenharmony_cibasedir: Root dir, the basedir + project path is the real source file location. 2140681896Sopenharmony_cilicensefile: 2240681896Sopenharmony_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. 2340681896Sopenharmony_ci 2440681896Sopenharmony_citasklist(only for batch mode): 2540681896Sopenharmony_ci1. task: Define oat check thread, each task will start a new thread. 2640681896Sopenharmony_ci2. task name: Only an name, no practical effect. 2740681896Sopenharmony_ci3. task policy: Default policy for projects under this task, this field is required and the specified policy must defined in policylist. 2840681896Sopenharmony_ci4. task filter: Default filefilter for projects under this task, this field is required and the specified filefilter must defined in filefilterlist. 2940681896Sopenharmony_ci5. task project: Projects to be checked, the path field define the source root dir of the project. 3040681896Sopenharmony_ci 3140681896Sopenharmony_ci 3240681896Sopenharmony_cipolicyList: 3340681896Sopenharmony_ci1. policy: All policyitems will be merged to default OAT.xml rules, the name of policy doesn't affect OAT check process. 3440681896Sopenharmony_ci2. policyitem: The fields type, name, path, desc is required, and the fields rule, group, filefilter is optional,the default value is: 3540681896Sopenharmony_ci<policyitem type="" name="" path="" desc="" rule="may" group="defaultGroup" filefilter="defaultPolicyFilter"/> 3640681896Sopenharmony_ci3. policyitem type: 3740681896Sopenharmony_ci "compatibility" is used to check license compatibility in the specified path; 3840681896Sopenharmony_ci "license" is used to check source license header in the specified path; 3940681896Sopenharmony_ci "copyright" is used to check source copyright header in the specified path; 4040681896Sopenharmony_ci "import" is used to check source dependency in the specified path, such as import ... ,include ... 4140681896Sopenharmony_ci "filetype" is used to check file type in the specified path, supported file types: archive, binary 4240681896Sopenharmony_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 4340681896Sopenharmony_ci 4440681896Sopenharmony_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. 4540681896Sopenharmony_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. 4640681896Sopenharmony_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. 4740681896Sopenharmony_ci7. policyitem filefilter: Used to bind filefilter which define filter rules. 4840681896Sopenharmony_ci8. filefilter: Filter rules, the type filename is used to filter file name, the type filepath is used to filter file path. 4940681896Sopenharmony_ci 5040681896Sopenharmony_ciNote:If the text contains special characters, please escape them according to the following rules: 5140681896Sopenharmony_ci" == > 5240681896Sopenharmony_ci& == > 5340681896Sopenharmony_ci' == > 5440681896Sopenharmony_ci< == > 5540681896Sopenharmony_ci> == > 5640681896Sopenharmony_ci--> 5740681896Sopenharmony_ci<configuration> 5840681896Sopenharmony_ci <oatconfig> 5940681896Sopenharmony_ci <licensefile></licensefile> 6040681896Sopenharmony_ci <policylist> 6140681896Sopenharmony_ci <policy name="projectPolicy" desc=""> 6240681896Sopenharmony_ci <!--policyitem type="compatibility" name="curl" path=".*" rule="may" group="defaultGroup" filefilter="defaultPolicyFilter" desc=""/--> 6340681896Sopenharmony_ci <!--policyitem type="compatibility" name="GPL-2.0+" path=".*" desc="不使用或者使用但是是独立进程,被X进程调用,自研进程不受GPL影响"/> 6440681896Sopenharmony_ci <policyitem type="license" name="LGPL" path=".*" desc="未使用,或者使用了,被X进程以动态链接方式调用"/> 6540681896Sopenharmony_ci <policyitem type="copyright" name="xxx" path=".*" rule="may" group="defaultGroup" filefilter="copyrightPolicyFilter" desc="xxxx开发代码"/--> 6640681896Sopenharmony_ci <policyitem type="license" name="*" path="test/.*" rule="may" group="defaultGroup" filefilter="defaultPolicyFilter" desc="测试资源文件"/> 6740681896Sopenharmony_ci <policyitem type="copyright" name="*" path="test/.*" rule="may" group="defaultGroup" filefilter="copyrightPolicyFilter" desc="测试资源文件"/> 6840681896Sopenharmony_ci </policy> 6940681896Sopenharmony_ci </policylist> 7040681896Sopenharmony_ci <filefilterlist> 7140681896Sopenharmony_ci <filefilter name="binaryFileTypePolicyFilter" desc="Filters for binary file policies" > 7240681896Sopenharmony_ci <filteritem type="filepath" name="lib/libpackage.so" desc="自研二进制,源码在该updater仓中,许可证就是该仓许可证,二进制文件不包含三方文件"/> 7340681896Sopenharmony_ci <filteritem type="filepath" name="lib/diff" desc="自研二进制,源码在该updater仓中,许可证就是该仓许可证,二进制文件不包含三方文件"/> 7440681896Sopenharmony_ci <filteritem type="filepath" name="test/target_vendor_data" desc="测试资源文件"/> 7540681896Sopenharmony_ci <filteritem type="filepath" name="test/source_vendor_data" desc="测试资源文件"/> 7640681896Sopenharmony_ci </filefilter> 7740681896Sopenharmony_ci 7840681896Sopenharmony_ci </filefilterlist> 7940681896Sopenharmony_ci 8040681896Sopenharmony_ci </oatconfig> 8140681896Sopenharmony_ci</configuration> 82