1e8556ba3Sopenharmony_ci<?xml version="1.0" encoding="UTF-8"?> 2e8556ba3Sopenharmony_ci<!-- Copyright (c) 2021 Huawei Device Co., Ltd. 3e8556ba3Sopenharmony_ci 4e8556ba3Sopenharmony_ci Licensed under the Apache License, Version 2.0 (the "License"); 5e8556ba3Sopenharmony_ci you may not use this file except in compliance with the License. 6e8556ba3Sopenharmony_ci You may obtain a copy of the License at 7e8556ba3Sopenharmony_ci 8e8556ba3Sopenharmony_ci http://www.apache.org/licenses/LICENSE-2.0 9e8556ba3Sopenharmony_ci 10e8556ba3Sopenharmony_ci Unless required by applicable law or agreed to in writing, software 11e8556ba3Sopenharmony_ci distributed under the License is distributed on an "AS IS" BASIS, 12e8556ba3Sopenharmony_ci WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13e8556ba3Sopenharmony_ci See the License for the specific language governing permissions and 14e8556ba3Sopenharmony_ci limitations under the License. 15e8556ba3Sopenharmony_ci 16e8556ba3Sopenharmony_ci Notes: 17e8556ba3Sopenharmony_ci This is project config file for OpenHarmony OSS Audit Tool. If you have any questions or concerns, please send an email to chenyaxun. 18e8556ba3Sopenharmony_ci--> 19e8556ba3Sopenharmony_ci<!-- OAT (OSS Audit Tool) configuration guide: 20e8556ba3Sopenharmony_cibasedir: Root dir. basedir + project path is the real source file location. 21e8556ba3Sopenharmony_cilicensefile: 22e8556ba3Sopenharmony_ciIf the project doesn't have "LICENSE" in root dir, please define all the license files in this project. OAT will check license files according to this rule. 23e8556ba3Sopenharmony_ci 24e8556ba3Sopenharmony_citasklist (for the batch mode only): 25e8556ba3Sopenharmony_ci1. task: OAT check thread. Each task will start a new thread. 26e8556ba3Sopenharmony_ci2. task name: Task name. 27e8556ba3Sopenharmony_ci3. task policy: Default policy for projects under this task. This field is required and the specified policy must be defined in policylist. 28e8556ba3Sopenharmony_ci4. task filter: Default filefilter for projects under this task. This field is required and the specified filefilter must be defined in filefilterlist. 29e8556ba3Sopenharmony_ci5. task project: Projects to be checked. The path field defines the source root dir of the project. 30e8556ba3Sopenharmony_ci 31e8556ba3Sopenharmony_ci 32e8556ba3Sopenharmony_cipolicyList: 33e8556ba3Sopenharmony_ci1. policy: All policyitems will be merged to default OAT.xml rules. The name of policy doesn't affect the OAT check process. 34e8556ba3Sopenharmony_ci2. policyitem: The fields type, name, path, desc are required, and the fields rule, group, filefilter are optional. The default value is: 35e8556ba3Sopenharmony_ci<policyitem type="" name="" path="" desc="" rule="may" group="defaultGroup" filefilter="defaultPolicyFilter"/> 36e8556ba3Sopenharmony_ci3. policyitem type: 37e8556ba3Sopenharmony_ci "compatibility" is used to check license compatibility in the specified path. 38e8556ba3Sopenharmony_ci "license" is used to check source license header in the specified path. 39e8556ba3Sopenharmony_ci "copyright" is used to check source copyright header in the specified path. 40e8556ba3Sopenharmony_ci "import" is used to check source dependency in the specified path, such as import and include. 41e8556ba3Sopenharmony_ci "filetype" is used to check file type in the specified path. Supported file types include archive and binary. 42e8556ba3Sopenharmony_ci "filename" is used to check whether the specified file exists in the specified path (support projectroot in the default OAT.xml). Supported file names include LICENSE, README, README.OpenSource. 43e8556ba3Sopenharmony_ci 44e8556ba3Sopenharmony_ci4. policyitem name: This field is used to define the license, copyright, "*" means match all, the "!" prefix means could not match this value. For example, "!GPL" means can not use GPL license. 45e8556ba3Sopenharmony_ci5. policyitem path: This field is used to 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. 46e8556ba3Sopenharmony_ci6. policyitem rule and group: These two fields are used together to merge policy results. "may" means that the result will be passed if any policyitem in the same group is passed. 47e8556ba3Sopenharmony_ci7. policyitem filefilter: This field is used to bind filefilter which define filter rules. 48e8556ba3Sopenharmony_ci8. filefilter: This field is used to define filter rules. filename is used to filter file name, and filepath is used to filter file path. 49e8556ba3Sopenharmony_ci 50e8556ba3Sopenharmony_ciNote: If the text contains special characters, please escape them according to the following rules: 51e8556ba3Sopenharmony_ci" == > 52e8556ba3Sopenharmony_ci& == > 53e8556ba3Sopenharmony_ci' == > 54e8556ba3Sopenharmony_ci< == > 55e8556ba3Sopenharmony_ci> == > 56e8556ba3Sopenharmony_ci--> 57e8556ba3Sopenharmony_ci<configuration> 58e8556ba3Sopenharmony_ci <oatconfig> 59e8556ba3Sopenharmony_ci <licensefile>LICENSE.txt</licensefile> 60e8556ba3Sopenharmony_ci <policylist> 61e8556ba3Sopenharmony_ci <policy name="projectPolicy" desc=""> 62e8556ba3Sopenharmony_ci <policyitem type="copyright" name="The Khronos Group Inc." path=".*" rule="may" group="defaultGroup" filefilter="copyrightPolicyFilter" desc=""/> 63e8556ba3Sopenharmony_ci <policyitem type="copyright" name="The ANGLE Project Authors." path=".*" rule="may" group="defaultGroup" filefilter="copyrightPolicyFilter" desc=""/> 64e8556ba3Sopenharmony_ci <policyitem type="copyright" name="LunarG, Inc." path=".*" rule="may" group="defaultGroup" filefilter="copyrightPolicyFilter" desc=""/> 65e8556ba3Sopenharmony_ci <policyitem type="copyright" name="Huawei Device Co., Ltd." path=".*" rule="may" group="defaultGroup" filefilter="copyrightPolicyFilter" desc=""/> 66e8556ba3Sopenharmony_ci <policyitem type="copyright" name="Valve Corporation" path=".*" rule="may" group="defaultGroup" filefilter="copyrightPolicyFilter" desc=""/> 67e8556ba3Sopenharmony_ci <policyitem type="copyright" name="Collabora, Ltd." path=".*" rule="may" group="defaultGroup" filefilter="copyrightPolicyFilter" desc=""/> 68e8556ba3Sopenharmony_ci <policyitem type="copyright" name="*" path=".*" rule="may" group="defaultGroup" filefilter="copyrightPolicyFilter" desc=""/> 69e8556ba3Sopenharmony_ci </policy> 70e8556ba3Sopenharmony_ci </policylist> 71e8556ba3Sopenharmony_ci <filefilterlist> 72e8556ba3Sopenharmony_ci <filefilter name="defaultFilter" desc="Files that do not need to be scanned"> 73e8556ba3Sopenharmony_ci <filteritem type="filename" name="README|*.xml|*.json" desc="cfg no need to add policy"/> 74e8556ba3Sopenharmony_ci <filteritem type="filename" name=".cmake-format.py" desc="cfg no need to add policy"/> 75e8556ba3Sopenharmony_ci </filefilter> 76e8556ba3Sopenharmony_ci <filefilter name="binaryFileTypePolicyFilter" desc="Filters for binary file policies" > 77e8556ba3Sopenharmony_ci </filefilter> 78e8556ba3Sopenharmony_ci <filefilter name="copyrightPolicyFilter" desc="Filters for copyright header policies" > 79e8556ba3Sopenharmony_ci <filteritem type="filename" name="README.OpenSource"/> 80e8556ba3Sopenharmony_ci <filteritem type="filename" name="README"/> 81e8556ba3Sopenharmony_ci </filefilter> 82e8556ba3Sopenharmony_ci </filefilterlist> 83e8556ba3Sopenharmony_ci </oatconfig> 84e8556ba3Sopenharmony_ci</configuration> 85