1f08c3bdfSopenharmony_ci<?xml version="1.0" encoding="UTF-8"?> 2f08c3bdfSopenharmony_ci<!-- Copyright (c) 2021 Huawei Device Co., Ltd. 3f08c3bdfSopenharmony_ci 4f08c3bdfSopenharmony_ci Licensed under the Apache License, Version 2.0 (the "License"); 5f08c3bdfSopenharmony_ci you may not use this file except in compliance with the License. 6f08c3bdfSopenharmony_ci You may obtain a copy of the License at 7f08c3bdfSopenharmony_ci 8f08c3bdfSopenharmony_ci http://www.apache.org/licenses/LICENSE-2.0 9f08c3bdfSopenharmony_ci 10f08c3bdfSopenharmony_ci Unless required by applicable law or agreed to in writing, software 11f08c3bdfSopenharmony_ci distributed under the License is distributed on an "AS IS" BASIS, 12f08c3bdfSopenharmony_ci WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13f08c3bdfSopenharmony_ci See the License for the specific language governing permissions and 14f08c3bdfSopenharmony_ci limitations under the License. 15f08c3bdfSopenharmony_ci 16f08c3bdfSopenharmony_ci Notes: 17f08c3bdfSopenharmony_ci This is project config file for OpenHarmony OSS Audit Tool, if you have any questions or concerns, please email chenyaxun. 18f08c3bdfSopenharmony_ci--> 19f08c3bdfSopenharmony_ci<!-- OAT(OSS Audit Tool) configuration guide: 20f08c3bdfSopenharmony_cibasedir: Root dir, the basedir + project path is the real source file location. 21f08c3bdfSopenharmony_cilicensefile: 22f08c3bdfSopenharmony_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. 23f08c3bdfSopenharmony_ci 24f08c3bdfSopenharmony_citasklist(only for batch mode): 25f08c3bdfSopenharmony_ci1. task: Define oat check thread, each task will start a new thread. 26f08c3bdfSopenharmony_ci2. task name: Only an name, no practical effect. 27f08c3bdfSopenharmony_ci3. task policy: Default policy for projects under this task, this field is required and the specified policy must defined in policylist. 28f08c3bdfSopenharmony_ci4. task filter: Default filefilter for projects under this task, this field is required and the specified filefilter must defined in filefilterlist. 29f08c3bdfSopenharmony_ci5. task project: Projects to be checked, the path field define the source root dir of the project. 30f08c3bdfSopenharmony_ci 31f08c3bdfSopenharmony_ci 32f08c3bdfSopenharmony_cipolicyList: 33f08c3bdfSopenharmony_ci1. policy: All policyitems will be merged to default OAT.xml rules, the name of policy doesn't affect OAT check process. 34f08c3bdfSopenharmony_ci2. policyitem: The fields type, name, path, desc is required, and the fields rule, group, filefilter is optional,the default value is: 35f08c3bdfSopenharmony_ci<policyitem type="" name="" path="" desc="" rule="may" group="defaultGroup" filefilter="defaultPolicyFilter"/> 36f08c3bdfSopenharmony_ci3. policyitem type: 37f08c3bdfSopenharmony_ci "compatibility" is used to check license compatibility in the specified path; 38f08c3bdfSopenharmony_ci "license" is used to check source license header in the specified path; 39f08c3bdfSopenharmony_ci "copyright" is used to check source copyright header in the specified path; 40f08c3bdfSopenharmony_ci "import" is used to check source dependency in the specified path, such as import ... ,include ... 41f08c3bdfSopenharmony_ci "filetype" is used to check file type in the specified path, supported file types: archive, binary 42f08c3bdfSopenharmony_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 43f08c3bdfSopenharmony_ci 44f08c3bdfSopenharmony_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. 45f08c3bdfSopenharmony_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. 46f08c3bdfSopenharmony_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. 47f08c3bdfSopenharmony_ci7. policyitem filefilter: Used to bind filefilter which define filter rules. 48f08c3bdfSopenharmony_ci8. filefilter: Filter rules, the type filename is used to filter file name, the type filepath is used to filter file path. 49f08c3bdfSopenharmony_ci 50f08c3bdfSopenharmony_ciNote:If the text contains special characters, please escape them according to the following rules: 51f08c3bdfSopenharmony_ci" == > 52f08c3bdfSopenharmony_ci& == > 53f08c3bdfSopenharmony_ci' == > 54f08c3bdfSopenharmony_ci< == > 55f08c3bdfSopenharmony_ci> == > 56f08c3bdfSopenharmony_ci--> 57f08c3bdfSopenharmony_ci<configuration> 58f08c3bdfSopenharmony_ci <oatconfig> 59f08c3bdfSopenharmony_ci <licensefile>COPYING</licensefile> 60f08c3bdfSopenharmony_ci <policylist> 61f08c3bdfSopenharmony_ci <policy name="projectPolicy" desc=""> 62f08c3bdfSopenharmony_ci <policyitem type="compatibility" name="GPLStyleLicense" path="testcases/open_posix_testsuite/.*.*" desc="Independent process running."/> 63f08c3bdfSopenharmony_ci <policyitem type="compatibility" name="GPL-2.0+" path="testcases/open_posix_testsuite/.*.*" desc="Independent process running."/> 64f08c3bdfSopenharmony_ci <policyitem type="compatibility" name="GPL-2.0-or-later" path="testcases/open_posix_testsuite/.*.*" desc="Independent process running."/> 65f08c3bdfSopenharmony_ci <policyitem type="compatibility" name="GPL-2.0-or-later" path="libs/.*.*" desc="Independent process running."/> 66f08c3bdfSopenharmony_ci <policyitem type="compatibility" name="GPL-2.0-or-later" path="lib/.*.*" desc="Independent process running."/> 67f08c3bdfSopenharmony_ci <policyitem type="compatibility" name="GPL-2.0-or-later" path="docparse/.*.*" desc="Independent process running."/> 68f08c3bdfSopenharmony_ci <policyitem type="compatibility" name="GPL-2.0-or-later" path="metadata/.*.*" desc="Independent process running."/> 69f08c3bdfSopenharmony_ci </policy> 70f08c3bdfSopenharmony_ci </policylist> 71f08c3bdfSopenharmony_ci 72f08c3bdfSopenharmony_ci <filefilterlist> 73f08c3bdfSopenharmony_ci <filefilter name="defaultPolicyFilter" desc="Files not to check"> 74f08c3bdfSopenharmony_ci <filteritem type="filepath" name="doc/.*.*" desc="not used in ohos"/> 75f08c3bdfSopenharmony_ci <filteritem type="filepath" name="include/.*" desc="not used in ohos"/> 76f08c3bdfSopenharmony_ci <filteritem type="filepath" name="lib/.*" desc="not used in ohos"/> 77f08c3bdfSopenharmony_ci <filteritem type="filepath" name="libs/.*" desc="not used in ohos"/> 78f08c3bdfSopenharmony_ci <filteritem type="filepath" name="m4/.*" desc="not used in ohos"/> 79f08c3bdfSopenharmony_ci <filteritem type="filepath" name="pan/.*" desc="not used in ohos"/> 80f08c3bdfSopenharmony_ci <filteritem type="filepath" name="scripts/.*" desc="not used in ohos"/> 81f08c3bdfSopenharmony_ci <filteritem type="filepath" name="testcases/commands/.*" desc="not used in ohos"/> 82f08c3bdfSopenharmony_ci <filteritem type="filepath" name="testcases/cve/.*" desc="not used in ohos"/> 83f08c3bdfSopenharmony_ci <filteritem type="filepath" name="testcases/kernel/.*" desc="not used in ohos"/> 84f08c3bdfSopenharmony_ci <filteritem type="filepath" name="testcases/lib/.*" desc="not used in ohos"/> 85f08c3bdfSopenharmony_ci <filteritem type="filepath" name="testcases/misc/.*" desc="not used in ohos"/> 86f08c3bdfSopenharmony_ci <filteritem type="filepath" name="testcases/network/.*" desc="not used in ohos"/> 87f08c3bdfSopenharmony_ci <filteritem type="filepath" name="testcases/realtime/.*" desc="not used in ohos"/> 88f08c3bdfSopenharmony_ci <filteritem type="filepath" name="testscripts/.*" desc="not used in ohos"/> 89f08c3bdfSopenharmony_ci <filteritem type="filepath" name="utils/.*" desc="not used in ohos"/> 90f08c3bdfSopenharmony_ci <filteritem type="filepath" name="tools/.*" desc="not used in ohos"/> 91f08c3bdfSopenharmony_ci <filteritem type="filepath" name="*.ltpmenu.*" desc="not used in ohos"/> 92f08c3bdfSopenharmony_ci <filteritem type="filepath" name="*.runltp.*" desc="not used in ohos"/> 93f08c3bdfSopenharmony_ci <filteritem type="filepath" name="*.COPYING.*" desc="not used in ohos"/> 94f08c3bdfSopenharmony_ci <filteritem type="filepath" name="*.IDcheck.*" desc="not used in ohos"/> 95f08c3bdfSopenharmony_ci <filteritem type="filepath" name="*.INSTALL.*" desc="not used in ohos"/> 96f08c3bdfSopenharmony_ci <filteritem type="filepath" name="*.Makefile.release.*" desc="not used in ohos"/> 97f08c3bdfSopenharmony_ci <filteritem type="filepath" name="*.ltpmenu.*" desc="not used in ohos"/> 98f08c3bdfSopenharmony_ci <filteritem type="filepath" name="*.runltp.*" desc="not used in ohos"/> 99f08c3bdfSopenharmony_ci <filteritem type="filepath" name="testcases/open_posix_testsuite/Documentation/HOWTO_CodingGuidelines" desc="not used in ohos"/> 100f08c3bdfSopenharmony_ci <filteritem type="filepath" name="libs/libltpnuma/tst_numa.c" desc="not used in ohos"/> 101f08c3bdfSopenharmony_ci <filteritem type="filepath" name="testcases/kdump/lib/crasher/crasher.c" desc="not used in ohos"/> 102f08c3bdfSopenharmony_ci <filteritem type="filepath" name="testcases/kdump/lib/lkdtm/lkdtm.c" desc="not used in ohos"/> 103f08c3bdfSopenharmony_ci <filteritem type="filepath" name="libs/libltpuinput/tst_uinput.c" desc="not used in ohos"/> 104f08c3bdfSopenharmony_ci </filefilter> 105f08c3bdfSopenharmony_ci <filefilter name="binaryFileTypePolicyFilter" desc="Filters for binaryFile" > 106f08c3bdfSopenharmony_ci <filteritem type="filename" name=".*" desc="not used in ohos"/> 107f08c3bdfSopenharmony_ci </filefilter> 108f08c3bdfSopenharmony_ci </filefilterlist> 109f08c3bdfSopenharmony_ci </oatconfig> 110f08c3bdfSopenharmony_ci</configuration>