1a8e1175bSopenharmony_ci<?xml version="1.0" encoding="UTF-8"?>
2a8e1175bSopenharmony_ci<!-- Copyright (c) 2021 Huawei Device Co., Ltd.
3a8e1175bSopenharmony_ci
4a8e1175bSopenharmony_ci     Licensed under the Apache License, Version 2.0 (the "License");
5a8e1175bSopenharmony_ci     you may not use this file except in compliance with the License.
6a8e1175bSopenharmony_ci     You may obtain a copy of the License at
7a8e1175bSopenharmony_ci
8a8e1175bSopenharmony_ci          http://www.apache.org/licenses/LICENSE-2.0
9a8e1175bSopenharmony_ci
10a8e1175bSopenharmony_ci     Unless required by applicable law or agreed to in writing, software
11a8e1175bSopenharmony_ci     distributed under the License is distributed on an "AS IS" BASIS,
12a8e1175bSopenharmony_ci     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13a8e1175bSopenharmony_ci     See the License for the specific language governing permissions and
14a8e1175bSopenharmony_ci     limitations under the License.
15a8e1175bSopenharmony_ci
16a8e1175bSopenharmony_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.
17a8e1175bSopenharmony_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.
18a8e1175bSopenharmony_ci
19a8e1175bSopenharmony_ci    licensefile:
20a8e1175bSopenharmony_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.
21a8e1175bSopenharmony_ci
22a8e1175bSopenharmony_ci    policylist:
23a8e1175bSopenharmony_ci    1. policy: If the OAT-Default.xml policies do not meet your requirements, please add policies here.
24a8e1175bSopenharmony_ci    2. policyitem: The fields type, name, path, desc is required, and the fields rule, group, filefilter is optional,the default value is:
25a8e1175bSopenharmony_ci    <policyitem type="" name="" path="" desc="" rule="may" group="defaultGroup" filefilter="defaultPolicyFilter"/>
26a8e1175bSopenharmony_ci    3. policyitem type:
27a8e1175bSopenharmony_ci        "compatibility" is used to check license compatibility in the specified path;
28a8e1175bSopenharmony_ci        "license" is used to check source license header in the specified path;
29a8e1175bSopenharmony_ci        "copyright" is used to check source copyright header in the specified path;
30a8e1175bSopenharmony_ci        "import" is used to check source dependency in the specified path, such as import ... ,include ...
31a8e1175bSopenharmony_ci        "filetype" is used to check file type in the specified path, supported file types: archive, binary
32a8e1175bSopenharmony_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
33a8e1175bSopenharmony_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.
34a8e1175bSopenharmony_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.
35a8e1175bSopenharmony_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.
36a8e1175bSopenharmony_ci    7. policyitem filefilter: Used to bind filefilter which define filter rules.
37a8e1175bSopenharmony_ci    7. policyitem desc: Used to describe the reason of this policy item, committers will check this while merging the code.
38a8e1175bSopenharmony_ci    8. filefilter: Filter rules, the type filename is used to filter file name, the type filepath is used to filter file path.
39a8e1175bSopenharmony_ci
40a8e1175bSopenharmony_ci    Note:If the text contains special characters, please escape them according to the following rules:
41a8e1175bSopenharmony_ci    " == &gt;
42a8e1175bSopenharmony_ci    & == &gt;
43a8e1175bSopenharmony_ci    ' == &gt;
44a8e1175bSopenharmony_ci    < == &gt;
45a8e1175bSopenharmony_ci    > == &gt;
46a8e1175bSopenharmony_ci-->
47a8e1175bSopenharmony_ci
48a8e1175bSopenharmony_ci<configuration>
49a8e1175bSopenharmony_ci    <oatconfig>
50a8e1175bSopenharmony_ci        <licensefile>LICENSE</licensefile>
51a8e1175bSopenharmony_ci        <filefilterlist>
52a8e1175bSopenharmony_ci            <filefilter name="defaultFilter" desc="Files not to check">
53a8e1175bSopenharmony_ci                <filteritem type="filename" name="*.doxyfile" desc="doxy file, not license statement."/>
54a8e1175bSopenharmony_ci				<filteritem type="filename" name="*.pem" desc="Test file, not license statement."/>
55a8e1175bSopenharmony_ci				<filteritem type="filename" name="*.der" desc="Test file, not license statement."/>
56a8e1175bSopenharmony_ci				<filteritem type="filename" name="*.fmt" desc="Test file, not license statement."/>
57a8e1175bSopenharmony_ci				<filteritem type="filename" name="hash_file*" desc="Test file, not license statement."/>
58a8e1175bSopenharmony_ci				<filteritem type="filename" name="test_suite_bignum_random.function" desc="Test file, not license statement."/>
59a8e1175bSopenharmony_ci            </filefilter>
60a8e1175bSopenharmony_ci        </filefilterlist>
61a8e1175bSopenharmony_ci    </oatconfig>
62a8e1175bSopenharmony_ci</configuration>
63