100aff185Sopenharmony_ci<?xml version="1.0" encoding="UTF-8"?> 200aff185Sopenharmony_ci<!-- Copyright (c) 2021 Huawei Device Co., Ltd. 300aff185Sopenharmony_ci 400aff185Sopenharmony_ci Licensed under the Apache License, Version 2.0 (the "License"); 500aff185Sopenharmony_ci you may not use this file except in compliance with the License. 600aff185Sopenharmony_ci You may obtain a copy of the License at 700aff185Sopenharmony_ci 800aff185Sopenharmony_ci http://www.apache.org/licenses/LICENSE-2.0 900aff185Sopenharmony_ci 1000aff185Sopenharmony_ci Unless required by applicable law or agreed to in writing, software 1100aff185Sopenharmony_ci distributed under the License is distributed on an "AS IS" BASIS, 1200aff185Sopenharmony_ci WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1300aff185Sopenharmony_ci See the License for the specific language governing permissions and 1400aff185Sopenharmony_ci limitations under the License. 1500aff185Sopenharmony_ci 1600aff185Sopenharmony_ci 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. 1700aff185Sopenharmony_ci All configurations in this file will be merged to OAT-Default.xml, if you have any questions or concerns, please create issue in OpenHarmony/tools_oat and @jalenchen or chenyaxun. 1800aff185Sopenharmony_ci 1900aff185Sopenharmony_ci licensefile: 2000aff185Sopenharmony_ci 1.If the project don't have "LICENSE" in root dir, please define all the license files in this project in , OAT will check license files according to this rule. 2100aff185Sopenharmony_ci 2200aff185Sopenharmony_ci policylist: 2300aff185Sopenharmony_ci 1. policy: If the OAT-Default.xml policies do not meet your requirements, please add policies here. 2400aff185Sopenharmony_ci 2. policyitem: The fields type, name, path, desc is required, and the fields rule, group, filefilter is optional,the default value is: 2500aff185Sopenharmony_ci <policyitem type="" name="" path="" desc="" rule="may" group="defaultGroup" filefilter="defaultPolicyFilter"/> 2600aff185Sopenharmony_ci 3. policyitem type: 2700aff185Sopenharmony_ci "compatibility" is used to check license compatibility in the specified path; 2800aff185Sopenharmony_ci "license" is used to check source license header in the specified path; 2900aff185Sopenharmony_ci "copyright" is used to check source copyright header in the specified path; 3000aff185Sopenharmony_ci "import" is used to check source dependency in the specified path, such as import ... ,include ... 3100aff185Sopenharmony_ci "filetype" is used to check file type in the specified path, supported file types: archive, binary 3200aff185Sopenharmony_ci "filename" is used to check whether the specified file exists in the specified path(projectroot means the root dir of the project), supported file names: LICENSE, README, README.OpenSource 3300aff185Sopenharmony_ci 4. policyitem name: This field is used for define the license, copyright, "*" means match all, the "!" prefix means could not match this value. For example, "!GPL" means can not use GPL license. 3400aff185Sopenharmony_ci 5. policyitem path: This field is used for define the source file scope to apply this policyitem, the "!" prefix means exclude the files. For example, "!.*/lib/.*" means files in lib dir will be exclude while process this policyitem. 3500aff185Sopenharmony_ci 6. policyitem rule and group: These two fields are used together to merge policy results. "may" policyitems in the same group means any one in this group passed, the result will be passed. 3600aff185Sopenharmony_ci 7. policyitem filefilter: Used to bind filefilter which define filter rules. 3700aff185Sopenharmony_ci 7. policyitem desc: Used to describe the reason of this policy item, committers will check this while merging the code. 3800aff185Sopenharmony_ci 8. filefilter: Filter rules, the type filename is used to filter file name, the type filepath is used to filter file path. 3900aff185Sopenharmony_ci 4000aff185Sopenharmony_ci Note:If the text contains special characters, please escape them according to the following rules: 4100aff185Sopenharmony_ci " == > 4200aff185Sopenharmony_ci & == > 4300aff185Sopenharmony_ci ' == > 4400aff185Sopenharmony_ci < == > 4500aff185Sopenharmony_ci > == > 4600aff185Sopenharmony_ci--> 4700aff185Sopenharmony_ci 4800aff185Sopenharmony_ci<configuration> 4900aff185Sopenharmony_ci <oatconfig> 5000aff185Sopenharmony_ci <filefilterlist> 5100aff185Sopenharmony_ci <filefilter name="binaryFileTypePolicyFilter" desc="Filters for binary file policies"> 5200aff185Sopenharmony_ci <filteritem type="filepath" name="AppScope/resources/base/media/.*.png" desc="self developed image"/> 5300aff185Sopenharmony_ci <filteritem type="filepath" name="common/src/main/resources/.*.png" desc="self developed image"/> 5400aff185Sopenharmony_ci <filteritem type="filepath" name="common/src/main/resources/.*.svg" desc="self developed image"/> 5500aff185Sopenharmony_ci <filteritem type="filepath" name="feature/browser/src/resources/base/media/.*.svg" desc="self developed image"/> 5600aff185Sopenharmony_ci <filteritem type="filepath" name="product/pad/src/.*.png" desc="self developed image"/> 5700aff185Sopenharmony_ci <filteritem type="filepath" name="product/phone/src/.*.png" desc="self developed image"/> 5800aff185Sopenharmony_ci <filteritem type="filepath" name="gradle/wrapper/.*.jar" desc="Build Files"/> 5900aff185Sopenharmony_ci </filefilter> 6000aff185Sopenharmony_ci <filefilter name="copyrightPolicyFilter" desc="Filters for copyright header policies"> 6100aff185Sopenharmony_ci <filteritem type="filename" name="*.json5" desc="json file"/> 6200aff185Sopenharmony_ci <filteritem type="filename" name="publicity.xml" desc="Build Files"/> 6300aff185Sopenharmony_ci <filteritem type="filename" name="hvigorw" desc="Build Files"/> 6400aff185Sopenharmony_ci <filteritem type="filename" name="hvigorw.bat" desc="Build Files"/> 6500aff185Sopenharmony_ci <filteritem type="filename" name="hvigor-config.json5" desc="Build Files"/> 6600aff185Sopenharmony_ci <filteritem type="filename" name="hvigor-wrapper.js" desc="Build Files"/> 6700aff185Sopenharmony_ci </filefilter> 6800aff185Sopenharmony_ci <filefilter name="defaultPolicyFilter" desc="Filters for LICENSE file policies"> 6900aff185Sopenharmony_ci <filteritem type="filename" name="*.json5" desc="json file"/> 7000aff185Sopenharmony_ci <filteritem type="filename" name="publicity.xml" desc="Build Files"/> 7100aff185Sopenharmony_ci <filteritem type="filename" name="hvigorw" desc="Build Files"/> 7200aff185Sopenharmony_ci <filteritem type="filename" name="hvigorw.bat" desc="Build Files"/> 7300aff185Sopenharmony_ci <filteritem type="filename" name="hvigor-config.json5" desc="Build Files"/> 7400aff185Sopenharmony_ci <filteritem type="filename" name="hvigor-wrapper.js" desc="Build Files"/> 7500aff185Sopenharmony_ci </filefilter> 7600aff185Sopenharmony_ci </filefilterlist> 7700aff185Sopenharmony_ci </oatconfig> 7800aff185Sopenharmony_ci</configuration> 79