1b5975d6bSopenharmony_ci<?xml version="1.0" encoding="UTF-8"?> 2b5975d6bSopenharmony_ci<!-- Copyright (c) 2021 Huawei Device Co., Ltd. 3b5975d6bSopenharmony_ci 4b5975d6bSopenharmony_ci Licensed under the Apache License, Version 2.0 (the "License"); 5b5975d6bSopenharmony_ci you may not use this file except in compliance with the License. 6b5975d6bSopenharmony_ci You may obtain a copy of the License at 7b5975d6bSopenharmony_ci 8b5975d6bSopenharmony_ci http://www.apache.org/licenses/LICENSE-2.0 9b5975d6bSopenharmony_ci 10b5975d6bSopenharmony_ci Unless required by applicable law or agreed to in writing, software 11b5975d6bSopenharmony_ci distributed under the License is distributed on an "AS IS" BASIS, 12b5975d6bSopenharmony_ci WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13b5975d6bSopenharmony_ci See the License for the specific language governing permissions and 14b5975d6bSopenharmony_ci limitations under the License. 15b5975d6bSopenharmony_ci 16b5975d6bSopenharmony_ci Notes: 17b5975d6bSopenharmony_ci This is project config file for OpenHarmony OSS Audit Tool, if you have any questions or concerns, please email chenyaxun@huawei.com. 18b5975d6bSopenharmony_ci--> 19b5975d6bSopenharmony_ci<!-- OAT(OSS Audit Tool) configuration guide: 20b5975d6bSopenharmony_cibasedir: Root dir, the basedir + project path is the real source file location. 21b5975d6bSopenharmony_cilicensefile: 22b5975d6bSopenharmony_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. 23b5975d6bSopenharmony_ci 24b5975d6bSopenharmony_citasklist(only for batch mode): 25b5975d6bSopenharmony_ci1. task: Define oat check thread, each task will start a new thread. 26b5975d6bSopenharmony_ci2. task name: Only an name, no practical effect. 27b5975d6bSopenharmony_ci3. task policy: Default policy for projects under this task, this field is required and the specified policy must defined in policylist. 28b5975d6bSopenharmony_ci4. task filter: Default filefilter for projects under this task, this field is required and the specified filefilter must defined in filefilterlist. 29b5975d6bSopenharmony_ci5. task project: Projects to be checked, the path field define the source root dir of the project. 30b5975d6bSopenharmony_ci 31b5975d6bSopenharmony_ci 32b5975d6bSopenharmony_cipolicyList: 33b5975d6bSopenharmony_ci1. policy: All policyitems will be merged to default OAT.xml rules, the name of policy doesn't affect OAT check process. 34b5975d6bSopenharmony_ci2. policyitem: The fields type, name, path, desc is required, and the fields rule, group, filefilter is optional,the default value is: 35b5975d6bSopenharmony_ci<policyitem type="" name="" path="" desc="" rule="may" group="defaultGroup" filefilter="defaultPolicyFilter"/> 36b5975d6bSopenharmony_ci3. policyitem type: 37b5975d6bSopenharmony_ci "compatibility" is used to check license compatibility in the specified path; 38b5975d6bSopenharmony_ci "license" is used to check source license header in the specified path; 39b5975d6bSopenharmony_ci "copyright" is used to check source copyright header in the specified path; 40b5975d6bSopenharmony_ci "import" is used to check source dependency in the specified path, such as import ... ,include ... 41b5975d6bSopenharmony_ci "filetype" is used to check file type in the specified path, supported file types: archive, binary 42b5975d6bSopenharmony_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 43b5975d6bSopenharmony_ci 44b5975d6bSopenharmony_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. 45b5975d6bSopenharmony_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. 46b5975d6bSopenharmony_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. 47b5975d6bSopenharmony_ci7. policyitem filefilter: Used to bind filefilter which define filter rules. 48b5975d6bSopenharmony_ci8. filefilter: Filter rules, the type filename is used to filter file name, the type filepath is used to filter file path. 49b5975d6bSopenharmony_ci 50b5975d6bSopenharmony_ciNote:If the text contains special characters, please escape them according to the following rules: 51b5975d6bSopenharmony_ci" == > 52b5975d6bSopenharmony_ci& == > 53b5975d6bSopenharmony_ci' == > 54b5975d6bSopenharmony_ci< == > 55b5975d6bSopenharmony_ci> == > 56b5975d6bSopenharmony_ci--> 57b5975d6bSopenharmony_ci<configuration> 58b5975d6bSopenharmony_ci <oatconfig> 59b5975d6bSopenharmony_ci <licensefile>COPYING</licensefile> 60b5975d6bSopenharmony_ci <licensematcherlist> 61b5975d6bSopenharmony_ci <licensematcher name="BSD-3-Clause" desc="License for BSD-3-Clause"> 62b5975d6bSopenharmony_ci <licensetext name=" 63b5975d6bSopenharmony_ci * This work is provided >as is>; redistribution and modification 64b5975d6bSopenharmony_ci * in whole or in part, in any medium, physical or electronic is 65b5975d6bSopenharmony_ci * permitted without restriction. 66b5975d6bSopenharmony_ci * 67b5975d6bSopenharmony_ci * This work is distributed in the hope that it will be useful, 68b5975d6bSopenharmony_ci * but WITHOUT ANY WARRANTY; without even the implied warranty of 69b5975d6bSopenharmony_ci * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 70b5975d6bSopenharmony_ci * 71b5975d6bSopenharmony_ci * In no event shall the authors or contributors be liable for any 72b5975d6bSopenharmony_ci * direct, indirect, incidental, special, exemplary, or consequential 73b5975d6bSopenharmony_ci * damages (including, but not limited to, procurement of substitute 74b5975d6bSopenharmony_ci * goods or services; loss of use, data, or profits; or business 75b5975d6bSopenharmony_ci * interruption) however caused and on any theory of liability, whether 76b5975d6bSopenharmony_ci * in contract, strict liability, or tort (including negligence or 77b5975d6bSopenharmony_ci * otherwise) arising in any way out of the use of this software, even 78b5975d6bSopenharmony_ci * if advised of the possibility of such damage. 79b5975d6bSopenharmony_ci " desc=""/> 80b5975d6bSopenharmony_ci </licensematcher> 81b5975d6bSopenharmony_ci <licensematcher name="BSD-3-Clause" desc="License for BSD-3-Clause"> 82b5975d6bSopenharmony_ci <licensetext name=" 83b5975d6bSopenharmony_ci * This software is provided >as is> redistribution and modification 84b5975d6bSopenharmony_ci * is permitted, provided that the following disclaimer is retained. 85b5975d6bSopenharmony_ci * 86b5975d6bSopenharmony_ci * This software is distributed in the hope that it will be useful, 87b5975d6bSopenharmony_ci * but WITHOUT ANY WARRANTY; without even the implied warranty of 88b5975d6bSopenharmony_ci * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 89b5975d6bSopenharmony_ci * In no event shall the authors or contributors be liable for any 90b5975d6bSopenharmony_ci * direct, indirect, incidental, special, exemplary, or consequential 91b5975d6bSopenharmony_ci * damages (including, but not limited to, procurement of substitute 92b5975d6bSopenharmony_ci * goods or services; loss of use, data, or profits; or business 93b5975d6bSopenharmony_ci * interruption) however caused and on any theory of liability, whether 94b5975d6bSopenharmony_ci * in contract, strict liability, or tort (including negligence or 95b5975d6bSopenharmony_ci * otherwise) arising in any way out of the use of this software, even 96b5975d6bSopenharmony_ci * if advised of the possibility of such damage. 97b5975d6bSopenharmony_ci " desc=""/> 98b5975d6bSopenharmony_ci </licensematcher> 99b5975d6bSopenharmony_ci <licensematcher name="LGPL" desc="License for LGPL"> 100b5975d6bSopenharmony_ci <licensetext name=" 101b5975d6bSopenharmony_ci * Licensed under the Academic Free License version 2.0 102b5975d6bSopenharmony_ci * Or under the following terms: 103b5975d6bSopenharmony_ci * 104b5975d6bSopenharmony_ci * This library is free software; you can redistribute it and/or 105b5975d6bSopenharmony_ci * modify it under the terms of the GNU Lesser General Public 106b5975d6bSopenharmony_ci * License as published by the Free Software Foundation; either 107b5975d6bSopenharmony_ci * version 2.1 of the License, or (at your option) any later version. 108b5975d6bSopenharmony_ci * 109b5975d6bSopenharmony_ci * This library is distributed in the hope that it will be useful, 110b5975d6bSopenharmony_ci * but WITHOUT ANY WARRANTY; without even the implied warranty of 111b5975d6bSopenharmony_ci * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 112b5975d6bSopenharmony_ci * Lesser General Public License for more details. 113b5975d6bSopenharmony_ci * 114b5975d6bSopenharmony_ci * You should have received a copy of the GNU Lesser General Public 115b5975d6bSopenharmony_ci * License along with this library; if not, see <http://www.gnu.org/licenses/>. 116b5975d6bSopenharmony_ci " desc=""/> 117b5975d6bSopenharmony_ci </licensematcher> 118b5975d6bSopenharmony_ci </licensematcherlist> 119b5975d6bSopenharmony_ci <policylist> 120b5975d6bSopenharmony_ci <policy name="projectPolicy" desc=""> 121b5975d6bSopenharmony_ci <policyitem type="compatibility" name="LGPL" path=".*" rule="may" group="defaultGroup" desc="The files involved in compilation are the LGPL protocol.They are used in dynamic link mode."/> 122b5975d6bSopenharmony_ci </policy> 123b5975d6bSopenharmony_ci </policylist> 124b5975d6bSopenharmony_ci <filefilterlist> 125b5975d6bSopenharmony_ci <filefilter name="defaultPolicyFilter" desc="Filters for compatibility, license header policies"> 126b5975d6bSopenharmony_ci <filteritem type="filename" name="*.m4" desc="This file is distributed under the same license as the PACKAGE package."/> 127b5975d6bSopenharmony_ci <filteritem type="filename" name="*.po" desc="This file is distributed under the same license as the PACKAGE package."/> 128b5975d6bSopenharmony_ci <filteritem type="filename" name="*.doap" desc="This file is not used."/> 129b5975d6bSopenharmony_ci <filteritem type="filename" name="*.py" desc="This file is not used."/> 130b5975d6bSopenharmony_ci <filteritem type="filename" name="*.sh" desc="This file is not used."/> 131b5975d6bSopenharmony_ci <filteritem type="filename" name="*.xml" desc="This file is not used."/> 132b5975d6bSopenharmony_ci <filteritem type="filename" name="NEWS.pre-1-3" desc="This file is not used."/> 133b5975d6bSopenharmony_ci <filteritem type="filename" name="gen-unicode-tables.pl" desc="This file is not used."/> 134b5975d6bSopenharmony_ci <filteritem type="filepath" name="glib/pcre/pcre_chartables.c" desc="This file is not used"/> 135b5975d6bSopenharmony_ci <filteritem type="filepath" name="gobject/tests/closure-refcount.c" desc="This file is not used"/> 136b5975d6bSopenharmony_ci <filteritem type="filepath" name="gio/xdgmime/.*" desc="This file is not used"/> 137b5975d6bSopenharmony_ci <filteritem type="filepath" name="glib/valgrind.h" desc="This file is not used"/> 138b5975d6bSopenharmony_ci <filteritem type="filepath" name=".*COPYING" desc="License File"/> 139b5975d6bSopenharmony_ci <filteritem type="filepath" name="glib2.spec" desc="RPM description"/> 140b5975d6bSopenharmony_ci <filteritem type="filepath" name="README.OpenSource" desc="OpenSource README, not linked."/> 141b5975d6bSopenharmony_ci <filteritem type="filepath" name="glib-2.72.2.tar.xz" desc="OpenEuler:glib2 code. The files involved in compilation are the LGPL protocol.They are used in dynamic link mode."/> 142b5975d6bSopenharmony_ci </filefilter> 143b5975d6bSopenharmony_ci <filefilter name="binaryFileTypePolicyFilter" desc="Filters for binary file policies"> 144b5975d6bSopenharmony_ci <filteritem type="filename" name="Amsterdam-fat" desc="This file is distributed under the same license as the PACKAGE package."/> 145b5975d6bSopenharmony_ci <filteritem type="filename" name="Amsterdam-slim" desc="This file is distributed under the same license as the PACKAGE package."/> 146b5975d6bSopenharmony_ci <filteritem type="filename" name="*.m4" desc="This file is distributed under the same license as the PACKAGE package."/> 147b5975d6bSopenharmony_ci <filteritem type="filename" name="*.expected" desc="This file is distributed under the same license as the PACKAGE package."/> 148b5975d6bSopenharmony_ci <filteritem type="filename" name="*.sxd" desc="This file is distributed under the same license as the PACKAGE package."/> 149b5975d6bSopenharmony_ci <filteritem type="filename" name="*.desktop" desc="This file is distributed under the same license as the PACKAGE package."/> 150b5975d6bSopenharmony_ci <filteritem type="filename" name="*.jpg" desc="This file is distributed under the same license as the PACKAGE package."/> 151b5975d6bSopenharmony_ci <filteritem type="filename" name="*.gif" desc="This file is distributed under the same license as the PACKAGE package."/> 152b5975d6bSopenharmony_ci <filteritem type="filename" name="*.pem" desc="This file is distributed under the same license as the PACKAGE package."/> 153b5975d6bSopenharmony_ci <filteritem type="filename" name="*.png" desc="This file is distributed under the same license as the PACKAGE package."/> 154b5975d6bSopenharmony_ci <filteritem type="filename" name="*.gmarkup" desc="This file is distributed under the same license as the PACKAGE package."/> 155b5975d6bSopenharmony_ci <filteritem type="filename" name="*.exe" desc="This file is distributed under the same license as the PACKAGE package."/> 156b5975d6bSopenharmony_ci <filteritem type="filename" name="*.odg" desc="This file is distributed under the same license as the PACKAGE package."/> 157b5975d6bSopenharmony_ci <filteritem type="filepath" name="BUILG.gn" desc="openEuler:glib2 build gn file."/> 158b5975d6bSopenharmony_ci <filteritem type="filepath" name="glib2.spec" desc="openEuler:glib2 spec."/> 159b5975d6bSopenharmony_ci <filteritem type="filepath" name="patch.tar.gz" desc="openEuler:glib2 origin patch."/> 160b5975d6bSopenharmony_ci <filteritem type="filepath" name="backport-patch.log" desc="openEuler:glib2 origin patch files name."/> 161b5975d6bSopenharmony_ci <filteritem type="filepath" name="glib-2.72.2.tar.xz" desc="openEuler:glib2 code."/> 162b5975d6bSopenharmony_ci </filefilter> 163b5975d6bSopenharmony_ci </filefilterlist> 164b5975d6bSopenharmony_ci </oatconfig> 165b5975d6bSopenharmony_ci</configuration> 166b5975d6bSopenharmony_ci 167b5975d6bSopenharmony_ci 168