10b966c5eSopenharmony_ci<?xml version="1.0" encoding="UTF-8"?> 20b966c5eSopenharmony_ci<!-- Copyright (c) 2021 Huawei Device Co., Ltd. 30b966c5eSopenharmony_ci 40b966c5eSopenharmony_ci Licensed under the Apache License, Version 2.0 (the "License"); 50b966c5eSopenharmony_ci you may not use this file except in compliance with the License. 60b966c5eSopenharmony_ci You may obtain a copy of the License at 70b966c5eSopenharmony_ci 80b966c5eSopenharmony_ci http://www.apache.org/licenses/LICENSE-2.0 90b966c5eSopenharmony_ci 100b966c5eSopenharmony_ci Unless required by applicable law or agreed to in writing, software 110b966c5eSopenharmony_ci distributed under the License is distributed on an "AS IS" BASIS, 120b966c5eSopenharmony_ci WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 130b966c5eSopenharmony_ci See the License for the specific language governing permissions and 140b966c5eSopenharmony_ci limitations under the License. 150b966c5eSopenharmony_ci 160b966c5eSopenharmony_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. 170b966c5eSopenharmony_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. 180b966c5eSopenharmony_ci 190b966c5eSopenharmony_ci licensefile: 200b966c5eSopenharmony_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. 210b966c5eSopenharmony_ci 220b966c5eSopenharmony_ci policylist: 230b966c5eSopenharmony_ci 1. policy: If the OAT-Default.xml policies do not meet your requirements, please add policies here. 240b966c5eSopenharmony_ci 2. policyitem: The fields type, name, path, desc is required, and the fields rule, group, filefilter is optional,the default value is: 250b966c5eSopenharmony_ci <policyitem type="" name="" path="" desc="" rule="may" group="defaultGroup" filefilter="defaultPolicyFilter"/> 260b966c5eSopenharmony_ci 3. policyitem type: 270b966c5eSopenharmony_ci "compatibility" is used to check license compatibility in the specified path; 280b966c5eSopenharmony_ci "license" is used to check source license header in the specified path; 290b966c5eSopenharmony_ci "copyright" is used to check source copyright header in the specified path; 300b966c5eSopenharmony_ci "import" is used to check source dependency in the specified path, such as import ... ,include ... 310b966c5eSopenharmony_ci "filetype" is used to check file type in the specified path, supported file types: archive, binary 320b966c5eSopenharmony_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 330b966c5eSopenharmony_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. 340b966c5eSopenharmony_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. 350b966c5eSopenharmony_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. 360b966c5eSopenharmony_ci 7. policyitem filefilter: Used to bind filefilter which define filter rules. 370b966c5eSopenharmony_ci 7. policyitem desc: Used to describe the reason of this policy item, committers will check this while merging the code. 380b966c5eSopenharmony_ci 8. filefilter: Filter rules, the type filename is used to filter file name, the type filepath is used to filter file path. 390b966c5eSopenharmony_ci 400b966c5eSopenharmony_ci Note:If the text contains special characters, please escape them according to the following rules: 410b966c5eSopenharmony_ci " == " 420b966c5eSopenharmony_ci & == & 430b966c5eSopenharmony_ci ' == ' 440b966c5eSopenharmony_ci < == < 450b966c5eSopenharmony_ci > == > 460b966c5eSopenharmony_ci--> 470b966c5eSopenharmony_ci 480b966c5eSopenharmony_ci<configuration> 490b966c5eSopenharmony_ci <oatconfig> 500b966c5eSopenharmony_ci <licensefile></licensefile> 510b966c5eSopenharmony_ci <policylist> 520b966c5eSopenharmony_ci <policy name="projectPolicy" desc=""> 530b966c5eSopenharmony_ci <!--policyitem type="compatibility" name="GPL-2.0+" path=".*" desc="Process that runs independently, invoked by the X process."/--> 540b966c5eSopenharmony_ci <!--policyitem type="license" name="LGPL" path=".*" desc="Dynamically linked by module X"/--> 550b966c5eSopenharmony_ci <policyitem type="copyright" name="Huawei Technologies Co., Ltd." path=".*" rule="may" group="defaultGroup" filefilter="copyrightPolicyFilter" desc="Developed by Huawei Technologies"/> 560b966c5eSopenharmony_ci <policyitem type="copyright" name="Huawei Device Co., Ltd." path=".*" rule="may" group="defaultGroup" filefilter="copyrightPolicyFilter" desc="Developed by Huawei Device"/> 570b966c5eSopenharmony_ci <policyitem type="copyright" name="HiHope Open Source Organization ." path=".*" rule="may" group="defaultGroup" filefilter="copyrightPolicyFilter" desc="Developed By Hihope"/> 580b966c5eSopenharmony_ci <policyitem type="copyright" name="Copyright (C) 2009-2012 Broadcom Corporation" path=".*" rule="may" group="defaultGroup" filefilter="copyrightPolicyFilter" desc=""/> 590b966c5eSopenharmony_ci <policyitem type="copyright" name="Copyright 2015 Broadcom Corporation" path=".*" rule="may" group="defaultGroup" filefilter="copyrightPolicyFilter" desc=""/> 600b966c5eSopenharmony_ci <policyitem type="copyright" name="Copyright 2009-2012 Broadcom Corporation" path=".*" rule="may" group="defaultGroup" filefilter="copyrightPolicyFilter" desc=""/> 610b966c5eSopenharmony_ci <policyitem type="copyright" name="Copyright (C) 1999-2012 Broadcom Corporation" path=".*" rule="may" group="defaultGroup" filefilter="copyrightPolicyFilter" desc=""/> 620b966c5eSopenharmony_ci <policyitem type="copyright" name="WinnerMicro Co., Ltd." path=".*" rule="may" group="defaultGroup" filefilter="copyrightPolicyFilter" desc="Developed By Hihope"/> 630b966c5eSopenharmony_ci </policy> 640b966c5eSopenharmony_ci </policylist> 650b966c5eSopenharmony_ci 660b966c5eSopenharmony_ci <filefilterlist> 670b966c5eSopenharmony_ci <filefilter name="defaultFilter" desc="Files not to check"> 680b966c5eSopenharmony_ci <filteritem type="filename" name="*.iml|*.json|*.txt|*.hcs" desc="desc files"/> 690b966c5eSopenharmony_ci <!-- <filteritem type="filepath" name="projectroot/[a-zA-Z0-9]{20,}.sh" desc="Temp files"/> --> 700b966c5eSopenharmony_ci <!-- <filteritem type="filepath" name="src/test/.*" desc="Test files"/> --> 710b966c5eSopenharmony_ci <filteritem type="filepath" name="rk3568/bluetooth/BCM4362A2.hcd" desc="AP6257S bluetooth firmware"/> 720b966c5eSopenharmony_ci <filteritem type="filepath" name="ipcamera/bluetooth/BCM4362A2.hcd" desc="AP6257S bluetooth firmware"/> 730b966c5eSopenharmony_ci <filteritem type="filepath" name="dayu210/bluetooth/BCM4362A2.hcd" desc="AP6257S bluetooth firmware"/> 740b966c5eSopenharmony_ci <filteritem type="filepath" name="dayu210/bluetooth/NOTICE" desc="NOTICE file"/> 750b966c5eSopenharmony_ci </filefilter> 760b966c5eSopenharmony_ci <filefilter name="defaultPolicyFilter" desc="Filters for compatibility,license header policies"> 770b966c5eSopenharmony_ci <filteritem type="filename" name="BUILD.gn" desc="Compilation scripts do not declare license"/> 780b966c5eSopenharmony_ci <!-- <filteritem type="filename" name="fstab" desc="This type configuration file can not declare license"/> --> 790b966c5eSopenharmony_ci </filefilter> 800b966c5eSopenharmony_ci <filefilter name="copyrightPolicyFilter" desc="Filters for copyright header policies"> 810b966c5eSopenharmony_ci <!-- <filteritem type="filename" name="fstab" desc="This type configuration file can not declare copyright"/> --> 820b966c5eSopenharmony_ci <filteritem type="filepath" name="rk3568/bluetooth/BUILD.gn" desc="Describe the reason for filtering scan results"/> 830b966c5eSopenharmony_ci <filteritem type="filepath" name="dayu210/bluetooth/BUILD.gn" desc="Describe the reason for filtering scan results"/> 840b966c5eSopenharmony_ci <filteritem type="filepath" name="neptune_iotlink_demo/ble/BUILD.gn" desc="InvalidCopyright"/> 850b966c5eSopenharmony_ci </filefilter> 860b966c5eSopenharmony_ci <filefilter name="licenseFileNamePolicyFilter" desc="Filters for LICENSE file policies"> 870b966c5eSopenharmony_ci </filefilter> 880b966c5eSopenharmony_ci <filefilter name="readmeFileNamePolicyFilter" desc="Filters for README file policies"> 890b966c5eSopenharmony_ci </filefilter> 900b966c5eSopenharmony_ci <filefilter name="readmeOpenSourcefileNamePolicyFilter" desc="Filters for README.OpenSource file policies"> 910b966c5eSopenharmony_ci </filefilter> 920b966c5eSopenharmony_ci <filefilter name="binaryFileTypePolicyFilter" desc="Filters for binary file policies"> 930b966c5eSopenharmony_ci </filefilter> 940b966c5eSopenharmony_ci </filefilterlist> 950b966c5eSopenharmony_ci </oatconfig> 960b966c5eSopenharmony_ci</configuration> 97