1e75ebbc8Sopenharmony_ci<?xml version="1.0" encoding="UTF-8"?> 2e75ebbc8Sopenharmony_ci<!-- Copyright (c) 2021 Huawei Device Co., Ltd. 3e75ebbc8Sopenharmony_ci 4e75ebbc8Sopenharmony_ci Licensed under the Apache License, Version 2.0 (the "License"); 5e75ebbc8Sopenharmony_ci you may not use this file except in compliance with the License. 6e75ebbc8Sopenharmony_ci You may obtain a copy of the License at 7e75ebbc8Sopenharmony_ci 8e75ebbc8Sopenharmony_ci http://www.apache.org/licenses/LICENSE-2.0 9e75ebbc8Sopenharmony_ci 10e75ebbc8Sopenharmony_ci Unless required by applicable law or agreed to in writing, software 11e75ebbc8Sopenharmony_ci distributed under the License is distributed on an "AS IS" BASIS, 12e75ebbc8Sopenharmony_ci WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13e75ebbc8Sopenharmony_ci See the License for the specific language governing permissions and 14e75ebbc8Sopenharmony_ci limitations under the License. 15e75ebbc8Sopenharmony_ci 16e75ebbc8Sopenharmony_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. 17e75ebbc8Sopenharmony_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. 18e75ebbc8Sopenharmony_ci 19e75ebbc8Sopenharmony_ci licensefile: 20e75ebbc8Sopenharmony_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. 21e75ebbc8Sopenharmony_ci 22e75ebbc8Sopenharmony_ci policylist: 23e75ebbc8Sopenharmony_ci 1. policy: If the OAT-Default.xml policies do not meet your requirements, please add policies here. 24e75ebbc8Sopenharmony_ci 2. policyitem: The fields type, name, path, desc is required, and the fields rule, group, filefilter is optional,the default value is: 25e75ebbc8Sopenharmony_ci <policyitem type="" name="" path="" desc="" rule="may" group="defaultGroup" filefilter="defaultPolicyFilter"/> 26e75ebbc8Sopenharmony_ci 3. policyitem type: 27e75ebbc8Sopenharmony_ci "compatibility" is used to check license compatibility in the specified path; 28e75ebbc8Sopenharmony_ci "license" is used to check source license header in the specified path; 29e75ebbc8Sopenharmony_ci "copyright" is used to check source copyright header in the specified path; 30e75ebbc8Sopenharmony_ci "import" is used to check source dependency in the specified path, such as import ... ,include ... 31e75ebbc8Sopenharmony_ci "filetype" is used to check file type in the specified path, supported file types: archive, binary 32e75ebbc8Sopenharmony_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 33e75ebbc8Sopenharmony_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. 34e75ebbc8Sopenharmony_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. 35e75ebbc8Sopenharmony_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. 36e75ebbc8Sopenharmony_ci 7. policyitem filefilter: Used to bind filefilter which define filter rules. 37e75ebbc8Sopenharmony_ci 7. policyitem desc: Used to describe the reason of this policy item, committers will check this while merging the code. 38e75ebbc8Sopenharmony_ci 8. filefilter: Filter rules, the type filename is used to filter file name, the type filepath is used to filter file path. 39e75ebbc8Sopenharmony_ci 40e75ebbc8Sopenharmony_ci Note:If the text contains special characters, please escape them according to the following rules: 41e75ebbc8Sopenharmony_ci " == > 42e75ebbc8Sopenharmony_ci & == > 43e75ebbc8Sopenharmony_ci ' == > 44e75ebbc8Sopenharmony_ci < == > 45e75ebbc8Sopenharmony_ci > == > 46e75ebbc8Sopenharmony_ci--> 47e75ebbc8Sopenharmony_ci 48e75ebbc8Sopenharmony_ci<configuration> 49e75ebbc8Sopenharmony_ci <oatconfig> 50e75ebbc8Sopenharmony_ci <policylist> 51e75ebbc8Sopenharmony_ci <policy name="projectPolicy" desc=""> 52e75ebbc8Sopenharmony_ci <policyitem type="copyright" name="Copyright 2015 the original author or authors." path="gradlew" rule="may" group="defaultGroup" filefilter="copyrightPolicyFilter" desc="file generated by development tool"/> 53e75ebbc8Sopenharmony_ci <policyitem type="copyright" name="Copyright 2015 the original author or authors." path="gradlew.bat" rule="may" group="defaultGroup" filefilter="copyrightPolicyFilter" desc="file generated by development tool"/> 54e75ebbc8Sopenharmony_ci </policy> 55e75ebbc8Sopenharmony_ci </policylist> 56e75ebbc8Sopenharmony_ci <filefilterlist> 57e75ebbc8Sopenharmony_ci <filefilter name="binaryFileTypePolicyFilter" desc="Filters for binary file policies"> 58e75ebbc8Sopenharmony_ci <filteritem type="filepath" name="entry/src/main/resources/base/media/.*.png" desc="self developed image"/> 59e75ebbc8Sopenharmony_ci 60e75ebbc8Sopenharmony_ci <filteritem type="filepath" name="features/batterycomponent/src/main/resources/base/media/.*.png" desc="self developed image"/> 61e75ebbc8Sopenharmony_ci 62e75ebbc8Sopenharmony_ci <filteritem type="filepath" name="features/clockcomponent/src/main/resources/base/media/.*.png" desc="self developed image"/> 63e75ebbc8Sopenharmony_ci 64e75ebbc8Sopenharmony_ci <filteritem type="filepath" name="features/control/src/main/resources/base/media/.*.png" desc="self developed image"/> 65e75ebbc8Sopenharmony_ci 66e75ebbc8Sopenharmony_ci <filteritem type="filepath" name="features/control/src/main/ets/com/ohos/control/common/png/.*.png" desc="self developed image"/> 67e75ebbc8Sopenharmony_ci 68e75ebbc8Sopenharmony_ci <filteritem type="filepath" name="features/noticeitem/src/main/resources/base/media/.*.png" desc="self developed image"/> 69e75ebbc8Sopenharmony_ci 70e75ebbc8Sopenharmony_ci <filteritem type="filepath" name="features/signalcomponent/src/main/resources/base/media/.*.png" desc="self developed image"/> 71e75ebbc8Sopenharmony_ci 72e75ebbc8Sopenharmony_ci <filteritem type="filepath" name="features/wificomponent/src/main/resources/base/media/.*.png" desc="self developed image"/> 73e75ebbc8Sopenharmony_ci 74e75ebbc8Sopenharmony_ci <filteritem type="filepath" name="product/navigationBar/src/main/resources/base/media/.*.png" desc="self developed image"/> 75e75ebbc8Sopenharmony_ci 76e75ebbc8Sopenharmony_ci <filteritem type="filepath" name="product/statusbar/src/main/resources/base/media/.*.png" desc="self developed image"/> 77e75ebbc8Sopenharmony_ci 78e75ebbc8Sopenharmony_ci <filteritem type="filepath" name="product/systemDialog/src/main/resources/base/media/.*.png" desc="self developed image"/> 79e75ebbc8Sopenharmony_ci 80e75ebbc8Sopenharmony_ci <filteritem type="filepath" name="figures/.*.png" desc="self developed image"/> 81e75ebbc8Sopenharmony_ci 82e75ebbc8Sopenharmony_ci <filteritem type="filepath" name="figures/.*.jpg" desc="self developed image"/> 83e75ebbc8Sopenharmony_ci 84e75ebbc8Sopenharmony_ci <filteritem type="filepath" name="product/phone/dropdownpanel/src/main/resources/phone/media/.*.png" desc="self developed image"/> 85e75ebbc8Sopenharmony_ci 86e75ebbc8Sopenharmony_ci <filteritem type="filepath" name="product/phone/dropdownpanel/src/main/resources/base/media/.*.png" desc="self developed image"/> 87e75ebbc8Sopenharmony_ci 88e75ebbc8Sopenharmony_ci <filteritem type="filepath" name="features/controlcentercomponent/src/main/resources/base/media/.*.png" desc="self developed image"/> 89e75ebbc8Sopenharmony_ci 90e75ebbc8Sopenharmony_ci <filteritem type="filepath" name="product/pc/notificationpanel/src/main/resources/base/media/.*.png" desc="self developed image"/> 91e75ebbc8Sopenharmony_ci 92e75ebbc8Sopenharmony_ci <filteritem type="filepath" name="AppScope/resources/base/media/.*.png" desc="self developed image"/> 93e75ebbc8Sopenharmony_ci 94e75ebbc8Sopenharmony_ci <filteritem type="filepath" name="product/default/notificationmanagement/src/main/resources/base/media/.*.png" desc="self developed image"/> 95e75ebbc8Sopenharmony_ci 96e75ebbc8Sopenharmony_ci <filteritem type="filepath" name="product/phone/statusbar/src/main/resources/base/media/.*.png" desc="self developed image"/> 97e75ebbc8Sopenharmony_ci 98e75ebbc8Sopenharmony_ci <filteritem type="filepath" name="entry/pc/src/main/resources/base/media/.*.png" desc="self developed image"/> 99e75ebbc8Sopenharmony_ci 100e75ebbc8Sopenharmony_ci <filteritem type="filepath" name="product/pc/statusbar/src/main/resources/base/media/.*.png" desc="self developed image"/> 101e75ebbc8Sopenharmony_ci 102e75ebbc8Sopenharmony_ci <filteritem type="filepath" name="entry/phone/src/main/resources/base/media/.*.png" desc="self developed image"/> 103e75ebbc8Sopenharmony_ci 104e75ebbc8Sopenharmony_ci <filteritem type="filepath" name="features/bluetoothcomponent/src/main/resources/base/media/.*.png" desc="self developed image"/> 105e75ebbc8Sopenharmony_ci 106e75ebbc8Sopenharmony_ci <filteritem type="filepath" name="features/locationcomponent/src/main/resources/base/media/.*.png" desc="self developed image"/> 107e75ebbc8Sopenharmony_ci 108e75ebbc8Sopenharmony_ci <filteritem type="filepath" name="features/volumepanelcomponent/src/main/resources/base/media/.*.png" desc="self developed image"/> 109e75ebbc8Sopenharmony_ci 110e75ebbc8Sopenharmony_ci <filteritem type="filepath" name="product/default/navigationBar/src/main/resources/base/media/.*.png" desc="self developed image"/> 111e75ebbc8Sopenharmony_ci 112e75ebbc8Sopenharmony_ci <filteritem type="filepath" name="product/default/volumepanel/src/main/resources/base/media/.*.png" desc="self developed image"/> 113e75ebbc8Sopenharmony_ci 114e75ebbc8Sopenharmony_ci <filteritem type="filepath" name="features/statusbarcomponent/src/main/resources/base/media/.*.png" desc="self developed image"/> 115e75ebbc8Sopenharmony_ci 116e75ebbc8Sopenharmony_ci <filteritem type="filepath" name="product/pc/controlpanel/src/main/resources/base/media/.*.png" desc="self developed image"/> 117e75ebbc8Sopenharmony_ci </filefilter> 118e75ebbc8Sopenharmony_ci <filefilter name="copyrightPolicyFilter" desc="Filters for copyright header policies"> 119e75ebbc8Sopenharmony_ci <filteritem type="filename" name="README|README_zh|.*.log|.*.json5|.*.json" desc=""/> 120e75ebbc8Sopenharmony_ci <filteritem type="filename" name="hvigorw|hvigorw.bat|hvigor-wrapper.js" desc="Build files"/> 121e75ebbc8Sopenharmony_ci </filefilter> 122e75ebbc8Sopenharmony_ci <filefilter name="defaultPolicyFilter" desc="Filters for LICENSE file policies"> 123e75ebbc8Sopenharmony_ci <filteritem type="filename" name="README|README_zh|*.log|*.json5|*.json" desc="json file"/> 124e75ebbc8Sopenharmony_ci <filteritem type="filename" name="hvigorw|hvigorw.bat|hvigor-wrapper.js" desc="Build files"/> 125e75ebbc8Sopenharmony_ci </filefilter> 126e75ebbc8Sopenharmony_ci </filefilterlist> 127e75ebbc8Sopenharmony_ci </oatconfig> 128e75ebbc8Sopenharmony_ci</configuration> 129