1cabdff1aSopenharmony_ci<?xml version="1.0" encoding="UTF-8"?> 2cabdff1aSopenharmony_ci<!-- Copyright (c) 2021 Huawei Device Co., Ltd. 3cabdff1aSopenharmony_ci 4cabdff1aSopenharmony_ci Licensed under the Apache License, Version 2.0 (the "License"); 5cabdff1aSopenharmony_ci you may not use this file except in compliance with the License. 6cabdff1aSopenharmony_ci You may obtain a copy of the License at 7cabdff1aSopenharmony_ci 8cabdff1aSopenharmony_ci http://www.apache.org/licenses/LICENSE-2.0 9cabdff1aSopenharmony_ci 10cabdff1aSopenharmony_ci Unless required by applicable law or agreed to in writing, software 11cabdff1aSopenharmony_ci distributed under the License is distributed on an "AS IS" BASIS, 12cabdff1aSopenharmony_ci WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13cabdff1aSopenharmony_ci See the License for the specific language governing permissions and 14cabdff1aSopenharmony_ci limitations under the License. 15cabdff1aSopenharmony_ci 16cabdff1aSopenharmony_ci Notes: 17cabdff1aSopenharmony_ci This is project config file for OpenHarmony OSS Audit Tool, if you have any questions or concerns, please email chenyaxun@huawei.com. 18cabdff1aSopenharmony_ci--> 19cabdff1aSopenharmony_ci<!-- OAT(OSS Audit Tool) configuration guide: 20cabdff1aSopenharmony_cibasedir: Root dir, the basedir + project path is the real source file location. 21cabdff1aSopenharmony_cilicensefile: 22cabdff1aSopenharmony_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. 23cabdff1aSopenharmony_ci 24cabdff1aSopenharmony_citasklist(only for batch mode): 25cabdff1aSopenharmony_ci1. task: Define oat check thread, each task will start a new thread. 26cabdff1aSopenharmony_ci2. task name: Only an name, no practical effect. 27cabdff1aSopenharmony_ci3. task policy: Default policy for projects under this task, this field is required and the specified policy must defined in policylist. 28cabdff1aSopenharmony_ci4. task filter: Default filefilter for projects under this task, this field is required and the specified filefilter must defined in filefilterlist. 29cabdff1aSopenharmony_ci5. task project: Projects to be checked, the path field define the source root dir of the project. 30cabdff1aSopenharmony_ci 31cabdff1aSopenharmony_ci 32cabdff1aSopenharmony_cipolicyList: 33cabdff1aSopenharmony_ci1. policy: All policyitems will be merged to default OAT.xml rules, the name of policy doesn't affect OAT check process. 34cabdff1aSopenharmony_ci2. policyitem: The fields type, name, path, desc is required, and the fields rule, group, filefilter is optional,the default value is: 35cabdff1aSopenharmony_ci<policyitem type="" name="" path="" desc="" rule="may" group="defaultGroup" filefilter="defaultPolicyFilter"/> 36cabdff1aSopenharmony_ci3. policyitem type: 37cabdff1aSopenharmony_ci "compatibility" is used to check license compatibility in the specified path; 38cabdff1aSopenharmony_ci "license" is used to check source license header in the specified path; 39cabdff1aSopenharmony_ci "copyright" is used to check source copyright header in the specified path; 40cabdff1aSopenharmony_ci "import" is used to check source dependency in the specified path, such as import ... ,include ... 41cabdff1aSopenharmony_ci "filetype" is used to check file type in the specified path, supported file types: archive, binary 42cabdff1aSopenharmony_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 43cabdff1aSopenharmony_ci 44cabdff1aSopenharmony_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. 45cabdff1aSopenharmony_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. 46cabdff1aSopenharmony_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. 47cabdff1aSopenharmony_ci7. policyitem filefilter: Used to bind filefilter which define filter rules. 48cabdff1aSopenharmony_ci8. filefilter: Filter rules, the type filename is used to filter file name, the type filepath is used to filter file path. 49cabdff1aSopenharmony_ci 50cabdff1aSopenharmony_ciNote:If the text contains special characters, please escape them according to the following rules: 51cabdff1aSopenharmony_ci" == > 52cabdff1aSopenharmony_ci& == > 53cabdff1aSopenharmony_ci' == > 54cabdff1aSopenharmony_ci< == > 55cabdff1aSopenharmony_ci> == > 56cabdff1aSopenharmony_ci--> 57cabdff1aSopenharmony_ci<configuration> 58cabdff1aSopenharmony_ci <oatconfig> 59cabdff1aSopenharmony_ci <licensefile>COPYING.LGPLv2.1</licensefile> 60cabdff1aSopenharmony_ci <policylist> 61cabdff1aSopenharmony_ci <policy name="projectPolicy" desc=""> 62cabdff1aSopenharmony_ci <policyitem type="compatibility" name="InvalidLicense" path=".*" rule="may" group="defaultGroup" desc="The files involved in compilation are the InvalidLicense protocol.They are used in dynamic link mode."/> 63cabdff1aSopenharmony_ci <policyitem type="compatibility" name="BSD-3-Clause" path=".*" rule="may" group="defaultGroup" desc="The files involved in compilation are the BSD protocol.They are used in dynamic link mode."/> 64cabdff1aSopenharmony_ci <policyitem type="compatibility" name="LGPL" path=".*" rule="may" group="defaultGroup" desc="The files involved in compilation are the LGPL protocol.They are used in dynamic link mode."/> 65cabdff1aSopenharmony_ci <policyitem type="compatibility" name="zlib-acknowledgement" path=".*" rule="may" group="defaultGroup" desc="The files involved in compilation are the zlib-acknowledgement protocol.They are used in dynamic link mode."/> 66cabdff1aSopenharmony_ci <policyitem type="compatibility" name="GPL" path="libavfilter/vf_.*" rule="may" group="defaultGroup" desc="The files involved in compilation are the GPL protocol.They are not used."/> 67cabdff1aSopenharmony_ci <policyitem type="compatibility" name="GPL" path="libavfilter/x86/vf_.*" rule="may" group="defaultGroup" desc="The files involved in compilation are the GPL protocol.They are not used."/> 68cabdff1aSopenharmony_ci <policyitem type="compatibility" name="GPL" path="libavfilter/vsrc_mptestsrc.c" rule="may" group="defaultGroup" desc="The files involved in compilation are the GPL protocol.They are not used."/> 69cabdff1aSopenharmony_ci <policyitem type="compatibility" name="GPL" path="libavfilter/tinterlace.h" rule="may" group="defaultGroup" desc="The files involved in compilation are the GPL protocol.They are not used."/> 70cabdff1aSopenharmony_ci <policyitem type="compatibility" name="GPL" path="libavfilter/signature.h" rule="may" group="defaultGroup" desc="The files involved in compilation are the GPL protocol.They are not used."/> 71cabdff1aSopenharmony_ci <policyitem type="compatibility" name="GPL" path="libavfilter/signature_lookup.c" rule="may" group="defaultGroup" desc="The files involved in compilation are the GPL protocol.They are not used."/> 72cabdff1aSopenharmony_ci <policyitem type="compatibility" name="GPL" path="libavfilter/phase_template.c*" rule="may" group="defaultGroup" desc="The files involved in compilation are the GPL protocol.They are not used."/> 73cabdff1aSopenharmony_ci <policyitem type="compatibility" name="GPL" path="libavfilter/qp_table.c" rule="may" group="defaultGroup" desc="The files involved in compilation are the GPL protocol.They are not used."/> 74cabdff1aSopenharmony_ci <policyitem type="compatibility" name="GPL" path="libavfilter/qp_table.h" rule="may" group="defaultGroup" desc="The files involved in compilation are the GPL protocol.They are not used."/> 75cabdff1aSopenharmony_ci <policyitem type="compatibility" name="GPL" path="libavfilter/vsrc_mptestsrc.c" rule="may" group="defaultGroup" desc="The files involved in compilation are the GPL protocol.They are not used."/> 76cabdff1aSopenharmony_ci <policyitem type="compatibility" name="GPL" path="libpostproc/.*" rule="may" group="defaultGroup" desc="The files involved in compilation are the GPL protocol.They are not used."/> 77cabdff1aSopenharmony_ci <policyitem type="compatibility" name="GPL" path="libswresample/tests/swresample.c" rule="may" group="defaultGroup" desc="The files involved in compilation are the GPL protocol.They are not used."/> 78cabdff1aSopenharmony_ci </policy> 79cabdff1aSopenharmony_ci </policylist> 80cabdff1aSopenharmony_ci <filefilterlist> 81cabdff1aSopenharmony_ci <filefilter name="defaultPolicyFilter" desc="Filters for files not used"> 82cabdff1aSopenharmony_ci <filteritem type="filepath" name="README.OpenSource" desc="README.OpenSource"/> 83cabdff1aSopenharmony_ci <filteritem type="filepath" name="tests/.*" desc="tests, not used"/> 84cabdff1aSopenharmony_ci <filteritem type="filename" name="RELEASE_NOTES" desc="RELEASE_NOTES, not used"/> 85cabdff1aSopenharmony_ci <filteritem type="filename" name="*.pl" desc="not used"/> 86cabdff1aSopenharmony_ci <filteritem type="filename" name="*.pm" desc="not used"/> 87cabdff1aSopenharmony_ci <filteritem type="filename" name="*.asm" desc="not linked"/> 88cabdff1aSopenharmony_ci <filteritem type="filepath" name="doc/.*" desc="doc, not used"/> 89cabdff1aSopenharmony_ci <filteritem type="filepath" name="COPYING.GPLv2" desc="COPYING.GPLv2, not used"/> 90cabdff1aSopenharmony_ci <filteritem type="filepath" name="COPYING.GPLv3" desc="COPYING.GPLv3, not used"/> 91cabdff1aSopenharmony_ci <filteritem type="filepath" name="configure" desc="configure, not linked"/> 92cabdff1aSopenharmony_ci <filteritem type="filepath" name="tools/.*" desc="tools, not linked"/> 93cabdff1aSopenharmony_ci </filefilter> 94cabdff1aSopenharmony_ci <filefilter name="binaryFileTypePolicyFilter" desc="Filters for binary file policies"> 95cabdff1aSopenharmony_ci <filteritem type="filepath" name="compat/.*" desc="Resource, config and certification binary."/> 96cabdff1aSopenharmony_ci <filteritem type="filepath" name="doc/.*" desc="Resource, config and certification binary."/> 97cabdff1aSopenharmony_ci <filteritem type="filepath" name="ffbuild/.*" desc="Resource, config and certification binary."/> 98cabdff1aSopenharmony_ci <filteritem type="filepath" name="fftools/.*" desc="Resource, config and certification binary."/> 99cabdff1aSopenharmony_ci <filteritem type="filepath" name="libavcodec/.*" desc="Resource, config and certification binary."/> 100cabdff1aSopenharmony_ci <filteritem type="filepath" name="libavdevice/.*" desc="Resource, config and certification binary."/> 101cabdff1aSopenharmony_ci <filteritem type="filepath" name="libavfilter/.*" desc="Resource, config and certification binary."/> 102cabdff1aSopenharmony_ci <filteritem type="filepath" name="libavformat/.*" desc="Resource, config and certification binary."/> 103cabdff1aSopenharmony_ci <filteritem type="filepath" name="libavresample/.*" desc="Resource, config and certification binary."/> 104cabdff1aSopenharmony_ci <filteritem type="filepath" name="libavutil/.*" desc="Resource, config and certification binary."/> 105cabdff1aSopenharmony_ci <filteritem type="filepath" name="libpostproc/.*" desc="Resource, config and certification binary."/> 106cabdff1aSopenharmony_ci <filteritem type="filepath" name="libswresample/.*" desc="Resource, config and certification binary."/> 107cabdff1aSopenharmony_ci <filteritem type="filepath" name="libswscale/.*" desc="Resource, config and certification binary."/> 108cabdff1aSopenharmony_ci <filteritem type="filepath" name="presets/.*" desc="Resource, config and certification binary."/> 109cabdff1aSopenharmony_ci <filteritem type="filepath" name="tests/.*" desc="Resource, config and certification binary."/> 110cabdff1aSopenharmony_ci <filteritem type="filepath" name="tools/.*" desc="Resource, config and certification binary."/> 111cabdff1aSopenharmony_ci <filteritem type="filename" name="RELEASE_NOTES" desc="not linked"/> 112cabdff1aSopenharmony_ci </filefilter> 113cabdff1aSopenharmony_ci </filefilterlist> 114cabdff1aSopenharmony_ci </oatconfig> 115cabdff1aSopenharmony_ci</configuration>