153a5a1b3Sopenharmony_ci<?xml version="1.0" encoding="UTF-8"?> 253a5a1b3Sopenharmony_ci<!-- Copyright (c) 2021 Huawei Device Co., Ltd. 353a5a1b3Sopenharmony_ci 453a5a1b3Sopenharmony_ci Licensed under the Apache License, Version 2.0 (the "License"); 553a5a1b3Sopenharmony_ci you may not use this file except in compliance with the License. 653a5a1b3Sopenharmony_ci You may obtain a copy of the License at 753a5a1b3Sopenharmony_ci 853a5a1b3Sopenharmony_ci http://www.apache.org/licenses/LICENSE-2.0 953a5a1b3Sopenharmony_ci 1053a5a1b3Sopenharmony_ci Unless required by applicable law or agreed to in writing, software 1153a5a1b3Sopenharmony_ci distributed under the License is distributed on an "AS IS" BASIS, 1253a5a1b3Sopenharmony_ci WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1353a5a1b3Sopenharmony_ci See the License for the specific language governing permissions and 1453a5a1b3Sopenharmony_ci limitations under the License. 1553a5a1b3Sopenharmony_ci 1653a5a1b3Sopenharmony_ci Notes: 1753a5a1b3Sopenharmony_ci This is project config file for OpenHarmony OSS Audit Tool, if you have any questions or concerns, please email chenyaxun. 1853a5a1b3Sopenharmony_ci--> 1953a5a1b3Sopenharmony_ci<!-- OAT(OSS Audit Tool) configuration guide: 2053a5a1b3Sopenharmony_cibasedir: Root dir, the basedir + project path is the real source file location. 2153a5a1b3Sopenharmony_cilicensefile: 2253a5a1b3Sopenharmony_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. 2353a5a1b3Sopenharmony_ci 2453a5a1b3Sopenharmony_citasklist(only for batch mode): 2553a5a1b3Sopenharmony_ci1. task: Define oat check thread, each task will start a new thread. 2653a5a1b3Sopenharmony_ci2. task name: Only an name, no practical effect. 2753a5a1b3Sopenharmony_ci3. task policy: Default policy for projects under this task, this field is required and the specified policy must defined in policylist. 2853a5a1b3Sopenharmony_ci4. task filter: Default filefilter for projects under this task, this field is required and the specified filefilter must defined in filefilterlist. 2953a5a1b3Sopenharmony_ci5. task project: Projects to be checked, the path field define the source root dir of the project. 3053a5a1b3Sopenharmony_ci 3153a5a1b3Sopenharmony_ci 3253a5a1b3Sopenharmony_cipolicyList: 3353a5a1b3Sopenharmony_ci1. policy: All policyitems will be merged to default OAT.xml rules, the name of policy doesn't affect OAT check process. 3453a5a1b3Sopenharmony_ci2. policyitem: The fields type, name, path, desc is required, and the fields rule, group, filefilter is optional,the default value is: 3553a5a1b3Sopenharmony_ci<policyitem type="" name="" path="" desc="" rule="may" group="defaultGroup" filefilter="defaultPolicyFilter"/> 3653a5a1b3Sopenharmony_ci3. policyitem type: 3753a5a1b3Sopenharmony_ci "compatibility" is used to check license compatibility in the specified path; 3853a5a1b3Sopenharmony_ci "license" is used to check source license header in the specified path; 3953a5a1b3Sopenharmony_ci "copyright" is used to check source copyright header in the specified path; 4053a5a1b3Sopenharmony_ci "import" is used to check source dependency in the specified path, such as import ... ,include ... 4153a5a1b3Sopenharmony_ci "filetype" is used to check file type in the specified path, supported file types: archive, binary 4253a5a1b3Sopenharmony_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 4353a5a1b3Sopenharmony_ci 4453a5a1b3Sopenharmony_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. 4553a5a1b3Sopenharmony_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. 4653a5a1b3Sopenharmony_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. 4753a5a1b3Sopenharmony_ci7. policyitem filefilter: Used to bind filefilter which define filter rules. 4853a5a1b3Sopenharmony_ci8. filefilter: Filter rules, the type filename is used to filter file name, the type filepath is used to filter file path. 4953a5a1b3Sopenharmony_ci 5053a5a1b3Sopenharmony_ciNote:If the text contains special characters, please escape them according to the following rules: 5153a5a1b3Sopenharmony_ci" == > 5253a5a1b3Sopenharmony_ci& == > 5353a5a1b3Sopenharmony_ci' == > 5453a5a1b3Sopenharmony_ci< == > 5553a5a1b3Sopenharmony_ci> == > 5653a5a1b3Sopenharmony_ci--> 5753a5a1b3Sopenharmony_ci<configuration> 5853a5a1b3Sopenharmony_ci <oatconfig> 5953a5a1b3Sopenharmony_ci <licensefile>LICENSE</licensefile> 6053a5a1b3Sopenharmony_ci <policylist> 6153a5a1b3Sopenharmony_ci <policy name="projectPolicy" desc="Pulseaudio audio source code"> 6253a5a1b3Sopenharmony_ci <policyitem type="compatibility" name="LGPL" path=".*" rule="may" group="defaultGroup" filefilter="defaultPolicyFilter" desc="Dynamic link"/> 6353a5a1b3Sopenharmony_ci </policy> 6453a5a1b3Sopenharmony_ci </policylist> 6553a5a1b3Sopenharmony_ci <filefilterlist> 6653a5a1b3Sopenharmony_ci <filefilter name="defaultPolicyFilter" desc="Filters for compatibility,license header policies"> 6753a5a1b3Sopenharmony_ci <filteritem type="filename" name="*.po" desc="po files in pulseaudio for linux platform"/> 6853a5a1b3Sopenharmony_ci <filteritem type="filename" name="*.m4" desc="m4 build files, not used"/> 6953a5a1b3Sopenharmony_ci <filteritem type="filename" name="*.dtd" desc="documentation support file"/> 7053a5a1b3Sopenharmony_ci <filteritem type="filename" name="*.conf.in" desc="pulseaudio config file"/> 7153a5a1b3Sopenharmony_ci <filteritem type="filename" name="*LGPL" desc="LGPL license file"/> 7253a5a1b3Sopenharmony_ci <filteritem type="filename" name="*.pot" desc="pulseaudio property files for linux platform"/> 7353a5a1b3Sopenharmony_ci <filteritem type="filename" name="xmltoman" desc="man document generator"/> 7453a5a1b3Sopenharmony_ci <filteritem type="filename" name="*.mak" desc="make file support, not used"/> 7553a5a1b3Sopenharmony_ci <filteritem type="filename" name="*.xsl" desc="pulseaudio style sheet file doc"/> 7653a5a1b3Sopenharmony_ci <filteritem type="filename" name="git-version-gen" desc="git version check script"/> 7753a5a1b3Sopenharmony_ci <filteritem type="filename" name="g711.h" desc="pulseaudio header file"/> 7853a5a1b3Sopenharmony_ci <filteritem type="filename" name="copyright" desc="copyright file"/> 7953a5a1b3Sopenharmony_ci <filteritem type="filename" name="changelog" desc="sonic changelog file"/> 8053a5a1b3Sopenharmony_ci <filteritem type="filename" name="Main.java" desc="sonic main java file"/> 8153a5a1b3Sopenharmony_ci <filteritem type="filename" name="Sonic.java" desc="sonic java file"/> 8253a5a1b3Sopenharmony_ci <filteritem type="filename" name="sonic.1" desc="sonic .1 file"/> 8353a5a1b3Sopenharmony_ci <filteritem type="filename" name="sonic.h" desc="sonic header file"/> 8453a5a1b3Sopenharmony_ci <filteritem type="filename" name="sonic.c" desc="sonic source file"/> 8553a5a1b3Sopenharmony_ci <filteritem type="filename" name="main.c" desc="sonic main c file"/> 8653a5a1b3Sopenharmony_ci <filteritem type="filename" name="wave.h" desc="sonic wave header file"/> 8753a5a1b3Sopenharmony_ci <filteritem type="filename" name="wave.c" desc="sonic wave source file"/> 8853a5a1b3Sopenharmony_ci </filefilter> 8953a5a1b3Sopenharmony_ci </filefilterlist> 9053a5a1b3Sopenharmony_ci </oatconfig> 9153a5a1b3Sopenharmony_ci</configuration> 92