1d5d97309Sopenharmony_ci<?xml version="1.0" encoding="UTF-8"?>
2d5d97309Sopenharmony_ci<!-- Copyright (c) 2021 Huawei Device Co., Ltd.
3d5d97309Sopenharmony_ci
4d5d97309Sopenharmony_ci     Licensed under the Apache License, Version 2.0 (the "License");
5d5d97309Sopenharmony_ci     you may not use this file except in compliance with the License.
6d5d97309Sopenharmony_ci     You may obtain a copy of the License at
7d5d97309Sopenharmony_ci
8d5d97309Sopenharmony_ci          http://www.apache.org/licenses/LICENSE-2.0
9d5d97309Sopenharmony_ci
10d5d97309Sopenharmony_ci     Unless required by applicable law or agreed to in writing, software
11d5d97309Sopenharmony_ci     distributed under the License is distributed on an "AS IS" BASIS,
12d5d97309Sopenharmony_ci     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13d5d97309Sopenharmony_ci     See the License for the specific language governing permissions and
14d5d97309Sopenharmony_ci     limitations under the License.
15d5d97309Sopenharmony_ci-->
16d5d97309Sopenharmony_ci<!-- OAT(OSS Audit Tool) configuration guide:
17d5d97309Sopenharmony_ci    This is the configuration file template for OpenHarmony OSS Audit Tool, please copy it to your project root dir and modify it refer to OpenHarmony/tools_oat/README.
18d5d97309Sopenharmony_ci    All configurations in this file will be merged to OAT-Default.xml, if you have any questions or concerns, please create issue in OpenHarmony/tools_oat and @jalenchen or chenyaxun.
19d5d97309Sopenharmony_ci
20d5d97309Sopenharmony_ci    licensefile:
21d5d97309Sopenharmony_ci    1.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.
22d5d97309Sopenharmony_ci
23d5d97309Sopenharmony_ci    policylist:
24d5d97309Sopenharmony_ci    1. policy: If the OAT-Default.xml policies do not meet your requirements, please add policies here.
25d5d97309Sopenharmony_ci    2. policyitem: The fields type, name, path, desc is required, and the fields rule, group, filefilter is optional,the default value is:
26d5d97309Sopenharmony_ci    <policyitem type="" name="" path="" desc="" rule="may" group="defaultGroup" filefilter="defaultPolicyFilter"/>
27d5d97309Sopenharmony_ci    3. policyitem type:
28d5d97309Sopenharmony_ci        "compatibility" is used to check license compatibility in the specified path;
29d5d97309Sopenharmony_ci        "license" is used to check source license header in the specified path;
30d5d97309Sopenharmony_ci        "copyright" is used to check source copyright header in the specified path;
31d5d97309Sopenharmony_ci        "import" is used to check source dependency in the specified path, such as import ... ,include ...
32d5d97309Sopenharmony_ci        "filetype" is used to check file type in the specified path, supported file types: archive, binary
33d5d97309Sopenharmony_ci        "filename" is used to check whether the specified file exists in the specified path(projectroot means the root dir of the project), supported file names: LICENSE, README, README.OpenSource
34d5d97309Sopenharmony_ci    4. 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.
35d5d97309Sopenharmony_ci    5. 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.
36d5d97309Sopenharmony_ci    6. 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.
37d5d97309Sopenharmony_ci    7. policyitem filefilter: Used to bind filefilter which define filter rules.
38d5d97309Sopenharmony_ci    7. policyitem desc: Used to describe the reason of this policy item, committers will check this while merging the code.
39d5d97309Sopenharmony_ci    8. filefilter: Filter rules, the type filename is used to filter file name, the type filepath is used to filter file path.
40d5d97309Sopenharmony_ci
41d5d97309Sopenharmony_ci    Note:If the text contains special characters, please escape them according to the following rules:
42d5d97309Sopenharmony_ci    " == &gt;
43d5d97309Sopenharmony_ci    & == &gt;
44d5d97309Sopenharmony_ci    ' == &gt;
45d5d97309Sopenharmony_ci    < == &gt;
46d5d97309Sopenharmony_ci    > == &gt;
47d5d97309Sopenharmony_ci-->
48d5d97309Sopenharmony_ci
49d5d97309Sopenharmony_ci<configuration>
50d5d97309Sopenharmony_ci    <oatconfig>
51d5d97309Sopenharmony_ci        <filefilterlist>
52d5d97309Sopenharmony_ci            <filefilter name="binaryFileTypePolicyFilter" desc="Filters for binary file policies">
53d5d97309Sopenharmony_ci                <filteritem type="filepath" name="fonts/.*" desc="For license see LICENSE_Fonts."/>
54d5d97309Sopenharmony_ci                <filteritem type="filename" name="*.png" desc="自研的二进制图片"/>
55d5d97309Sopenharmony_ci            </filefilter>
56d5d97309Sopenharmony_ci        </filefilterlist>
57d5d97309Sopenharmony_ci        <licensefile>LICENSE_Fonts</licensefile>
58d5d97309Sopenharmony_ci        <policylist>
59d5d97309Sopenharmony_ci            <policy name="projectPolicy" desc="">
60d5d97309Sopenharmony_ci                <policyitem type="license" name="HarmonyOS Sans Fonts License Agreement" path=".*" desc="Font license "/>
61d5d97309Sopenharmony_ci            </policy>
62d5d97309Sopenharmony_ci        </policylist>
63d5d97309Sopenharmony_ci
64d5d97309Sopenharmony_ci        <licensematcherlist>
65d5d97309Sopenharmony_ci            <licensematcher name="HarmonyOS Sans Fonts License Agreement" desc="">
66d5d97309Sopenharmony_ci                <licensetext name="
67d5d97309Sopenharmony_ci                    HarmonyOS Sans Fonts License Agreement
68d5d97309Sopenharmony_ci                    THIS HARMONYOS SANS FONTS LICENSE AGREEMENT (&gt;AGREEMENT&gt;) IS A LEGAL AGREEMENT BETWEEN YOU (EITHER
69d5d97309Sopenharmony_ci                    A SINGLE INDIVIDUAL, OR SINGLE LEGAL ENTITY) AND HUAWEI DEVICE CO., LTD. (&gt; LICENSOR&gt;) FOR THE USE OF
70d5d97309Sopenharmony_ci                    THE HARMONYOS SANS FONTS ACCOMPANYING THIS AGREEMENT. BY DOWNLOADING, COPYING OR OTHERWISE USING HARMONYOS
71d5d97309Sopenharmony_ci                    SANS FONTS YOU INDICATE THAT YOU AGREE TO BE BOUND BY ALL OF THE TERMS OF THIS AGREEMENT. IF YOU DO NOT
72d5d97309Sopenharmony_ci                    AGREE TO THE TERMS OF THIS AGREEMENT, YOU MAY NOT DOWNLOAD, COPY OR OTHERWISE USE THE HARMONYOS SANS FONTS,
73d5d97309Sopenharmony_ci                    AND YOU SHALL PROMPTLY DESTROY AND DELETE ALL THE HARMONYOS SANS FONTS.
74d5d97309Sopenharmony_ci                 " desc=""/>
75d5d97309Sopenharmony_ci            </licensematcher>
76d5d97309Sopenharmony_ci        </licensematcherlist>
77d5d97309Sopenharmony_ci    </oatconfig>
78d5d97309Sopenharmony_ci</configuration>
79