• 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
17<!-- This is the configuration file template for OpenHarmony OSS Audit Tool,
18     please copy it to your project root dir and modify it refer to OpenHarmony/tools_oat/README.
19-->
20
21<configuration>
22    <oatconfig>
23        <licensefile>www/license.html</licensefile>
24        <policylist>
25            <policy name="projectPolicy" desc="">
26                <policyitem type="compatibility" name="GPL" path="kconfig/.*" desc="kconfig is a build tool."/>
27                <policyitem type="compatibility" name="InvalidLicense" path="toys/posix/cpio.c" desc="same license as toybox."/>
28                <policyitem type="compatibility" name="InvalidLicense" path="www/license.html" desc="this is the license file."/>
29            </policy>
30        </policylist>
31        <filefilterlist>
32            <filefilter name="defaultFilter" desc="Files not to check">
33                <!--filteritem type="filename" name="*.uvwxyz" desc="Describe the reason for filtering scan results"/-->
34                <!--filteritem type="filepath" name="abcdefg/.*.uvwxyz" desc="Describe the reason for filtering scan results"/-->
35                <!--filteritem type="filepath" name="projectroot/[a-zA-Z0-9]{20,}.sh" desc="Temp files"/-->
36            </filefilter>
37            <filefilter name="defaultPolicyFilter" desc="Filters for compatibility,license header policies">
38                <!--filteritem type="filename" name="*.uvwxyz" desc="Describe the reason for filtering scan results"/-->
39                <!--filteritem type="filepath" name="abcdefg/.*.uvwxyz" desc="Describe the reason for filtering scan results"/-->
40                <!--filteritem type="filepath" name="projectroot/[a-zA-Z0-9]{20,}.sh" desc="Temp files"/-->
41            </filefilter>
42            <filefilter name="copyrightPolicyFilter" desc="Filters for copyright header policies">
43                <!--filteritem type="filename" name="*.uvwxyz" desc="Describe the reason for filtering scan results"/-->
44                <!--filteritem type="filepath" name="abcdefg/.*.uvwxyz" desc="Describe the reason for filtering scan results"/-->
45                <!--filteritem type="filepath" name="projectroot/[a-zA-Z0-9]{20,}.sh" desc="Temp files"/-->
46            </filefilter>
47            <filefilter name="licenseFileNamePolicyFilter" desc="Filters for LICENSE file policies">
48                <!--filteritem type="filename" name="*.uvwxyz" desc="Describe the reason for filtering scan results"/-->
49                <!--filteritem type="filepath" name="abcdefg/.*.uvwxyz" desc="Describe the reason for filtering scan results"/-->
50                <!--filteritem type="filepath" name="projectroot/[a-zA-Z0-9]{20,}.sh" desc="Temp files"/-->
51            </filefilter>
52            <filefilter name="readmeFileNamePolicyFilter" desc="Filters for README file policies">
53                <!--filteritem type="filename" name="*.uvwxyz" desc="Describe the reason for filtering scan results"/-->
54                <!--filteritem type="filepath" name="abcdefg/.*.uvwxyz" desc="Describe the reason for filtering scan results"/-->
55                <!--filteritem type="filepath" name="projectroot/[a-zA-Z0-9]{20,}.sh" desc="Temp files"/-->
56            </filefilter>
57            <filefilter name="readmeOpenSourcefileNamePolicyFilter" desc="Filters for README.OpenSource file policies">
58                <!--filteritem type="filename" name="*.uvwxyz" desc="Describe the reason for filtering scan results"/-->
59                <!--filteritem type="filepath" name="abcdefg/.*.uvwxyz" desc="Describe the reason for filtering scan results"/-->
60                <!--filteritem type="filepath" name="projectroot/[a-zA-Z0-9]{20,}.sh" desc="Temp files"/-->
61            </filefilter>
62            <filefilter name="binaryFileTypePolicyFilter" desc="Filters for binary file policies">
63                <!--filteritem type="filename" name="*.uvwxyz" desc="Describe the reason for filtering scan results"/-->
64                <filteritem type="filepath" name="tests/.*" desc="官方自带文件"/>
65                <filteritem type="filepath" name="www/.*" desc="官方自带文件"/>
66                <!--filteritem type="filepath" name="projectroot/[a-zA-Z0-9]{20,}.sh" desc="Temp files"/-->
67            </filefilter>
68
69        </filefilterlist>
70        <licensematcherlist>
71            <!--licensematcher name="uvwxyz License" desc="If the scanning result is InvalidLicense, you can define matching rules here. Note that quotation marks must be escaped.">
72                <licensetext name="
73                    uvwxyz license textA xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
74				 " desc=""/>
75                <licensetext name="
76                    uvwxyz license textB xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
77				 " desc=""/>
78            </licensematcher-->
79        </licensematcherlist>
80    </oatconfig>
81</configuration>
82