1324c9471Sopenharmony_ci<?xml version="1.0" encoding="UTF-8"?> 2324c9471Sopenharmony_ci<!-- Copyright (c) 2021 Huawei Device Co., Ltd. 3324c9471Sopenharmony_ci 4324c9471Sopenharmony_ci Licensed under the Apache License, Version 2.0 (the "License"); 5324c9471Sopenharmony_ci you may not use this file except in compliance with the License. 6324c9471Sopenharmony_ci You may obtain a copy of the License at 7324c9471Sopenharmony_ci 8324c9471Sopenharmony_ci http://www.apache.org/licenses/LICENSE-2.0 9324c9471Sopenharmony_ci 10324c9471Sopenharmony_ci Unless required by applicable law or agreed to in writing, software 11324c9471Sopenharmony_ci distributed under the License is distributed on an "AS IS" BASIS, 12324c9471Sopenharmony_ci WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13324c9471Sopenharmony_ci See the License for the specific language governing permissions and 14324c9471Sopenharmony_ci limitations under the License. 15324c9471Sopenharmony_ci--> 16324c9471Sopenharmony_ci<!-- OAT(OSS Audit Tool) configuration guide: 17324c9471Sopenharmony_cibasedir: Root dir, the basedir + project path is the real source file location. 18324c9471Sopenharmony_cilicensefile: 19324c9471Sopenharmony_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. 20324c9471Sopenharmony_ci 21324c9471Sopenharmony_citasklist(only for batch mode): 22324c9471Sopenharmony_ci1. task: Define oat check thread, each task will start a new thread. 23324c9471Sopenharmony_ci2. task name: Only an name, no practical effect. 24324c9471Sopenharmony_ci3. task policy: Default policy for projects under this task, this field is required and the specified policy must defined in policylist. 25324c9471Sopenharmony_ci4. task filter: Default filefilter for projects under this task, this field is required and the specified filefilter must defined in filefilterlist. 26324c9471Sopenharmony_ci5. task project: Projects to be checked, the path field define the source root dir of the project. 27324c9471Sopenharmony_ci 28324c9471Sopenharmony_ci 29324c9471Sopenharmony_cipolicyList: 30324c9471Sopenharmony_ci1. policy: All policyitems will be merged to default OAT.xml rules, the name of policy doesn't affect OAT check process. 31324c9471Sopenharmony_ci2. policyitem: The fields type, name, path, desc is required, and the fields rule, group, filefilter is optional,the default value is: 32324c9471Sopenharmony_ci<policyitem type="" name="" path="" desc="" rule="may" group="defaultGroup" filefilter="defaultPolicyFilter"/> 33324c9471Sopenharmony_ci3. policyitem type: 34324c9471Sopenharmony_ci "compatibility" is used to check license compatibility in the specified path; 35324c9471Sopenharmony_ci "license" is used to check source license header in the specified path; 36324c9471Sopenharmony_ci "copyright" is used to check source copyright header in the specified path; 37324c9471Sopenharmony_ci "import" is used to check source dependency in the specified path, such as import ... ,include ... 38324c9471Sopenharmony_ci "filetype" is used to check file type in the specified path, supported file types: archive, binary 39324c9471Sopenharmony_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 40324c9471Sopenharmony_ci 41324c9471Sopenharmony_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. 42324c9471Sopenharmony_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. 43324c9471Sopenharmony_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. 44324c9471Sopenharmony_ci7. policyitem filefilter: Used to bind filefilter which define filter rules. 45324c9471Sopenharmony_ci8. filefilter: Filter rules, the type filename is used to filter file name, the type filepath is used to filter file path. 46324c9471Sopenharmony_ci 47324c9471Sopenharmony_ciNote:If the text contains special characters, please escape them according to the following rules: 48324c9471Sopenharmony_ci" == > 49324c9471Sopenharmony_ci& == > 50324c9471Sopenharmony_ci' == > 51324c9471Sopenharmony_ci< == > 52324c9471Sopenharmony_ci> == > 53324c9471Sopenharmony_ci--> 54324c9471Sopenharmony_ci<configuration> 55324c9471Sopenharmony_ci <oatconfig> 56324c9471Sopenharmony_ci <policylist> 57324c9471Sopenharmony_ci <policy name="projectPolicy" desc=""> 58324c9471Sopenharmony_ci <policyitem type="compatibility" name="c-ares" path=".*" desc="c-ares license"/> 59324c9471Sopenharmony_ci </policy> 60324c9471Sopenharmony_ci </policylist> 61324c9471Sopenharmony_ci <filefilterlist> 62324c9471Sopenharmony_ci <filefilter name="defaultPolicyFilter" desc="Filters for compatibility,license header policies"> 63324c9471Sopenharmony_ci <filteritem type="filename" name="ares_getopt.c" desc="BSD license"/> 64324c9471Sopenharmony_ci <filteritem type="filepath" name="m4/ax_cxx_compile_stdcxx_11.m4" desc="no license header"/> 65324c9471Sopenharmony_ci <filteritem type="filepath" name="m4/zz60-xc-ovr.m4" desc="no license header"/> 66324c9471Sopenharmony_ci <filteritem type="filepath" name="m4/xc-lt-iface.m4" desc="no license header"/> 67324c9471Sopenharmony_ci <filteritem type="filepath" name="m4/xc-am-iface.m4" desc="no license header"/> 68324c9471Sopenharmony_ci <filteritem type="filepath" name="ares_getopt.h" desc="no license header"/> 69324c9471Sopenharmony_ci <filteritem type="filepath" name="m4/xc-cc-check.m4" desc="no license header"/> 70324c9471Sopenharmony_ci <filteritem type="filepath" name="bitncmp.c" desc="no license header"/> 71324c9471Sopenharmony_ci <filteritem type="filepath" name="m4/xc-translit.m4" desc="no license header"/> 72324c9471Sopenharmony_ci <filteritem type="filepath" name="README.cares" desc="no license header"/> 73324c9471Sopenharmony_ci <filteritem type="filepath" name="m4/xc-val-flgs.m4" desc="no license header"/> 74324c9471Sopenharmony_ci <filteritem type="filepath" name="m4/zz40-xc-ovr.m4" desc="no license header"/> 75324c9471Sopenharmony_ci <filteritem type="filepath" name="m4/zz50-xc-ovr.m4" desc="no license header"/> 76324c9471Sopenharmony_ci <filteritem type="filepath" name="inet_net_pton.c" desc="no license header"/> 77324c9471Sopenharmony_ci <filteritem type="filepath" name="inet_ntop.c" desc="no license header"/> 78324c9471Sopenharmony_ci </filefilter> 79324c9471Sopenharmony_ci </filefilterlist> 80324c9471Sopenharmony_ci <policylist> 81324c9471Sopenharmony_ci <policy name="defaultPolicy" desc=""> 82324c9471Sopenharmony_ci <policyitem type="compatibility" name="NTP" path="include/ares_rules.h" rule="may" group="defaultGroup" filefilter="defaultPolicyFilter" desc=""/> 83324c9471Sopenharmony_ci <policyitem type="compatibility" name="NTP" path="install.sh" rule="may" group="defaultGroup" filefilter="defaultPolicyFilter" desc=""/> 84324c9471Sopenharmony_ci <policyitem type="compatibility" name="NTP" path="include/ares.h" rule="may" group="defaultGroup" filefilter="defaultPolicyFilter" desc=""/> 85324c9471Sopenharmony_ci <policyitem type="compatibility" name="NTP" path="include/ares_dns.h" rule="may" group="defaultGroup" filefilter="defaultPolicyFilter" desc=""/> 86324c9471Sopenharmony_ci <policyitem type="compatibility" name="NTP" path="include/ares_build.h" rule="may" group="defaultGroup" filefilter="defaultPolicyFilter" desc=""/> 87324c9471Sopenharmony_ci </policy> 88324c9471Sopenharmony_ci </policylist> 89324c9471Sopenharmony_ci </oatconfig> 90324c9471Sopenharmony_ci</configuration> 91