1a6a784faSopenharmony_ci<?xml version="1.0" encoding="UTF-8"?> 2a6a784faSopenharmony_ci<!-- Copyright (c) 2021 Huawei Device Co.|Ltd. 3a6a784faSopenharmony_ci Licensed under the Apache License|Version 2.0 (the "License"); 4a6a784faSopenharmony_ci you may not use this file except in compliance with the License. 5a6a784faSopenharmony_ci You may obtain a copy of the License at 6a6a784faSopenharmony_ci 7a6a784faSopenharmony_ci http://www.apache.org/licenses/LICENSE-2.0 8a6a784faSopenharmony_ci 9a6a784faSopenharmony_ci Unless required by applicable law or agreed to in writing|software 10a6a784faSopenharmony_ci distributed under the License is distributed on an "AS IS" BASIS, 11a6a784faSopenharmony_ci WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND|either express or implied. 12a6a784faSopenharmony_ci See the License for the specific language governing permissions and 13a6a784faSopenharmony_ci limitations under the License. 14a6a784faSopenharmony_ci 15a6a784faSopenharmony_ci Notes: 16a6a784faSopenharmony_ci This is project config file for OpenHarmony OSS Audit Tool|if you have any questions or concerns|please email chenyaxun. 17a6a784faSopenharmony_ci--> 18a6a784faSopenharmony_ci<!-- OAT(OSS Audit Tool) configuration guide: 19a6a784faSopenharmony_cibasedir: Root dir|the basedir + project path is the real source file location. 20a6a784faSopenharmony_cilicensefile: 21a6a784faSopenharmony_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. 22a6a784faSopenharmony_ci 23a6a784faSopenharmony_citasklist(only for batch mode): 24a6a784faSopenharmony_ci1. task: Define oat check thread|each task will start a new thread. 25a6a784faSopenharmony_ci2. task name: Only an name|no practical effect. 26a6a784faSopenharmony_ci3. task policy: Default policy for projects under this task|this field is required and the specified policy must defined in policylist. 27a6a784faSopenharmony_ci4. task filter: Default filefilter for projects under this task|this field is required and the specified filefilter must defined in filefilterlist. 28a6a784faSopenharmony_ci5. task project: Projects to be checked|the path field define the source root dir of the project. 29a6a784faSopenharmony_ci 30a6a784faSopenharmony_ci 31a6a784faSopenharmony_cipolicyList: 32a6a784faSopenharmony_ci1. policy: All policyitems will be merged to default OAT.xml rules|the name of policy doesn't affect OAT check process. 33a6a784faSopenharmony_ci2. policyitem: The fields type|name|path|desc is required|and the fields rule|group|filefilter is optional,the default value is: 34a6a784faSopenharmony_ci<policyitem type="" name="" path="" desc="" rule="may" group="defaultGroup" filefilter="defaultPolicyFilter"/> 35a6a784faSopenharmony_ci3. policyitem type: 36a6a784faSopenharmony_ci "compatibility" is used to check license compatibility in the specified path; 37a6a784faSopenharmony_ci "license" is used to check source license header in the specified path; 38a6a784faSopenharmony_ci "copyright" is used to check source copyright header in the specified path; 39a6a784faSopenharmony_ci "import" is used to check source dependency in the specified path|such as import ... ,include ... 40a6a784faSopenharmony_ci "filetype" is used to check file type in the specified path|supported file types: archive|binary 41a6a784faSopenharmony_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 42a6a784faSopenharmony_ci 43a6a784faSopenharmony_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. 44a6a784faSopenharmony_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. 45a6a784faSopenharmony_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. 46a6a784faSopenharmony_ci7. policyitem filefilter: Used to bind filefilter which define filter rules. 47a6a784faSopenharmony_ci8. filefilter: Filter rules|the type filename is used to filter file name|the type filepath is used to filter file path. 48a6a784faSopenharmony_ci 49a6a784faSopenharmony_ciNote:If the text contains special characters|please escape them according to the following rules: 50a6a784faSopenharmony_ci" == > 51a6a784faSopenharmony_ci& == > 52a6a784faSopenharmony_ci' == > 53a6a784faSopenharmony_ci< == > 54a6a784faSopenharmony_ci> == > 55a6a784faSopenharmony_ci--> 56a6a784faSopenharmony_ci<configuration> 57a6a784faSopenharmony_ci <oatconfig> 58a6a784faSopenharmony_ci <licensefile>LICENSE</licensefile> 59a6a784faSopenharmony_ci <policylist> 60a6a784faSopenharmony_ci <policy name="projectPolicy" desc=""> 61a6a784faSopenharmony_ci <policyitem type="compatibility" name="zlib-acknowledgement" path="cups-2.4.0/cups/md5.c" rule="may" group="defaultGroup" filefilter="defaultPolicyFilter" desc="zlib License"/> 62a6a784faSopenharmony_ci <policyitem type="compatibility" name="zlib-acknowledgement" path="cups-2.4.0/cups/md5-internal.h" rule="may" group="defaultGroup" filefilter="defaultPolicyFilter" desc="zlib License"/> 63a6a784faSopenharmony_ci </policy> 64a6a784faSopenharmony_ci </policylist> 65a6a784faSopenharmony_ci <licensematcherlist> 66a6a784faSopenharmony_ci <licensematcher name="Apache License v2.0" desc="" > 67a6a784faSopenharmony_ci <licensetext name=" 68a6a784faSopenharmony_ci * Licensed under Apache License v2.0. See the file "LICENSE" for more 69a6a784faSopenharmony_ci * information. 70a6a784faSopenharmony_ci " desc=""/> 71a6a784faSopenharmony_ci <licensetext name=" 72a6a784faSopenharmony_ci dnl Licensed under Apache License v2.0. See the file "LICENSE" for more 73a6a784faSopenharmony_ci dnl information. 74a6a784faSopenharmony_ci " desc=""/> 75a6a784faSopenharmony_ci </licensematcher> 76a6a784faSopenharmony_ci </licensematcherlist> 77a6a784faSopenharmony_ci <filefilterlist> 78a6a784faSopenharmony_ci <filefilter name="defaultFilter" desc="Files not to check"> 79a6a784faSopenharmony_ci <filteritem type="filepath" name="cups.spec" desc="上游更新记录说明"/> 80a6a784faSopenharmony_ci <filteritem type="filepath" name="cups-2.4.0/vcnet/regex/COPYRIGHT" desc="COPYING信息"/> 81a6a784faSopenharmony_ci <filteritem type="filepath" name="cups-2.4.0/install-sh" desc="安装脚本信息"/> 82a6a784faSopenharmony_ci <filteritem type="filepath" name="cups-2.4.0/backend/usb-darwin.c" desc="没有编译使用"/> 83a6a784faSopenharmony_ci <filteritem type="filepath" name="cups-2.4.0/filter/spec-ppd.shtml" desc="没有编译使用"/> 84a6a784faSopenharmony_ci <filteritem type="filepath" name="cups-2.4.0/filter/ppd-compiler.shtml" desc="没有编译使用"/> 85a6a784faSopenharmony_ci <filteritem type="filepath" name="cups-2.4.0/config.sub" desc="没有编译使用"/> 86a6a784faSopenharmony_ci <filteritem type="filepath" name="cups-2.4.0/config.guess" desc="没有编译使用"/> 87a6a784faSopenharmony_ci <filteritem type="filepath" name="cups-2.4.0/NOTICE" desc="上游notice信息"/> 88a6a784faSopenharmony_ci <filteritem type="filepath" name="cups-2.4.0/backend/pseudo" desc="没有编译使用"/> 89a6a784faSopenharmony_ci </filefilter> 90a6a784faSopenharmony_ci <filefilter name="binaryFileTypePolicyFilter" desc="二进制文件校验策略的过滤条件" > 91a6a784faSopenharmony_ci <filteritem type="filepath" name="cups-2.4.0/doc/images/.*" desc="示例图片文件,未使用"/> 92a6a784faSopenharmony_ci <filteritem type="filepath" name="cups-2.4.0/examples/.*" desc="示例文件,未使用"/> 93a6a784faSopenharmony_ci <filteritem type="filepath" name="cups-2.4.0/desktop/.*" desc="图片文件,未使用"/> 94a6a784faSopenharmony_ci <filteritem type="filepath" name="cups-2.4.0/tools/.*" desc="图片文件,未使用"/> 95a6a784faSopenharmony_ci <filteritem type="filepath" name="cups-2.4.0/cups/cupspm-icon.png" desc="图片文件,未使用"/> 96a6a784faSopenharmony_ci <filteritem type="filepath" name="cups-2.4.0/cups/cupspm.opacity" desc="opacity文件,未使用"/> 97a6a784faSopenharmony_ci <filteritem type="filepath" name="cups-2.4.0/cups/cupspm.png" desc="图片文件,未使用"/> 98a6a784faSopenharmony_ci <filteritem type="filepath" name="cups-2.4.0/doc/apple-touch-icon.png" desc="图片文件,未使用"/> 99a6a784faSopenharmony_ci <filteritem type="filepath" name="cups-2.4.0-source.tar.gz" desc="源码压缩包"/> 100a6a784faSopenharmony_ci <filteritem type="filepath" name="cups-2.4.0/ppdc/sample.drv" desc="drv示例驱动文件,未使用"/> 101a6a784faSopenharmony_ci <filteritem type="filepath" name="cups-2.4.0/scheduler/libcupsmime.exp" desc=".exp文件,未使用"/> 102a6a784faSopenharmony_ci <filteritem type="filepath" name="cupsprinter.png" desc="图片文件,未使用"/> 103a6a784faSopenharmony_ci <filteritem type="filepath" name="cups-2.4.0/cgi-bin/libcupscgi.exp" desc=".exp文件,未使用"/> 104a6a784faSopenharmony_ci <filteritem type="filepath" name="cups-2.4.0/doc/help/cupspm.epub" desc="电子书文件,未使用"/> 105a6a784faSopenharmony_ci <filteritem type="filepath" name="cups-2.4.0/ppdc/foo.drv" desc="drv示例驱动文件,未使用"/> 106a6a784faSopenharmony_ci <filteritem type="filepath" name="cups-2.4.0/cgi-bin/multipart.dat" desc="脚本文件,未使用"/> 107a6a784faSopenharmony_ci <filteritem type="filepath" name="cups-2.4.0/test/4.1-requests.test" desc="test文件,未使用"/> 108a6a784faSopenharmony_ci 109a6a784faSopenharmony_ci </filefilter> 110a6a784faSopenharmony_ci </filefilterlist> 111a6a784faSopenharmony_ci </oatconfig> 112a6a784faSopenharmony_ci</configuration>