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=".travis-libcxx-setup.sh|BUILD.bazel" desc="files are used for build by cmake, do not use them"/> 33 <filteritem type="filename" name="CONTRIBUTORS" desc="contributors of opensource product, do not use it"/> 34 <filteritem type="filename" name="WORKSPACE" desc="This file can not declare copyright"/> 35 <filteritem type="filename" name="AUTHORS" desc="This file can not declare copyright"/> 36 <filteritem type="filepath" name="src/.*" desc="sources files"/> 37 <filteritem type="filepath" name="test/.*" desc="test files"/> 38 <filteritem type="filepath" name="cmake/.*" desc="sources files"/> 39 <filteritem type="filepath" name="bindings/python/.*" desc="This file can not declare copyright"/> 40 <filteritem type="filepath" name="bindings/python/google_benchmark/.*" desc="This file can not declare copyright"/> 41 <filteritem type="filepath" name="include/benchmark/.*" desc="This file can not declare copyright"/> 42 <filteritem type="filename" name="test/BUILD" desc="This file can not declare copyright"/> 43 <filteritem type="filename" name="bindings/python/BUILD" desc="This file can not declare copyright"/> 44 <filteritem type="filename" name="bindings/python/google_benchamrk/BUILD" desc="This file can not declare copyright"/> 45 </filefilter> 46 <filefilter name="defaultPolicyFilter" desc="Filters for compatibility,license header policies"> 47 </filefilter> 48 <filefilter name="copyrightPolicyFilter" desc="Filters for copyright header policies"> 49 </filefilter> 50 <filefilter name="licenseFileNamePolicyFilter" desc="Filters for LICENSE file policies"> 51 </filefilter> 52 <filefilter name="readmeFileNamePolicyFilter" desc="Filters for README file policies"> 53 </filefilter> 54 <filefilter name="readmeOpenSourcefileNamePolicyFilter" desc="Filters for README.OpenSource file policies"> 55 </filefilter> 56 <filefilter name="binaryFileTypePolicyFilter" desc="Filters for binary file policies"> 57 </filefilter> 58 59 </filefilterlist> 60 <licensematcherlist> 61 <!--licensematcher name="uvwxyz License" desc="If the scanning result is InvalidLicense, you can define matching rules here. Note that quotation marks must be escaped."> 62 <licensetext name=" 63 uvwxyz license textA xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 64 " desc=""/> 65 <licensetext name=" 66 uvwxyz license textB xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 67 " desc=""/> 68 </licensematcher--> 69 </licensematcherlist> 70 </oatconfig> 71</configuration> 72