• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="UTF-8"?>
2<!-- Copyright (c) 2021 Huawei Device Co., Ltd.
3
4     Licensed under the Apache License, Version 2.0 (the "License");
5     you may not use this file except in compliance with the License.
6     You may obtain a copy of the License at
7
8          http://www.apache.org/licenses/LICENSE-2.0
9
10     Unless required by applicable law or agreed to in writing, software
11     distributed under the License is distributed on an "AS IS" BASIS,
12     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13     See the License for the specific language governing permissions and
14     limitations under the License.
15
16    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.
17
18-->
19
20<configuration>
21    <oatconfig>
22        <licensefile></licensefile>
23        <policylist>
24            <policy name="projectPolicy" desc="">
25                <policyitem type="license" name="Apache-2.0" path=".*" rule="may" group="defaultGroup" filefilter="defaultPolicyFilter" desc=""/>
26                <policyitem type="copyright" name="Huawei Device Co., Ltd." path=".*" rule="may" group="defaultGroup" filefilter="copyrightPolicyFilter" desc=""/>
27                <policyitem type="filetype" name="!binary" path=".*" rule="must" group="defaultGroup" filefilter="binaryFileTypePolicyFilter" desc=""/>
28            </policy>
29        </policylist>
30
31        <filefilterlist>
32            <filefilter name="binaryFileTypePolicyFilter" desc="Filters for binary file policies">
33                <filteritem type="filepath" name="entry/src/main/resources/base/media/.*.png" desc="self developed image"/>
34                <filteritem type="filepath" name="entry/src/main/resources/base/media/.*.webp" desc="self developed image"/>
35                <filteritem type="filepath" name="entry/src/ohosTest/resources/base/media/.*.png" desc="self developed image"/>
36            </filefilter>
37
38
39
40            <filefilter name="copyrightPolicyFilter" desc="Filters for copyright header policies">
41                <filteritem type="filename" name="README|README_zh|hvigorw|.*.bat|.*.log|.*.json5|.*.json" desc=""/>
42            </filefilter>
43            <filefilter name="defaultPolicyFilter" desc="Filters for LICENSE file policies">
44                <filteritem type="filename" name="README|README_zh|hvigorw|*.bat|*.log|*.json5|*.json" desc="json file"/>
45            </filefilter>
46            <filefilter name="defaultFilter" desc="files not to check">
47                <filteritem type="filename" name="hvigor-wrapper.js" desc="hvigor配置文件,DevEco Studio自动生成"/>
48                <filteritem type="filename" name="hvigorfile.js" desc="hvigor配置文件,DevEco Studio自动生成"/>
49            </filefilter>
50        </filefilterlist>
51    </oatconfig>
52</configuration>
53