15e5c12b0Sopenharmony_ci<?xml version="1.0" encoding="UTF-8"?> 25e5c12b0Sopenharmony_ci<!-- Copyright (c) 2021 Huawei Device Co., Ltd. 35e5c12b0Sopenharmony_ci 45e5c12b0Sopenharmony_ci Licensed under the Apache License, Version 2.0 (the "License"); 55e5c12b0Sopenharmony_ci you may not use this file except in compliance with the License. 65e5c12b0Sopenharmony_ci You may obtain a copy of the License at 75e5c12b0Sopenharmony_ci 85e5c12b0Sopenharmony_ci http://www.apache.org/licenses/LICENSE-2.0 95e5c12b0Sopenharmony_ci 105e5c12b0Sopenharmony_ci Unless required by applicable law or agreed to in writing, software 115e5c12b0Sopenharmony_ci distributed under the License is distributed on an "AS IS" BASIS, 125e5c12b0Sopenharmony_ci WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 135e5c12b0Sopenharmony_ci See the License for the specific language governing permissions and 145e5c12b0Sopenharmony_ci limitations under the License. 155e5c12b0Sopenharmony_ci 165e5c12b0Sopenharmony_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. 175e5c12b0Sopenharmony_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. 185e5c12b0Sopenharmony_ci 195e5c12b0Sopenharmony_ci licensefile: 205e5c12b0Sopenharmony_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. 215e5c12b0Sopenharmony_ci 225e5c12b0Sopenharmony_ci policylist: 235e5c12b0Sopenharmony_ci 1. policy: If the OAT-Default.xml policies do not meet your requirements, please add policies here. 245e5c12b0Sopenharmony_ci 2. policyitem: The fields type, name, path, desc is required, and the fields rule, group, filefilter is optional,the default value is: 255e5c12b0Sopenharmony_ci <policyitem type="" name="" path="" desc="" rule="may" group="defaultGroup" filefilter="defaultPolicyFilter"/> 265e5c12b0Sopenharmony_ci 3. policyitem type: 275e5c12b0Sopenharmony_ci "compatibility" is used to check license compatibility in the specified path; 285e5c12b0Sopenharmony_ci "license" is used to check source license header in the specified path; 295e5c12b0Sopenharmony_ci "copyright" is used to check source copyright header in the specified path; 305e5c12b0Sopenharmony_ci "import" is used to check source dependency in the specified path, such as import ... ,include ... 315e5c12b0Sopenharmony_ci "filetype" is used to check file type in the specified path, supported file types: archive, binary 325e5c12b0Sopenharmony_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 335e5c12b0Sopenharmony_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. 345e5c12b0Sopenharmony_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. 355e5c12b0Sopenharmony_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. 365e5c12b0Sopenharmony_ci 7. policyitem filefilter: Used to bind filefilter which define filter rules. 375e5c12b0Sopenharmony_ci 7. policyitem desc: Used to describe the reason of this policy item, committers will check this while merging the code. 385e5c12b0Sopenharmony_ci 8. filefilter: Filter rules, the type filename is used to filter file name, the type filepath is used to filter file path. 395e5c12b0Sopenharmony_ci 405e5c12b0Sopenharmony_ci Note:If the text contains special characters, please escape them according to the following rules: 415e5c12b0Sopenharmony_ci " == " 425e5c12b0Sopenharmony_ci & == & 435e5c12b0Sopenharmony_ci ' == ' 445e5c12b0Sopenharmony_ci < == < 455e5c12b0Sopenharmony_ci > == > 465e5c12b0Sopenharmony_ci--> 475e5c12b0Sopenharmony_ci 485e5c12b0Sopenharmony_ci<configuration> 495e5c12b0Sopenharmony_ci <oatconfig> 505e5c12b0Sopenharmony_ci <licensefile>COPYING</licensefile> 515e5c12b0Sopenharmony_ci <policylist> 525e5c12b0Sopenharmony_ci <policy name="projectPolicy" desc=""> 535e5c12b0Sopenharmony_ci <policyitem type="compatibility" name="BSDStyleLicense" path="*.*" rule="may" group="defaultGroup" filefilter="defaultPolicyFilter" desc="独立进程,独立使用"/> 545e5c12b0Sopenharmony_ci <policyitem type="compatibility" name="GPLStyleLicense" path="*.*" rule="may" group="defaultGroup" filefilter="defaultPolicyFilter" desc="独立进程,独立使用"/> 555e5c12b0Sopenharmony_ci <policyitem type="compatibility" name="LGPLStyleLicense" path="*.*" rule="may" group="defaultGroup" filefilter="defaultPolicyFilter" desc="独立进程,独立使用"/> 565e5c12b0Sopenharmony_ci <policyitem type="compatibility" name="GPL-2.0+" path="*.*" rule="may" group="defaultGroup" filefilter="defaultPolicyFilter" desc="独立进程,独立使用"/> 575e5c12b0Sopenharmony_ci <policyitem type="compatibility" name="GPL-2.0-or-later" path=".*" rule="may" group="defaultGroup" filefilter="defaultPolicyFilter" desc="独立进程,独立使用"/> 585e5c12b0Sopenharmony_ci <policyitem type="compatibility" name="LGPL-2.1+" path=".*" rule="may" group="defaultGroup" filefilter="defaultPolicyFilter" desc="独立进程,独立使用"/> 595e5c12b0Sopenharmony_ci </policy> 605e5c12b0Sopenharmony_ci </policylist> 615e5c12b0Sopenharmony_ci 625e5c12b0Sopenharmony_ci <filefilterlist> 635e5c12b0Sopenharmony_ci <filefilter name="defaultFilter" desc="Files not to check"> 645e5c12b0Sopenharmony_ci </filefilter> 655e5c12b0Sopenharmony_ci <filefilter name="defaultPolicyFilter" desc="Filters for compatibility,license header policies"> 665e5c12b0Sopenharmony_ci </filefilter> 675e5c12b0Sopenharmony_ci <filefilter name="copyrightPolicyFilter" desc="Filters for copyright header policies"> 685e5c12b0Sopenharmony_ci </filefilter> 695e5c12b0Sopenharmony_ci <filefilter name="licenseFileNamePolicyFilter" desc="Filters for LICENSE file policies"> 705e5c12b0Sopenharmony_ci </filefilter> 715e5c12b0Sopenharmony_ci <filefilter name="readmeFileNamePolicyFilter" desc="Filters for README file policies"> 725e5c12b0Sopenharmony_ci </filefilter> 735e5c12b0Sopenharmony_ci <filefilter name="readmeOpenSourcefileNamePolicyFilter" desc="Filters for README.OpenSource file policies"> 745e5c12b0Sopenharmony_ci </filefilter> 755e5c12b0Sopenharmony_ci <filefilter name="binaryFileTypePolicyFilter" desc="Filters for binary file policies"> 765e5c12b0Sopenharmony_ci </filefilter> 775e5c12b0Sopenharmony_ci </filefilterlist> 785e5c12b0Sopenharmony_ci <licensematcherlist> 795e5c12b0Sopenharmony_ci <licensematcher name="" desc=""> 805e5c12b0Sopenharmony_ci <licensetext name="" desc=""/> 815e5c12b0Sopenharmony_ci </licensematcher> 825e5c12b0Sopenharmony_ci </licensematcherlist> 835e5c12b0Sopenharmony_ci </oatconfig> 845e5c12b0Sopenharmony_ci</configuration> 85