1020a203aSopenharmony_ci<?xml version="1.0" encoding="UTF-8"?> 2020a203aSopenharmony_ci<!-- Copyright (c) 2021 Huawei Device Co., Ltd. 3020a203aSopenharmony_ci 4020a203aSopenharmony_ci Licensed under the Apache License, Version 2.0 (the "License"); 5020a203aSopenharmony_ci you may not use this file except in compliance with the License. 6020a203aSopenharmony_ci You may obtain a copy of the License at 7020a203aSopenharmony_ci 8020a203aSopenharmony_ci http://www.apache.org/licenses/LICENSE-2.0 9020a203aSopenharmony_ci 10020a203aSopenharmony_ci Unless required by applicable law or agreed to in writing, software 11020a203aSopenharmony_ci distributed under the License is distributed on an "AS IS" BASIS, 12020a203aSopenharmony_ci WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13020a203aSopenharmony_ci See the License for the specific language governing permissions and 14020a203aSopenharmony_ci limitations under the License. 15020a203aSopenharmony_ci--> 16020a203aSopenharmony_ci<!-- OAT(OSS Audit Tool) configuration guide: 17020a203aSopenharmony_cibasedir: Root dir, the basedir + project path is the real source file location. 18020a203aSopenharmony_cilicensefile: 19020a203aSopenharmony_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. 20020a203aSopenharmony_ci 21020a203aSopenharmony_citasklist(only for batch mode): 22020a203aSopenharmony_ci1. task: Define oat check thread, each task will start a new thread. 23020a203aSopenharmony_ci2. task name: Only an name, no practical effect. 24020a203aSopenharmony_ci3. task policy: Default policy for projects under this task, this field is required and the specified policy must defined in policylist. 25020a203aSopenharmony_ci4. task filter: Default filefilter for projects under this task, this field is required and the specified filefilter must defined in filefilterlist. 26020a203aSopenharmony_ci5. task project: Projects to be checked, the path field define the source root dir of the project. 27020a203aSopenharmony_ci 28020a203aSopenharmony_ci 29020a203aSopenharmony_cipolicyList: 30020a203aSopenharmony_ci1. policy: All policyitems will be merged to default OAT.xml rules, the name of policy doesn't affect OAT check process. 31020a203aSopenharmony_ci2. policyitem: The fields type, name, path, desc is required, and the fields rule, group, filefilter is optional,the default value is: 32020a203aSopenharmony_ci<policyitem type="" name="" path="" desc="" rule="may" group="defaultGroup" filefilter="defaultPolicyFilter"/> 33020a203aSopenharmony_ci3. policyitem type: 34020a203aSopenharmony_ci "compatibility" is used to check license compatibility in the specified path; 35020a203aSopenharmony_ci "license" is used to check source license header in the specified path; 36020a203aSopenharmony_ci "copyright" is used to check source copyright header in the specified path; 37020a203aSopenharmony_ci "import" is used to check source dependency in the specified path, such as import ... ,include ... 38020a203aSopenharmony_ci "filetype" is used to check file type in the specified path, supported file types: archive, binary 39020a203aSopenharmony_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 40020a203aSopenharmony_ci 41020a203aSopenharmony_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. 42020a203aSopenharmony_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. 43020a203aSopenharmony_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. 44020a203aSopenharmony_ci7. policyitem filefilter: Used to bind filefilter which define filter rules. 45020a203aSopenharmony_ci8. filefilter: Filter rules, the type filename is used to filter file name, the type filepath is used to filter file path. 46020a203aSopenharmony_ci 47020a203aSopenharmony_ciNote:If the text contains special characters, please escape them according to the following rules: 48020a203aSopenharmony_ci" == > 49020a203aSopenharmony_ci& == > 50020a203aSopenharmony_ci' == > 51020a203aSopenharmony_ci< == > 52020a203aSopenharmony_ci> == > 53020a203aSopenharmony_ci--> 54020a203aSopenharmony_ci<configuration> 55020a203aSopenharmony_ci <oatconfig> 56020a203aSopenharmony_ci <filefilterlist> 57020a203aSopenharmony_ci <filefilter name="defaultPolicyFilter" desc="Filters for compatibility, license header policies"> 58020a203aSopenharmony_ci <filteritem type="filename" name="*plugin_config*" desc="build and load config file, not support comments"/> 59020a203aSopenharmony_ci <filteritem type="filename" name="*platform_config*" desc="build and load config file, not support comments"/> 60020a203aSopenharmony_ci <filteritem type="filename" name="event_logger_config" desc="build and load config file, not support comments"/> 61020a203aSopenharmony_ci <filteritem type="filename" name="*.json" desc="build and load config file, not support comments"/> 62020a203aSopenharmony_ci <filteritem type="filename" name="BBoxDetectorPipeline" desc="build and load config file, not support comments"/> 63020a203aSopenharmony_ci <filteritem type="filename" name="LeakDetectorPipeline" desc="build and load config file, not support comments"/> 64020a203aSopenharmony_ci <filteritem type="filename" name="faultloggerPipeline" desc="build and load config file, not support comments"/> 65020a203aSopenharmony_ci <filteritem type="filename" name="usageEventPipeline" desc="build and load config file, not support comments"/> 66020a203aSopenharmony_ci <filteritem type="filename" name="EventloggerPipeline" desc="build and load config file, not support comments"/> 67020a203aSopenharmony_ci <filteritem type="filename" name="UnifiedCollector" desc="build and load config file, not support comments"/> 68020a203aSopenharmony_ci <filteritem type="filename" name="libfaultlogger.map" desc=" version script config file, not support comments"/> 69020a203aSopenharmony_ci <filteritem type="filename" name="XperfPlugin" desc="build and load config file, not support comments"/> 70020a203aSopenharmony_ci <filteritem type="filename" name="CERT.SF" desc="build and load config file, not support comments"/> 71020a203aSopenharmony_ci <filteritem type="filename" name="CERT_PRE.config" desc="build and load config file, not support comments"/> 72020a203aSopenharmony_ci <filteritem type="filename" name="0-0-123456" desc="build and load config file, not support comments"/> 73020a203aSopenharmony_ci <filteritem type="filename" name="0-1-123456" desc="build and load config file, not support comments"/> 74020a203aSopenharmony_ci </filefilter> 75020a203aSopenharmony_ci <filefilter name="copyrightPolicyFilter" desc="Filters for copyright header policies"> 76020a203aSopenharmony_ci <filteritem type="filename" name="*plugin_config*" desc="build and load config file, not support comments"/> 77020a203aSopenharmony_ci <filteritem type="filename" name="*platform_config*" desc="build and load config file, not support comments"/> 78020a203aSopenharmony_ci <filteritem type="filename" name="event_logger_config" desc="build and load config file, not support comments"/> 79020a203aSopenharmony_ci <filteritem type="filename" name="BBoxDetectorPipeline" desc="build and load config file, not support comments"/> 80020a203aSopenharmony_ci <filteritem type="filename" name="LeakDetectorPipeline" desc="build and load config file, not support comments"/> 81020a203aSopenharmony_ci <filteritem type="filename" name="faultloggerPipeline" desc="build and load config file, not support comments"/> 82020a203aSopenharmony_ci <filteritem type="filename" name="usageEventPipeline" desc="build and load config file, not support comments"/> 83020a203aSopenharmony_ci <filteritem type="filename" name="EventloggerPipeline" desc="build and load config file, not support comments"/> 84020a203aSopenharmony_ci <filteritem type="filename" name="UnifiedCollector" desc="build and load config file, not support comments"/> 85020a203aSopenharmony_ci <filteritem type="filename" name="libfaultlogger.map" desc=" version script config file, not support comments"/> 86020a203aSopenharmony_ci <filteritem type="filename" name="XperfPlugin" desc="build and load config file, not support comments"/> 87020a203aSopenharmony_ci <filteritem type="filename" name="CERT.SF" desc="build and load config file, not support comments"/> 88020a203aSopenharmony_ci <filteritem type="filename" name="CERT_PRE.config" desc="build and load config file, not support comments"/> 89020a203aSopenharmony_ci <filteritem type="filename" name="0-0-123456" desc="build and load config file, not support comments"/> 90020a203aSopenharmony_ci <filteritem type="filename" name="0-1-123456" desc="build and load config file, not support comments"/> 91020a203aSopenharmony_ci </filefilter> 92020a203aSopenharmony_ci <filefilter name="binaryFileTypePolicyFilter" desc="Filters for binary file policies"> 93020a203aSopenharmony_ci <filteritem type="filepath" name="figures/.*" desc="self developed pictures used in readme documents"/> 94020a203aSopenharmony_ci <filteritem type="filename" name="TEST_VERSION1-1-CRITICAL-1.db" desc="the binary file for test, the file is self-developed"/> 95020a203aSopenharmony_ci <filteritem type="filename" name="TEST_VERSION2-1-CRITICAL-1.db" desc="the binary file for test, the file is self-developed"/> 96020a203aSopenharmony_ci <filteritem type="filename" name="TEST_VERSION3-1-CRITICAL-1.db" desc="the binary file for test, the file is self-developed"/> 97020a203aSopenharmony_ci </filefilter> 98020a203aSopenharmony_ci </filefilterlist> 99020a203aSopenharmony_ci </oatconfig> 100020a203aSopenharmony_ci</configuration> 101