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 </policy> 29 </policylist> 30 <filefilterlist> 31 <filefilter name="defaultFilter" desc="Files not to check"> 32 <filteritem type="filename" name="*.iml|*.json|*.txt|*.bin|*.tflite|*.rst|*.ms|*.f32|*.png|*.sh|*.mindir|*.dat|*.xcuserstate|OWNERS|msobfuscator|libmsdeobfuscator-lite.*" desc="desc files"/> 33 <filteritem type="filename" name="*.gitmodules|NOTICE|*.proto|Third_Party_Open_Source_Software_Notice|*.fbs" desc="desc files"/> 34 <filteritem type="filepath" name="mindspore/ccsrc/minddata/.*" desc="test files"/> 35 <filteritem type="filepath" name="tests/.*" desc="test files"/> 36 <filteritem type="filepath" name="mindspore/lite/test/.*" desc="test files"/> 37 <filteritem type="filepath" name="mindspore/lite/examples/.*" desc="test files"/> 38 <filteritem type="filepath" name="mindspore/lite/java/.*" desc="test files"/> 39 <filteritem type="filepath" name="mindspore/lite/schema/.*" desc="test files"/> 40 <filteritem type="filepath" name="scripts/.*" desc="scripts files"/> 41 <filteritem type="filepath" name="third_party/.*" desc="third party files"/> 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="defaultPolicyFilter" desc="Filters for compatibility,license 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="copyrightPolicyFilter" desc="Filters for copyright header 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="licenseFileNamePolicyFilter" desc="Filters for LICENSE 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="readmeFileNamePolicyFilter" desc="Filters for README 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="readmeOpenSourcefileNamePolicyFilter" desc="Filters for README.OpenSource file policies"> 67 <!--filteritem type="filename" name="*.uvwxyz" desc="Describe the reason for filtering scan results"/--> 68 <!--filteritem type="filepath" name="abcdefg/.*.uvwxyz" desc="Describe the reason for filtering scan results"/--> 69 <!--filteritem type="filepath" name="projectroot/[a-zA-Z0-9]{20,}.sh" desc="Temp files"/--> 70 </filefilter> 71 <filefilter name="binaryFileTypePolicyFilter" desc="Filters for binary file policies"> 72 <!--filteritem type="filename" name="*.uvwxyz" desc="Describe the reason for filtering scan results"/--> 73 <!--filteritem type="filepath" name="abcdefg/.*.uvwxyz" desc="Describe the reason for filtering scan results"/--> 74 <!--filteritem type="filepath" name="projectroot/[a-zA-Z0-9]{20,}.sh" desc="Temp files"/--> 75 </filefilter> 76 77 </filefilterlist> 78 <licensematcherlist> 79 <!--licensematcher name="uvwxyz License" desc="If the scanning result is InvalidLicense, you can define matching rules here. Note that quotation marks must be escaped."> 80 <licensetext name=" 81 uvwxyz license textA xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 82 " desc=""/> 83 <licensetext name=" 84 uvwxyz license textB xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 85 " desc=""/> 86 </licensematcher--> 87 </licensematcherlist> 88 </oatconfig> 89</configuration> 90