146f34cbfSopenharmony_ci<?xml version="1.0" encoding="UTF-8"?> 246f34cbfSopenharmony_ci<!-- Copyright (c) 2021-2022 Huawei Device Co., Ltd. 346f34cbfSopenharmony_ci 446f34cbfSopenharmony_ci Licensed under the Apache License, Version 2.0 (the "License"); 546f34cbfSopenharmony_ci you may not use this file except in compliance with the License. 646f34cbfSopenharmony_ci You may obtain a copy of the License at 746f34cbfSopenharmony_ci 846f34cbfSopenharmony_ci http://www.apache.org/licenses/LICENSE-2.0 946f34cbfSopenharmony_ci 1046f34cbfSopenharmony_ci Unless required by applicable law or agreed to in writing, software 1146f34cbfSopenharmony_ci distributed under the License is distributed on an "AS IS" BASIS, 1246f34cbfSopenharmony_ci WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1346f34cbfSopenharmony_ci See the License for the specific language governing permissions and 1446f34cbfSopenharmony_ci limitations under the License. 1546f34cbfSopenharmony_ci 1646f34cbfSopenharmony_ci Notes: 1746f34cbfSopenharmony_ci This is project config file for OpenHarmony OSS Audit Tool, if you have any questions or concerns, please email chenyaxun. 1846f34cbfSopenharmony_ci--> 1946f34cbfSopenharmony_ci<!-- OAT(OSS Audit Tool) configuration guide: 2046f34cbfSopenharmony_cibasedir: Root dir, the basedir + project path is the real source file location. 2146f34cbfSopenharmony_cilicensefile: 2246f34cbfSopenharmony_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. 2346f34cbfSopenharmony_ci 2446f34cbfSopenharmony_citasklist(only for batch mode): 2546f34cbfSopenharmony_ci1. task: Define oat check thread, each task will start a new thread. 2646f34cbfSopenharmony_ci2. task name: Only an name, no practical effect. 2746f34cbfSopenharmony_ci3. task policy: Default policy for projects under this task, this field is required and the specified policy must defined in policylist. 2846f34cbfSopenharmony_ci4. task filter: Default filefilter for projects under this task, this field is required and the specified filefilter must defined in filefilterlist. 2946f34cbfSopenharmony_ci5. task project: Projects to be checked, the path field define the source root dir of the project. 3046f34cbfSopenharmony_ci 3146f34cbfSopenharmony_ci 3246f34cbfSopenharmony_cipolicyList: 3346f34cbfSopenharmony_ci1. policy: All policyitems will be merged to default OAT.xml rules, the name of policy doesn't affect OAT check process. 3446f34cbfSopenharmony_ci2. policyitem: The fields type, name, path, desc is required, and the fields rule, group, filefilter is optional,the default value is: 3546f34cbfSopenharmony_ci<policyitem type="" name="" path="" desc="" rule="may" group="defaultGroup" filefilter="defaultPolicyFilter"/> 3646f34cbfSopenharmony_ci3. policyitem type: 3746f34cbfSopenharmony_ci "compatibility" is used to check license compatibility in the specified path; 3846f34cbfSopenharmony_ci "license" is used to check source license header in the specified path; 3946f34cbfSopenharmony_ci "copyright" is used to check source copyright header in the specified path; 4046f34cbfSopenharmony_ci "import" is used to check source dependency in the specified path, such as import ... ,include ... 4146f34cbfSopenharmony_ci "filetype" is used to check file type in the specified path, supported file types: archive, binary 4246f34cbfSopenharmony_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 4346f34cbfSopenharmony_ci 4446f34cbfSopenharmony_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. 4546f34cbfSopenharmony_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. 4646f34cbfSopenharmony_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. 4746f34cbfSopenharmony_ci7. policyitem filefilter: Used to bind filefilter which define filter rules. 4846f34cbfSopenharmony_ci8. filefilter: Filter rules, the type filename is used to filter file name, the type filepath is used to filter file path. 4946f34cbfSopenharmony_ci 5046f34cbfSopenharmony_ciNote:If the text contains special characters, please escape them according to the following rules: 5146f34cbfSopenharmony_ci" == > 5246f34cbfSopenharmony_ci& == > 5346f34cbfSopenharmony_ci' == > 5446f34cbfSopenharmony_ci< == > 5546f34cbfSopenharmony_ci> == > 5646f34cbfSopenharmony_ci--> 5746f34cbfSopenharmony_ci<configuration> 5846f34cbfSopenharmony_ci <oatconfig> 5946f34cbfSopenharmony_ci <licensefile>LICENSE</licensefile> 6046f34cbfSopenharmony_ci <policylist> 6146f34cbfSopenharmony_ci <policy name="projectPolicy" desc=""> 6246f34cbfSopenharmony_ci </policy> 6346f34cbfSopenharmony_ci </policylist> 6446f34cbfSopenharmony_ci <filefilterlist> 6546f34cbfSopenharmony_ci <filefilter name="defaultFilter" desc="Files not to check"> 6646f34cbfSopenharmony_ci <filteritem type="filename" name="*.xml" desc="Configuration files"/> 6746f34cbfSopenharmony_ci <filteritem type="filename" name="*.cfg" desc="Startup configuration files"/> 6846f34cbfSopenharmony_ci </filefilter> 6946f34cbfSopenharmony_ci <filefilter name="defaultPolicyFilter" desc="Filters for compatibility license header policies"> 7046f34cbfSopenharmony_ci <filteritem type="filepath" name=".*" desc="The files involved in compilation are the LGPL protocol. They are used in dynamic link mode."/> 7146f34cbfSopenharmony_ci </filefilter> 7246f34cbfSopenharmony_ci <filefilter name="copyrightPolicyFilter" desc="Filters for copyright header policies"> 7346f34cbfSopenharmony_ci <filteritem type="filename" name="*.conf" desc="Pulseaudio configuration files"/> 7446f34cbfSopenharmony_ci <filteritem type="filename" name="*.pa" desc="Pulseaudio startup script files"/> 7546f34cbfSopenharmony_ci <filteritem type="filepath" name="services/src/audio_policy/server/etc/.*" desc="Pulseaudio policy configuration file"/> 7646f34cbfSopenharmony_ci <filteritem type="filepath" name="pulseaudio/src/pulse/ohos_pa_volume.c" desc="Pulseaudio volume interface file"/> 7746f34cbfSopenharmony_ci <filteritem type="filepath" name="pulseaudio/src/daemon/ohos_pa_main.c" desc="Pulseaudio daemon file with no systemd"/> 7846f34cbfSopenharmony_ci <filteritem type="filepath" name="test/demo/entry/src/main/resources/rawfile/test1.mp4" desc="Resource file for audio demo and no copyright issues involved"/> 7946f34cbfSopenharmony_ci <filteritem type="filepath" name="test/demo/entry/src/main/resources/rawfile/test2.mp4" desc="Resource file for audio demo and no copyright issues involved"/> 8046f34cbfSopenharmony_ci <filteritem type="filepath" name="interfaces/kits/c/common/multimedia/native_audio_channel_layout.h" desc="Soft link file related to definition in media foundation and no copyright issues involved"/> 8146f34cbfSopenharmony_ci </filefilter> 8246f34cbfSopenharmony_ci <filefilter name="binaryFileTypePolicyFilter" desc="Filters for binary file policies"> 8346f34cbfSopenharmony_ci <filteritem type="filename" name="*.png" desc="Audio service design diagrams"/> 8446f34cbfSopenharmony_ci <filteritem type="filename" name="*.wav" desc="Sample test files"/> 8546f34cbfSopenharmony_ci <filteritem type="filepath" name="test/resource/audio_renderer/test_audiofile/avs3_bitstream.bin" desc="Sample audiovivid metadata test files"/> 8646f34cbfSopenharmony_ci </filefilter> 8746f34cbfSopenharmony_ci </filefilterlist> 8846f34cbfSopenharmony_ci </oatconfig> 8946f34cbfSopenharmony_ci</configuration> 90