1141cc406Sopenharmony_ci<?xml version="1.0" encoding="UTF-8"?> 2141cc406Sopenharmony_ci<!-- Copyright (c) 2021 Huawei Device Co., Ltd. 3141cc406Sopenharmony_ci 4141cc406Sopenharmony_ci Licensed under the Apache License, Version 2.0 (the "License"); 5141cc406Sopenharmony_ci you may not use this file except in compliance with the License. 6141cc406Sopenharmony_ci You may obtain a copy of the License at 7141cc406Sopenharmony_ci 8141cc406Sopenharmony_ci http://www.apache.org/licenses/LICENSE-2.0 9141cc406Sopenharmony_ci 10141cc406Sopenharmony_ci Unless required by applicable law or agreed to in writing, software 11141cc406Sopenharmony_ci distributed under the License is distributed on an "AS IS" BASIS, 12141cc406Sopenharmony_ci WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13141cc406Sopenharmony_ci See the License for the specific language governing permissions and 14141cc406Sopenharmony_ci limitations under the License. 15141cc406Sopenharmony_ci 16141cc406Sopenharmony_ci Notes: 17141cc406Sopenharmony_ci This is project config file for OpenHarmony OSS Audit Tool, if you have any questions or concerns, please email chenyaxun. 18141cc406Sopenharmony_ci--> 19141cc406Sopenharmony_ci<!-- OAT(OSS Audit Tool) configuration guide: 20141cc406Sopenharmony_cibasedir: Root dir, the basedir + project path is the real source file location. 21141cc406Sopenharmony_cilicensefile: 22141cc406Sopenharmony_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. 23141cc406Sopenharmony_ci 24141cc406Sopenharmony_citasklist(only for batch mode): 25141cc406Sopenharmony_ci1. task: Define oat check thread, each task will start a new thread. 26141cc406Sopenharmony_ci2. task name: Only an name, no practical effect. 27141cc406Sopenharmony_ci3. task policy: Default policy for projects under this task, this field is required and the specified policy must defined in policylist. 28141cc406Sopenharmony_ci4. task filter: Default filefilter for projects under this task, this field is required and the specified filefilter must defined in filefilterlist. 29141cc406Sopenharmony_ci5. task project: Projects to be checked, the path field define the source root dir of the project. 30141cc406Sopenharmony_ci 31141cc406Sopenharmony_ci 32141cc406Sopenharmony_cipolicyList: 33141cc406Sopenharmony_ci1. policy: All policyitems will be merged to default OAT.xml rules, the name of policy doesn't affect OAT check process. 34141cc406Sopenharmony_ci2. policyitem: The fields type, name, path, desc is required, and the fields rule, group, filefilter is optional,the default value is: 35141cc406Sopenharmony_ci<policyitem type="" name="" path="" desc="" rule="may" group="defaultGroup" filefilter="defaultPolicyFilter"/> 36141cc406Sopenharmony_ci3. policyitem type: 37141cc406Sopenharmony_ci "compatibility" is used to check license compatibility in the specified path; 38141cc406Sopenharmony_ci "license" is used to check source license header in the specified path; 39141cc406Sopenharmony_ci "copyright" is used to check source copyright header in the specified path; 40141cc406Sopenharmony_ci "import" is used to check source dependency in the specified path, such as import ... ,include ... 41141cc406Sopenharmony_ci "filetype" is used to check file type in the specified path, supported file types: archive, binary 42141cc406Sopenharmony_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 43141cc406Sopenharmony_ci 44141cc406Sopenharmony_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. 45141cc406Sopenharmony_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. 46141cc406Sopenharmony_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. 47141cc406Sopenharmony_ci7. policyitem filefilter: Used to bind filefilter which define filter rules. 48141cc406Sopenharmony_ci8. filefilter: Filter rules, the type filename is used to filter file name, the type filepath is used to filter file path. 49141cc406Sopenharmony_ci 50141cc406Sopenharmony_ciNote:If the text contains special characters, please escape them according to the following rules: 51141cc406Sopenharmony_ci" == > 52141cc406Sopenharmony_ci& == > 53141cc406Sopenharmony_ci' == > 54141cc406Sopenharmony_ci< == > 55141cc406Sopenharmony_ci> == > 56141cc406Sopenharmony_ci--> 57141cc406Sopenharmony_ci 58141cc406Sopenharmony_ci<configuration> 59141cc406Sopenharmony_ci <oatconfig> 60141cc406Sopenharmony_ci <licensefile>LICENSE</licensefile> 61141cc406Sopenharmony_ci <policylist> 62141cc406Sopenharmony_ci <policy name="projectPolicy" desc=""> 63141cc406Sopenharmony_ci <policyitem type="compatibility" name="GPL-2.0+" path=".*" desc="实际为GPL 2.0 with SANE Exception"/> 64141cc406Sopenharmony_ci <policyitem type="compatibility" name="GPLStyleLicense" path=".*" desc="实际为GPL 2.0 with SANE Exception"/> 65141cc406Sopenharmony_ci <policyitem type="compatibility" name="JPEG License" path=".*" desc="JPEG"/> 66141cc406Sopenharmony_ci <policyitem type="compatibility" name="public domain" path=".*" desc="public domain"/> 67141cc406Sopenharmony_ci </policy> 68141cc406Sopenharmony_ci </policylist> 69141cc406Sopenharmony_ci <filefilterlist> 70141cc406Sopenharmony_ci <filefilter name="defaultPolicyFilter" desc="Filters for compatibility, license header policies"> 71141cc406Sopenharmony_ci <filteritem type="filename" name="git-version-gen" desc="git version check script"/> 72141cc406Sopenharmony_ci <filteritem type="filename" name="README*|*.po|*.am|*.sh|INSTALL*|*change*|*.desc|*.ref|Makevars|*.man" desc="README"/> 73141cc406Sopenharmony_ci <filteritem type="filepath" name="backend/epson2-cct.c" desc="本文件不使用"/> 74141cc406Sopenharmony_ci <filteritem type="filepath" name="lib/snprintf.c" desc="本文件不使用"/> 75141cc406Sopenharmony_ci <filteritem type="filepath" name="tools/hotplug-ng/libsane.hotplug" desc="插件"/> 76141cc406Sopenharmony_ci </filefilter> 77141cc406Sopenharmony_ci <filefilter name="binaryFileTypePolicyFilter" desc="Filters for compatibility, license header policies"> 78141cc406Sopenharmony_ci <filteritem type="filename" name="*.jpg" desc="jpg build files, not used"/> 79141cc406Sopenharmony_ci <filteritem type="filename" name="*.png" desc="png build files, not used"/> 80141cc406Sopenharmony_ci </filefilter> 81141cc406Sopenharmony_ci </filefilterlist> 82141cc406Sopenharmony_ci <licensematcherlist> 83141cc406Sopenharmony_ci <licensematcher name="GPL 2.0 with SANE Exception" desc="SANE Exception description"> 84141cc406Sopenharmony_ci <licensetext name=" 85141cc406Sopenharmony_ci This program is free software; you can redistribute it and/or 86141cc406Sopenharmony_ci modify it under the terms of the GNU General Public License as 87141cc406Sopenharmony_ci published by the Free Software Foundation; either version 2 of the 88141cc406Sopenharmony_ci License, or (at your option) any later version. 89141cc406Sopenharmony_ci 90141cc406Sopenharmony_ci This program is distributed in the hope that it will be useful, but 91141cc406Sopenharmony_ci WITHOUT ANY WARRANTY; without even the implied warranty of 92141cc406Sopenharmony_ci MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 93141cc406Sopenharmony_ci General Public License for more details. 94141cc406Sopenharmony_ci 95141cc406Sopenharmony_ci You should have received a copy of the GNU General Public License 96141cc406Sopenharmony_ci along with this program. If not, see <https://www.gnu.org/licenses/>. 97141cc406Sopenharmony_ci 98141cc406Sopenharmony_ci As a special exception, the authors of SANE give permission for 99141cc406Sopenharmony_ci additional uses of the libraries contained in this release of SANE. 100141cc406Sopenharmony_ci 101141cc406Sopenharmony_ci The exception is that, if you link a SANE library with other files 102141cc406Sopenharmony_ci to produce an executable, this does not by itself cause the 103141cc406Sopenharmony_ci resulting executable to be covered by the GNU General Public 104141cc406Sopenharmony_ci License. Your use of that executable is in no way restricted on 105141cc406Sopenharmony_ci account of linking the SANE library code into it. 106141cc406Sopenharmony_ci 107141cc406Sopenharmony_ci This exception does not, however, invalidate any other reasons why 108141cc406Sopenharmony_ci the executable file might be covered by the GNU General Public 109141cc406Sopenharmony_ci License. 110141cc406Sopenharmony_ci 111141cc406Sopenharmony_ci If you submit changes to SANE to the maintainers to be included in 112141cc406Sopenharmony_ci a subsequent release, you agree by submitting the changes that 113141cc406Sopenharmony_ci those changes may be distributed with this exception intact. 114141cc406Sopenharmony_ci 115141cc406Sopenharmony_ci If you write modifications of your own for SANE, it is your choice 116141cc406Sopenharmony_ci whether to permit this exception to apply to your modifications. 117141cc406Sopenharmony_ci If you do not wish that, delete this exception notice. 118141cc406Sopenharmony_ci " desc="SANE exception description"/> 119141cc406Sopenharmony_ci </licensematcher> 120141cc406Sopenharmony_ci <licensematcher name="JPEG License" desc="JPEG description"> 121141cc406Sopenharmony_ci <licensetext name=" 122141cc406Sopenharmony_ci This file is part of the Independent JPEG Group's software 123141cc406Sopenharmony_ci " desc=""/> 124141cc406Sopenharmony_ci </licensematcher> 125141cc406Sopenharmony_ci <licensematcher name="public domain" desc="JPEG description"> 126141cc406Sopenharmony_ci <licensetext name=" 127141cc406Sopenharmony_ci This file is in the public domain. You may use and modify it as 128141cc406Sopenharmony_ci you see fit, as long as this copyright message is included and 129141cc406Sopenharmony_ci that there is an indication as to what modifications have been 130141cc406Sopenharmony_ci made (if any). 131141cc406Sopenharmony_ci " desc=""/> 132141cc406Sopenharmony_ci </licensematcher> 133141cc406Sopenharmony_ci </licensematcherlist> 134141cc406Sopenharmony_ci </oatconfig> 135141cc406Sopenharmony_ci</configuration> 136