1f6603c60Sopenharmony_ci<?xml version="1.0" encoding="UTF-8"?> 2f6603c60Sopenharmony_ci<!-- Copyright (c) 2021 Huawei Device Co., Ltd. 3f6603c60Sopenharmony_ci 4f6603c60Sopenharmony_ci Licensed under the Apache License, Version 2.0 (the "License"); 5f6603c60Sopenharmony_ci you may not use this file except in compliance with the License. 6f6603c60Sopenharmony_ci You may obtain a copy of the License at 7f6603c60Sopenharmony_ci 8f6603c60Sopenharmony_ci http://www.apache.org/licenses/LICENSE-2.0 9f6603c60Sopenharmony_ci 10f6603c60Sopenharmony_ci Unless required by applicable law or agreed to in writing, software 11f6603c60Sopenharmony_ci distributed under the License is distributed on an "AS IS" BASIS, 12f6603c60Sopenharmony_ci WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13f6603c60Sopenharmony_ci See the License for the specific language governing permissions and 14f6603c60Sopenharmony_ci limitations under the License. 15f6603c60Sopenharmony_ci--> 16f6603c60Sopenharmony_ci<!-- OAT(OSS Audit Tool) configuration guide: 17f6603c60Sopenharmony_cibasedir: Root dir, the basedir + project path is the real source file location. 18f6603c60Sopenharmony_cilicensefile: 19f6603c60Sopenharmony_ci1.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. 20f6603c60Sopenharmony_ci 21f6603c60Sopenharmony_citasklist(only for batch mode): 22f6603c60Sopenharmony_ci1. task: Define oat check thread, each task will start a new thread. 23f6603c60Sopenharmony_ci2. task name: Only an name, no practical effect. 24f6603c60Sopenharmony_ci3. task policy: Default policy for projects under this task, this field is required and the specified policy must defined in policylist. 25f6603c60Sopenharmony_ci4. task filter: Default filefilter for projects under this task, this field is required and the specified filefilter must defined in filefilterlist. 26f6603c60Sopenharmony_ci5. task project: Projects to be checked, the path field define the source root dir of the project. 27f6603c60Sopenharmony_ci 28f6603c60Sopenharmony_ci 29f6603c60Sopenharmony_cipolicyList: 30f6603c60Sopenharmony_ci1. policy: All policyitems will be merged to default OAT.xml rules, the name of policy doesn't affect OAT check process. 31f6603c60Sopenharmony_ci2. policyitem: The fields type, name, path, desc is required, and the fields rule, group, filefilter is optional,the default value is: 32f6603c60Sopenharmony_ci<policyitem type="" name="" path="" desc="" rule="may" group="defaultGroup" filefilter="defaultPolicyFilter"/> 33f6603c60Sopenharmony_ci3. policyitem type: 34f6603c60Sopenharmony_ci "compatibility" is used to check license compatibility in the specified path; 35f6603c60Sopenharmony_ci "license" is used to check source license header in the specified path; 36f6603c60Sopenharmony_ci "copyright" is used to check source copyright header in the specified path; 37f6603c60Sopenharmony_ci "import" is used to check source dependency in the specified path, such as import ... ,include ... 38f6603c60Sopenharmony_ci "filetype" is used to check file type in the specified path, supported file types: archive, binary 39f6603c60Sopenharmony_ci "filename" is used to check whether the specified file exists in the specified path(support projectroot in default OAT.xml), supported file names: LICENSE, README, README.OpenSource 40f6603c60Sopenharmony_ci 41f6603c60Sopenharmony_ci4. 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. 42f6603c60Sopenharmony_ci5. 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. 43f6603c60Sopenharmony_ci6. 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. 44f6603c60Sopenharmony_ci7. policyitem filefilter: Used to bind filefilter which define filter rules. 45f6603c60Sopenharmony_ci8. filefilter: Filter rules, the type filename is used to filter file name, the type filepath is used to filter file path. 46f6603c60Sopenharmony_ci 47f6603c60Sopenharmony_ciNote:If the text contains special characters, please escape them according to the following rules: 48f6603c60Sopenharmony_ci" == > 49f6603c60Sopenharmony_ci& == > 50f6603c60Sopenharmony_ci' == > 51f6603c60Sopenharmony_ci< == > 52f6603c60Sopenharmony_ci> == > 53f6603c60Sopenharmony_ci--> 54f6603c60Sopenharmony_ci<configuration> 55f6603c60Sopenharmony_ci <oatconfig> 56f6603c60Sopenharmony_ci <licensefile></licensefile> 57f6603c60Sopenharmony_ci <policylist> 58f6603c60Sopenharmony_ci <policy name="projectPolicy" desc=""> 59f6603c60Sopenharmony_ci <policyitem type="copyright" name="Hunan OpenValley Digital Industry Development Co., Ltd." path=".*" rule="may" group="defaultGroup" filefilter="copyrightPolicyFilter" desc="Developed By OpenValley Digital Co., Ltd."/> 60f6603c60Sopenharmony_ci <policyitem type="copyright" name="Shenzhen Kaihong Digital" path=".*" rule="may" group="defaultGroup" filefilter="copyrightPolicyFilter" desc=""/> 61f6603c60Sopenharmony_ci <policyitem type="copyright" name="Copyright (c) 2023 iSoftStone Information Technology (Group) Co.,Ltd." path=".*" rule="may" group="defaultGroup" filefilter="copyrightPolicyFilter" desc=""/> 62f6603c60Sopenharmony_ci <policyitem type="copyright" name="Huawei Technologies Co., Ltd." path=".*" rule="may" group="defaultGroup" filefilter="copyrightPolicyFilter" desc="Developed by Huawei Technologies"/> 63f6603c60Sopenharmony_ci <policyitem type="copyright" name="Huawei Device Co., Ltd." path=".*" rule="may" group="defaultGroup" filefilter="copyrightPolicyFilter" desc="Developed by Huawei Device"/> 64f6603c60Sopenharmony_ci <policyitem type="copyright" name="HiHope Open Source Organization." path=".*" rule="may" group="defaultGroup" filefilter="copyrightPolicyFilter" desc="Developed By Hihope"/> 65f6603c60Sopenharmony_ci </policy> 66f6603c60Sopenharmony_ci </policylist> 67f6603c60Sopenharmony_ci <filefilterlist> 68f6603c60Sopenharmony_ci <filefilter name="binaryFileTypePolicyFilter" desc="Filters for binaryFile" > 69f6603c60Sopenharmony_ci <filteritem type="filename" name="*.jpg" desc="all jpg file have check "/> 70f6603c60Sopenharmony_ci <filteritem type="filename" name="*.jpeg" desc="all jpg file have check "/> 71f6603c60Sopenharmony_ci <filteritem type="filename" name="*.gif" desc="all gif file have check "/> 72f6603c60Sopenharmony_ci <filteritem type="filename" name="*.png" desc="all png file have check "/> 73f6603c60Sopenharmony_ci <filteritem type="filename" name="*.bin" desc="all bin file have check"/> 74f6603c60Sopenharmony_ci <filteritem type="filename" name="*.input" desc="all bin file have check"/> 75f6603c60Sopenharmony_ci <filteritem type="filename" name="*.ms" desc="all bin file have check"/> 76f6603c60Sopenharmony_ci <filteritem type="filename" name="*.out" desc="all bin file have check"/> 77f6603c60Sopenharmony_ci <filteritem type="filename" name="*.output" desc="all bin file have check"/> 78f6603c60Sopenharmony_ci <filteritem type="filename" name="*.abc" desc="all bin file have check"/> 79f6603c60Sopenharmony_ci <filteritem type="filename" name="*.ogg" desc="all bin file have check"/> 80f6603c60Sopenharmony_ci <filteritem type="filename" name="*.json" desc="all bin file have check"/> 81f6603c60Sopenharmony_ci <filteritem type="filename" name="*.wav" desc="all bin file have check"/> 82f6603c60Sopenharmony_ci <filteritem type="filename" name="*.pcm" desc="all bin file have check"/> 83f6603c60Sopenharmony_ci <filteritem type="filename" name="*.amr" desc="all bin file have check"/> 84f6603c60Sopenharmony_ci <filteritem type="filename" name="*.pem" desc="all bin file have check"/> 85f6603c60Sopenharmony_ci <filteritem type="filename" name="*.der" desc="all bin file have check"/> 86f6603c60Sopenharmony_ci <filteritem type="filename" name="*.mkv" desc="all bin file have check"/> 87f6603c60Sopenharmony_ci <filteritem type="filename" name="*.mp3" desc="all bin file have check"/> 88f6603c60Sopenharmony_ci <filteritem type="filename" name="*.ico" desc="all bin file have check"/> 89f6603c60Sopenharmony_ci <filteritem type="filename" name="*.svg" desc="all bin file have check"/> 90f6603c60Sopenharmony_ci <filteritem type="filename" name="*.arw" desc="all bin file have check"/> 91f6603c60Sopenharmony_ci <filteritem type="filename" name="*.heic" desc="all bin file have check"/> 92f6603c60Sopenharmony_ci <filteritem type="filename" name="*.dng" desc="all bin file have check"/> 93f6603c60Sopenharmony_ci <filteritem type="filename" name="*.webp" desc="all bin file have check"/> 94f6603c60Sopenharmony_ci <filteritem type="filename" name="*.bmp" desc="all bin file have check"/> 95f6603c60Sopenharmony_ci <filteritem type="filename" name="*.glb" desc="all bin file have check"/> 96f6603c60Sopenharmony_ci <filteritem type="filename" name="*.lsb" desc="all bin file have check"/> 97f6603c60Sopenharmony_ci <filteritem type="filename" name="*.spv" desc="all bin file have check"/> 98f6603c60Sopenharmony_ci <filteritem type="filename" name="*.ktx" desc="all bin file have check"/> 99f6603c60Sopenharmony_ci <filteritem type="filename" name="*.gltf" desc="all bin file have check"/> 100f6603c60Sopenharmony_ci <filteritem type="filename" name="*.mp4" desc="all bin file have check"/> 101f6603c60Sopenharmony_ci <filteritem type="filename" name="*.srt" desc="all bin file have check"/> 102f6603c60Sopenharmony_ci <filteritem type="filename" name="*.ts" desc="all bin file have check"/> 103f6603c60Sopenharmony_ci <filteritem type="filename" name="*.m3u8" desc="all bin file have check"/> 104f6603c60Sopenharmony_ci <filteritem type="filename" name="*.aac" desc="all bin file have check"/> 105f6603c60Sopenharmony_ci <filteritem type="filename" name="*.h264" desc="all bin file have check"/> 106f6603c60Sopenharmony_ci <filteritem type="filename" name="*.h265" desc="all bin file have check"/> 107f6603c60Sopenharmony_ci <filteritem type="filename" name="*.pcm" desc="all bin file have check"/> 108f6603c60Sopenharmony_ci <filteritem type="filename" name="*.flac" desc="all bin file have check"/> 109f6603c60Sopenharmony_ci <filteritem type="filename" name="*.flv" desc="all bin file have check"/> 110f6603c60Sopenharmony_ci <filteritem type="filename" name="*.m4a" desc="all bin file have check"/> 111f6603c60Sopenharmony_ci <filteritem type="filename" name="*.rgba" desc="all bin file have check"/> 112f6603c60Sopenharmony_ci <filteritem type="filename" name="*.yuv" desc="all bin file have check"/> 113f6603c60Sopenharmony_ci <filteritem type="filename" name="*.raw" desc="all bin file have check"/> 114f6603c60Sopenharmony_ci <filteritem type="filename" name="*.ape" desc="all bin file have check"/> 115f6603c60Sopenharmony_ci </filefilter> 116f6603c60Sopenharmony_ci <filefilter name="defaultFilter" desc="Filters for default" > 117f6603c60Sopenharmony_ci <filteritem type="filepath" name="global/global_stage/entry/src/main/resources/rawfile/rawfiletest.xml" desc="resource files do not to be added"/> 118f6603c60Sopenharmony_ci <filteritem type="filepath" name="global/crossplatform/resourcemanageretstest/src/main/resources/rawfile/rawfiletest.xml" desc="resource files do not to be added"/> 119f6603c60Sopenharmony_ci <filteritem type="filepath" name="global/global_napi_test/entry/src/main/resources/rawfile/test/aa.xml" desc="resource files do not to be added"/> 120f6603c60Sopenharmony_ci <filteritem type="filepath" name="global/resmgr_standard/resmgrjs/src/main/resources/rawfile/rawfiletest.xml" desc="resource files do not to be added"/> 121f6603c60Sopenharmony_ci <filteritem type="filename" name="*.mp4" desc="mp4 files do not to be added "/> 122f6603c60Sopenharmony_ci <filteritem type="filename" name="*.mov" desc="mov files do not to be added "/> 123f6603c60Sopenharmony_ci <filteritem type="filename" name="*.xml" desc="xml files do not to be added "/> 124f6603c60Sopenharmony_ci <filteritem type="filename" name="*.py" desc="py files do not to be added "/> 125f6603c60Sopenharmony_ci <filteritem type="filename" name="*.gltf" desc="gltf files do not to be added"/> 126f6603c60Sopenharmony_ci <filteritem type="filename" name="*.srt" desc="srt files do not to be added"/> 127f6603c60Sopenharmony_ci </filefilter> 128f6603c60Sopenharmony_ci </filefilterlist> 129f6603c60Sopenharmony_ci </oatconfig> 130f6603c60Sopenharmony_ci</configuration> 131