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