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>LICENSE</licensefile> 23 <policylist> 24 <policy name="projectPolicy" desc=""> 25 <policyitem type="copyright" name="Shenzhen Kaihong Digital Industry Development Co., Ltd." path=".*" rule="may" group="defaultGroup" filefilter="copyrightPolicyFilter" desc="Developed By Kaihong"/> 26 <policyitem type="copyright" name="Broadcom" path=".*" rule="may" group="defaultGroup" filefilter="copyrightPolicyFilter" desc="Developed By Broadcom"/> 27 <policyitem type="license" name="EndUserLicenseAgreement" path=".*" desc="Intel code"/> 28 <!--policyitem type="compatibility" name="GPL-2.0+" path="abc/.*" desc="Process that runs independently, invoked by the X process."/--> 29 <!--policyitem type="license" name="LGPL" path="abc/.*" desc="Dynamically linked by module X"/--> 30 <!--policyitem type="copyright" name="xxx" path="abc/.*" rule="may" group="defaultGroup" filefilter="copyrightPolicyFilter" desc="Developed by X Company"/--> 31 </policy> 32 </policylist> 33 <filefilterlist> 34 <filefilter name="defaultFilter" desc="Files not to check"> 35 <filteritem type="filename" name="hvigorfile.js" desc="config file"/> 36 <filteritem type="filename" name="OpenHarmonyTestRunner.ts" desc="config file"/> 37 <!--filteritem type="filename" name="*.uvwxyz" desc="Describe the reason for filtering scan results"/--> 38 <!--filteritem type="filepath" name="abcdefg/.*.uvwxyz" desc="Describe the reason for filtering scan results"/--> 39 <!--filteritem type="filepath" name="projectroot/[a-zA-Z0-9]{20,}.sh" desc="Temp files"/--> 40 </filefilter> 41 <filefilter name="defaultPolicyFilter" desc="Filters for compatibility,license header policies"> 42 <!--filteritem type="filename" name="*.uvwxyz" desc="Describe the reason for filtering scan results"/--> 43 <!--filteritem type="filepath" name="abcdefg/.*.uvwxyz" desc="Describe the reason for filtering scan results"/--> 44 <!--filteritem type="filepath" name="projectroot/[a-zA-Z0-9]{20,}.sh" desc="Temp files"/--> 45 </filefilter> 46 <filefilter name="copyrightPolicyFilter" desc="Filters for copyright header policies"> 47 <!--filteritem type="filename" name="*.uvwxyz" desc="Describe the reason for filtering scan results"/--> 48 <!--filteritem type="filepath" name="abcdefg/.*.uvwxyz" desc="Describe the reason for filtering scan results"/--> 49 <!--filteritem type="filepath" name="projectroot/[a-zA-Z0-9]{20,}.sh" desc="Temp files"/--> 50 </filefilter> 51 <filefilter name="licenseFileNamePolicyFilter" desc="Filters for LICENSE file policies"> 52 <!--filteritem type="filename" name="*.uvwxyz" desc="Describe the reason for filtering scan results"/--> 53 <!--filteritem type="filepath" name="abcdefg/.*.uvwxyz" desc="Describe the reason for filtering scan results"/--> 54 <!--filteritem type="filepath" name="projectroot/[a-zA-Z0-9]{20,}.sh" desc="Temp files"/--> 55 </filefilter> 56 <filefilter name="readmeFileNamePolicyFilter" desc="Filters for README file policies"> 57 <!--filteritem type="filename" name="*.uvwxyz" desc="Describe the reason for filtering scan results"/--> 58 <!--filteritem type="filepath" name="abcdefg/.*.uvwxyz" desc="Describe the reason for filtering scan results"/--> 59 <!--filteritem type="filepath" name="projectroot/[a-zA-Z0-9]{20,}.sh" desc="Temp files"/--> 60 </filefilter> 61 <filefilter name="readmeOpenSourcefileNamePolicyFilter" desc="Filters for README.OpenSource file policies"> 62 <!--filteritem type="filename" name="*.uvwxyz" desc="Describe the reason for filtering scan results"/--> 63 <!--filteritem type="filepath" name="abcdefg/.*.uvwxyz" desc="Describe the reason for filtering scan results"/--> 64 <!--filteritem type="filepath" name="projectroot/[a-zA-Z0-9]{20,}.sh" desc="Temp files"/--> 65 </filefilter> 66 <filefilter name="binaryFileTypePolicyFilter" desc="Filters for binary file policies"> 67 <filteritem type="filename" name="*.png|*.jpg" desc="png and jpg file"/> 68 <!--filteritem type="filename" name="*.uvwxyz" desc="Describe the reason for filtering scan results"/--> 69 <!--filteritem type="filepath" name="abcdefg/.*.uvwxyz" desc="Describe the reason for filtering scan results"/--> 70 <!--filteritem type="filepath" name="projectroot/[a-zA-Z0-9]{20,}.sh" desc="Temp files"/--> 71 </filefilter> 72 73 </filefilterlist> 74 <licensematcherlist> 75 <!--licensematcher name="uvwxyz License" desc="If the scanning result is InvalidLicense, you can define matching rules here. Note that quotation marks must be escaped."> 76 <licensetext name=" 77 uvwxyz license textA xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 78 " desc=""/> 79 <licensetext name=" 80 uvwxyz license textB xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 81 " desc=""/> 82 </licensematcher--> 83 </licensematcherlist> 84 </oatconfig> 85</configuration> 86