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="compatibility" name="GPL-2.0+" path="abc/.*" desc="Process that runs independently, invoked by the X process."/--> 26 <!--policyitem type="license" name="LGPL" path="abc/.*" desc="Dynamically linked by module X"/--> 27 <!--policyitem type="copyright" name="xxx" path="abc/.*" rule="may" group="defaultGroup" filefilter="copyrightPolicyFilter" desc="Developed by X Company"/--> 28 <policyitem type="license" name="CC-BY-4.0" path=".*" rule="may" group="defaultGroup" filefilter="defaultPolicyFilter" desc="License for documents"/> 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 <filteritem type="filepath" name="en/contribute/.*" desc="already checked"/> 42 </filefilter> 43 <filefilter name="copyrightPolicyFilter" desc="Filters for copyright 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 <filteritem type="filepath" name="en/contribute/.*" desc="already checked"/> 48 </filefilter> 49 <filefilter name="licenseFileNamePolicyFilter" desc="Filters for LICENSE file policies"> 50 <!--filteritem type="filename" name="*.uvwxyz" desc="Describe the reason for filtering scan results"/--> 51 <!--filteritem type="filepath" name="abcdefg/.*.uvwxyz" desc="Describe the reason for filtering scan results"/--> 52 <!--filteritem type="filepath" name="projectroot/[a-zA-Z0-9]{20,}.sh" desc="Temp files"/--> 53 <filteritem type="filename" name="license-and-copyright-specifications.md" desc="already checked"/> 54 </filefilter> 55 <filefilter name="readmeFileNamePolicyFilter" desc="Filters for README file policies"> 56 <!--filteritem type="filename" name="*.uvwxyz" desc="Describe the reason for filtering scan results"/--> 57 <!--filteritem type="filepath" name="abcdefg/.*.uvwxyz" desc="Describe the reason for filtering scan results"/--> 58 <!--filteritem type="filepath" name="projectroot/[a-zA-Z0-9]{20,}.sh" desc="Temp files"/--> 59 </filefilter> 60 <filefilter name="readmeOpenSourcefileNamePolicyFilter" desc="Filters for README.OpenSource file policies"> 61 <!--filteritem type="filename" name="*.uvwxyz" desc="Describe the reason for filtering scan results"/--> 62 <!--filteritem type="filepath" name="abcdefg/.*.uvwxyz" desc="Describe the reason for filtering scan results"/--> 63 <!--filteritem type="filepath" name="projectroot/[a-zA-Z0-9]{20,}.sh" desc="Temp files"/--> 64 </filefilter> 65 <filefilter name="binaryFileTypePolicyFilter" desc="Filters for binary file policies"> 66 <!--filteritem type="filename" name="*.uvwxyz" desc="Describe the reason for filtering scan results"/--> 67 <!--filteritem type="filepath" name="abcdefg/.*.uvwxyz" desc="Describe the reason for filtering scan results"/--> 68 <!--filteritem type="filepath" name="projectroot/[a-zA-Z0-9]{20,}.sh" desc="Temp files"/--> 69 <filteritem type="filename" name="*.jpg|*.png|*.gif|*.pdf|*.xlsm|*.zip" desc="already checked"/> 70 </filefilter> 71 72 </filefilterlist> 73 <licensematcherlist> 74 <!--licensematcher name="uvwxyz License" desc="If the scanning result is InvalidLicense, you can define matching rules here. Note that quotation marks must be escaped."> 75 <licensetext name=" 76 uvwxyz license textA xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 77 " desc=""/> 78 <licensetext name=" 79 uvwxyz license textB xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 80 " desc=""/> 81 </licensematcher--> 82 </licensematcherlist> 83 </oatconfig> 84</configuration> 85