已开启
【OAT】【114_trunk】OAT告警清零 #11
belong326创建于 2024年11月27日
【OAT】【114_trunk】OAT告警清零 #11
已开启
从refs/pull/11/head合入到114_trunk
共 2 个文件变更+105-0
| @@ -0,0 +1,94 @@ | |||
| 1 | + | ||
| 2 | + | ||
| 3 | +<!-- Copyright (c) 2021 Huawei Device Co., Ltd. | ||
| 4 | + | ||
| 5 | + Licensed under the Apache License, Version 2.0 (the "License"); | ||
| 6 | + you may not use this file except in compliance with the License. | ||
| 7 | + You may obtain a copy of the License at | ||
| 8 | + | ||
| 9 | + http://www.apache.org/licenses/LICENSE-2.0 | ||
| 10 | + | ||
| 11 | + Unless required by applicable law or agreed to in writing, software | ||
| 12 | + distributed under the License is distributed on an "AS IS" BASIS, | ||
| 13 | + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| 14 | + See the License for the specific language governing permissions and | ||
| 15 | + limitations under the License. | ||
| 16 | + | ||
| 17 | + This is the configuration file template for OpenHarmony OSS Audit Tool, please copy it to your | ||
| 18 | +project root dir and modify it refer to OpenHarmony/tools_oat/README. | ||
| 19 | + All configurations in this file will be merged to OAT-Default.xml, if you have any questions or | ||
| 20 | +concerns, please create issue in OpenHarmony/tools_oat and @jalenchen or chenyaxun. | ||
| 21 | + | ||
| 22 | + licensefile: | ||
| 23 | + 1.If the project don't have "LICENSE" in root dir, please define all the license files in this | ||
| 24 | +project in , OAT will check license files according to this rule. | ||
| 25 | + | ||
| 26 | + policylist: | ||
| 27 | + 1. policy: If the OAT-Default.xml policies do not meet your requirements, please add policies here. | ||
| 28 | + 2. policyitem: The fields type, name, path, desc is required, and the fields rule, group, | ||
| 29 | +filefilter is optional,the default value is: | ||
| 30 | + <policyitem type="" name="" path="" desc="" rule="may" group="defaultGroup" | ||
| 31 | +filefilter="defaultPolicyFilter"/> | ||
| 32 | + 3. policyitem type: | ||
| 33 | + "compatibility" is used to check license compatibility in the specified path; | ||
| 34 | + "license" is used to check source license header in the specified path; | ||
| 35 | + "copyright" is used to check source copyright header in the specified path; | ||
| 36 | + "import" is used to check source dependency in the specified path, such as import ... ,include ... | ||
| 37 | + "filetype" is used to check file type in the specified path, supported file types: archive, binary | ||
| 38 | + "filename" is used to check whether the specified file exists in the specified path(projectroot | ||
| 39 | +means the root dir of the project), supported file names: LICENSE, README, README.OpenSource | ||
| 40 | + 4. policyitem name: This field is used for define the license, copyright, "*" means match all, the | ||
| 41 | +"!" prefix means could not match this value. For example, "!GPL" means can not use GPL license. | ||
| 42 | + 5. policyitem path: This field is used for define the source file scope to apply this policyitem, | ||
| 43 | +the "!" prefix means exclude the files. For example, "!.*/lib/.*" means files in lib dir will be | ||
| 44 | +exclude while process this policyitem. | ||
| 45 | + 6. policyitem rule and group: These two fields are used together to merge policy results. "may" | ||
| 46 | +policyitems in the same group means any one in this group passed, the result will be passed. | ||
| 47 | + 7. policyitem filefilter: Used to bind filefilter which define filter rules. | ||
| 48 | + 7. policyitem desc: Used to describe the reason of this policy item, committers will check this | ||
| 49 | +while merging the code. | ||
| 50 | + 8. filefilter: Filter rules, the type filename is used to filter file name, the type filepath is | ||
| 51 | +used to filter file path. | ||
| 52 | + | ||
| 53 | + Note:If the text contains special characters, please escape them according to the following rules: | ||
| 54 | + " == " | ||
| 55 | + & == & | ||
| 56 | + ' == ' | ||
| 57 | + < == < | ||
| 58 | + > == > | ||
| 59 | +--> | ||
| 60 | + | ||
| 61 | +<configuration> | ||
| 62 | + <oatconfig> | ||
| 63 | + <policylist> | ||
| 64 | + <policy name="projectPolicy" desc=""> | ||
| 65 | + <policyitem type="compatibility" name="Public domain" path="README.chromium" desc="经法务确认为宽松型许可证" /> | ||
| 66 | + </policy> | ||
| 67 | + </policylist> | ||
| 68 | + <filefilterlist> | ||
| 69 | + <filefilter name="defaultPolicyFilter" | ||
| 70 | + desc="Filters for compatibility,license header policies"> | ||
| 71 | + <filteritem type="filepath" name="README.OpenSource" desc="Filter Readme.opensource files" /> | ||
| 72 | + </filefilter> | ||
| 73 | + | ||
| 74 | + <filefilter name="defaultFilter"> | ||
| 75 | + </filefilter> | ||
| 76 | + | ||
| 77 | + <filefilter name="binaryFileTypePolicyFilter"> | ||
| 78 | + <filteritem type="filepath" name="acid3.acidtests.org/.*png" desc="chromium原生二进制文件,不会使用" /> | ||
| 79 | + <filteritem type="filepath" name="acid3.acidtests.org/favicon.ico" desc="chromium原生二进制文件,不会使用" /> | ||
| 80 | + <filteritem type="filepath" name="acid3.acidtests.org/font.ttf" desc="chromium原生二进制文件,不会使用" /> | ||
| 81 | + </filefilter> | ||
| 82 | + </filefilterlist> | ||
| 83 | + <licensematcherlist> | ||
| 84 | + <licensematcher name="Public domain" desc=""> | ||
| 85 | + <licensetext name=" | ||
| 86 | + This is Chromium's copy of the Acid3 page layout tests. | ||
| 87 | + | ||
| 88 | + Originally obtained from the Web Standards Project on June | ||
| 89 | + 19, 2009. | ||
| 90 | + " desc="" /> | ||
| 91 | + </licensematcher> | ||
| 92 | + </licensematcherlist> | ||
| 93 | + </oatconfig> | ||
| 94 | +</configuration> | ||
已修改,删除多余的歧义描述。 ![]() ![]() | |||
| @@ -0,0 +1,11 @@ | |||
| 1 | +[ | ||
| 2 | + { | ||
| 3 | + "Name": "acid3", | ||
| 4 | + "License": "Public domain", | ||
| 5 | + "License File": "LICENSE", | ||
| 6 | + "Version Number": "6be0a66a1ebd7ebc5abc1b2f405a945f6d871521", | ||
| 7 | + "Owner": "jinchanggang@huawei.com", | ||
| 8 | + "Upstream URL": "https://chromium.googlesource.com/chromium/deps/acid3.git@6be0a66a1ebd7ebc5abc1b2f405a945f6d871521", | ||
| 9 | + "Description": "chromium工具" | ||
| 10 | + } | ||
| 11 | +] | ||


为什么是public domain