1c87c5fbaSopenharmony_ci<?xml version="1.0" encoding="UTF-8"?> 2c87c5fbaSopenharmony_ci<!-- Copyright (c) 2023 Huawei Device Co., Ltd. 3c87c5fbaSopenharmony_ci 4c87c5fbaSopenharmony_ci Licensed under the Apache License, Version 2.0 (the "License"); 5c87c5fbaSopenharmony_ci you may not use this file except in compliance with the License. 6c87c5fbaSopenharmony_ci You may obtain a copy of the License at 7c87c5fbaSopenharmony_ci 8c87c5fbaSopenharmony_ci http://www.apache.org/licenses/LICENSE-2.0 9c87c5fbaSopenharmony_ci 10c87c5fbaSopenharmony_ci Unless required by applicable law or agreed to in writing, software 11c87c5fbaSopenharmony_ci distributed under the License is distributed on an "AS IS" BASIS, 12c87c5fbaSopenharmony_ci WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13c87c5fbaSopenharmony_ci See the License for the specific language governing permissions and 14c87c5fbaSopenharmony_ci limitations under the License. 15c87c5fbaSopenharmony_ci--> 16c87c5fbaSopenharmony_ci<!-- OAT(OSS Audit Tool) configuration guide: 17c87c5fbaSopenharmony_cibasedir: Root dir, the basedir + project path is the real source file location. 18c87c5fbaSopenharmony_cilicensefile: 19c87c5fbaSopenharmony_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. 20c87c5fbaSopenharmony_ci 21c87c5fbaSopenharmony_citasklist(only for batch mode): 22c87c5fbaSopenharmony_ci1. task: Define oat check thread, each task will start a new thread. 23c87c5fbaSopenharmony_ci2. task name: Only an name, no practical effect. 24c87c5fbaSopenharmony_ci3. task policy: Default policy for projects under this task, this field is required and the specified policy must defined in policylist. 25c87c5fbaSopenharmony_ci4. task filter: Default filefilter for projects under this task, this field is required and the specified filefilter must defined in filefilterlist. 26c87c5fbaSopenharmony_ci5. task project: Projects to be checked, the path field define the source root dir of the project. 27c87c5fbaSopenharmony_ci 28c87c5fbaSopenharmony_ci 29c87c5fbaSopenharmony_cipolicyList: 30c87c5fbaSopenharmony_ci1. policy: All policyitems will be merged to default OAT.xml rules, the name of policy doesn't affect OAT check process. 31c87c5fbaSopenharmony_ci2. policyitem: The fields type, name, path, desc is required, and the fields rule, group, filefilter is optional,the default value is: 32c87c5fbaSopenharmony_ci<policyitem type="" name="" path="" desc="" rule="may" group="defaultGroup" filefilter="defaultPolicyFilter"/> 33c87c5fbaSopenharmony_ci3. policyitem type: 34c87c5fbaSopenharmony_ci "compatibility" is used to check license compatibility in the specified path; 35c87c5fbaSopenharmony_ci "license" is used to check source license header in the specified path; 36c87c5fbaSopenharmony_ci "copyright" is used to check source copyright header in the specified path; 37c87c5fbaSopenharmony_ci "import" is used to check source dependency in the specified path, such as import ... ,include ... 38c87c5fbaSopenharmony_ci "filetype" is used to check file type in the specified path, supported file types: archive, binary 39c87c5fbaSopenharmony_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 40c87c5fbaSopenharmony_ci 41c87c5fbaSopenharmony_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. 42c87c5fbaSopenharmony_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. 43c87c5fbaSopenharmony_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. 44c87c5fbaSopenharmony_ci7. policyitem filefilter: Used to bind filefilter which define filter rules. 45c87c5fbaSopenharmony_ci8. filefilter: Filter rules, the type filename is used to filter file name, the type filepath is used to filter file path. 46c87c5fbaSopenharmony_ci 47c87c5fbaSopenharmony_ciNote:If the text contains special characters, please escape them according to the following rules: 48c87c5fbaSopenharmony_ci" == > 49c87c5fbaSopenharmony_ci& == > 50c87c5fbaSopenharmony_ci' == > 51c87c5fbaSopenharmony_ci< == > 52c87c5fbaSopenharmony_ci> == > 53c87c5fbaSopenharmony_ci--> 54c87c5fbaSopenharmony_ci<configuration> 55c87c5fbaSopenharmony_ci <oatconfig> 56c87c5fbaSopenharmony_ci <licensefile></licensefile> 57c87c5fbaSopenharmony_ci <filefilterlist> 58c87c5fbaSopenharmony_ci <filefilter name="defaultPolicyFilter" desc="Filters for compatibility,license header policies"> 59c87c5fbaSopenharmony_ci <filteritem type="filename" name="CONTRIBUTE" desc="Contributions made up to 2017-06-01 have been made under the dual license model BSD 2-Clause and GPL v2+ (The GNU General Public License 2.0 or later). We just use use BSD."/> 60c87c5fbaSopenharmony_ci <filteritem type="filename" name="COPYING" desc="We just use use BSD. getopt.c, OpenSSL, GnuTLS or tinyDTLS are not be used."/> 61c87c5fbaSopenharmony_ci <filteritem type="filename" name="LICENSE" desc="We just use use BSD. getopt.c, OpenSSL, GnuTLS or tinyDTLS are not be used."/> 62c87c5fbaSopenharmony_ci <filteritem type="filename" name="Makefile.am" desc="We not use this automake script file."/> 63c87c5fbaSopenharmony_ci <filteritem type="filename" name="BUILDING" desc="无license头。该文件为构建说明文档。"/> 64c87c5fbaSopenharmony_ci <filteritem type="filename" name="include/coap3/coap_uthash_internal.h" desc="libcoap use this under BSD license"/> 65c87c5fbaSopenharmony_ci <filteritem type="filename" name="include/coap3/coap_utlist_internal.h" desc="libcoap use this under BSD license"/> 66c87c5fbaSopenharmony_ci <filteritem type="filepath" name="examples/riot/examples_libcoap_client/main.c" desc="We do not need this file"/> 67c87c5fbaSopenharmony_ci <filteritem type="filepath" name="examples/riot/examples_libcoap_server/main.c" desc="We do not need this file"/> 68c87c5fbaSopenharmony_ci <filteritem type="filepath" name="m4/ac_check_cryptolibs.m4" desc="We do not need this file to check the version of GNUTLS|OPENSSL. Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. This file is offered as-is, without any warranty."/> 69c87c5fbaSopenharmony_ci <filteritem type="filepath" name="m4/ax_check_a2x_to_man.m4" desc="We do not need this file to check if have installed a2x or not. This file is part of the CoAP library libcoap, following BSD License."/> 70c87c5fbaSopenharmony_ci <filteritem type="filepath" name="m4/ax_check_compile_flag.m4" desc="You need not follow the terms of the GPL when using or distributing Autoconf scripts. Futher more, we not use this Autoconf script file."/> 71c87c5fbaSopenharmony_ci <filteritem type="filepath" name="m4/ax_check_link_flag.m4" desc="You need not follow the terms of the GPL when using or distributing Autoconf scripts. Futher more, we not use this Autoconf script file."/> 72c87c5fbaSopenharmony_ci <filteritem type="filepath" name="doc/Doxyfile.in" desc="无license头。该文件为API文档生产脚本。"/> 73c87c5fbaSopenharmony_ci <filteritem type="filepath" name="AUTHORS" desc="无license头。该文件为作者名单列表信息。"/> 74c87c5fbaSopenharmony_ci </filefilter> 75c87c5fbaSopenharmony_ci </filefilterlist> 76c87c5fbaSopenharmony_ci <licensematcherlist> 77c87c5fbaSopenharmony_ci <licensematcher name="BSD 2-Clause License" desc="如果工具扫描是InvalidLicense,可在此定义匹配规则,注意引号要转义" > 78c87c5fbaSopenharmony_ci <licensetext name=" 79c87c5fbaSopenharmony_ciRedistribution and use in source and binary forms, with or without 80c87c5fbaSopenharmony_cimodification, are permitted provided that the following conditions are met: 81c87c5fbaSopenharmony_ci 82c87c5fbaSopenharmony_ci * Redistributions of source code must retain the above copyright 83c87c5fbaSopenharmony_ci notice, this list of conditions and the following disclaimer. 84c87c5fbaSopenharmony_ci 85c87c5fbaSopenharmony_ciTHIS SOFTWARE IS PROVIDED" desc="匹配此条目的为BSD 2-Clause License"/> 86c87c5fbaSopenharmony_ci </licensematcher> 87c87c5fbaSopenharmony_ci <licensematcher name="BSD 3-Clause License" desc="如果工具扫描是InvalidLicense,可在此定义匹配规则,注意引号要转义" > 88c87c5fbaSopenharmony_ci <licensetext name=" 89c87c5fbaSopenharmony_ciRedistribution and use in source and binary forms, with or without 90c87c5fbaSopenharmony_ci * modification, are permitted provided that the following conditions 91c87c5fbaSopenharmony_ci * are met: 92c87c5fbaSopenharmony_ci * 1. Redistributions of source code must retain the above copyright 93c87c5fbaSopenharmony_ci * notice, this list of conditions and the following disclaimer. 94c87c5fbaSopenharmony_ci * 2. Redistributions in binary form must reproduce the above copyright 95c87c5fbaSopenharmony_ci * notice, this list of conditions and the following disclaimer in the 96c87c5fbaSopenharmony_ci * documentation and/or other materials provided with the distribution. 97c87c5fbaSopenharmony_ci * 3. Neither the name of the Institute nor the names of its contributors 98c87c5fbaSopenharmony_ci * may be used to endorse or promote products derived from this software 99c87c5fbaSopenharmony_ci * without specific prior written permission. 100c87c5fbaSopenharmony_ci * 101c87c5fbaSopenharmony_ci * THIS SOFTWARE IS PROVIDED" desc="匹配此条目的为BSD 3-Clause License"/> 102c87c5fbaSopenharmony_ci </licensematcher> 103c87c5fbaSopenharmony_ci </licensematcherlist> 104c87c5fbaSopenharmony_ci </oatconfig> 105c87c5fbaSopenharmony_ci</configuration> 106