Open
【OAT】【114_trunk】OAT告警清零 #68
belong326Add on Nov 27, 2024
【OAT】【114_trunk】OAT告警清零 #68
Open
Merged fromrefs/pull/68/headinto114_trunk
Total: 2 files changed+186-0
| @@ -0,0 +1,175 @@ | |||
| 1 | +<?xml version="1.0" encoding="UTF-8"?> | ||
| 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="The LICENSE is not standardized"> | ||
| 65 | + <policyitem type="compatibility" name="GPLStyleLicense" path="modules/third_party/g722/.*" desc="开发者描述,没有GPL传染性" /> | ||
| 66 | + <policyitem type="compatibility" name="GPLStyleLicense" path="modules/third_party/g711/.*" desc="开发者描述,没有GPL传染性" /> | ||
| 67 | + <policyitem type="compatibility" name="Public Domain" path="common_audio/third_party/spl_sqrt_floor/.*" desc="经法务确认为宽松型许可证" /> | ||
| 68 | + <policyitem type="compatibility" name="Public Domain" path="rtc_base/third_party/sigslot/.*" desc="经法务确认为宽松型许可证" /> | ||
| 69 | + <policyitem type="compatibility" name="LicenseRef-scancode-takuya-ooura" path="common_audio/third_party/ooura/fft_size_256/fft4g.cc" desc="经法务确认为宽松型许可证" /> | ||
| 70 | + <policyitem type="compatibility" name="LicenseRef-scancode-x11-lucent" path="modules/third_party/fft/fft.c" desc="经法务确认为宽松型许可证" /> | ||
| 71 | + </policy> | ||
| 72 | + </policylist> | ||
| 73 | + <filefilterlist> | ||
| 74 | + <filefilter name="defaultPolicyFilter" | ||
| 75 | + desc="Filters for compatibility,license header policies"> | ||
| 76 | + <filteritem type="filepath" name=".*README.chromium" desc="chromium的开源软件元数据文件" /> | ||
| 77 | + </filefilter> | ||
| 78 | + <filefilter name="defaultFilter"> | ||
| 79 | + <filteritem type="filepath" name="examples/.*" desc="经确认,该文件不会使用" /> | ||
| 80 | + <filteritem type="filepath" name="test/.*" desc="经确认,该文件不会使用" /> | ||
| 81 | + <filteritem type="filepath" name="PATENTS" desc="该文件的许可证为LicenseRef-scancode-google-patent-license-webrtc" /> | ||
| 82 | + <filteritem type="filepath" name="modules/third_party/fft/LICENSE" desc="该文件的许可证为LicenseRef-scancode-x11-lucent" /> | ||
| 83 | + <filteritem type="filepath" name="common_audio/third_party/ooura/LICENSE" desc="该文件的许可证为LicenseRef-scancode-takuya-ooura" /> | ||
| 84 | + </filefilter> | ||
| 85 | + <filefilter name="binaryFileTypePolicyFilter"> | ||
| 86 | + <filteritem type="filepath" name="data/voice_engine/.*wav" desc="chromium原生二进制" /> | ||
| 87 | + <filteritem type="filepath" name="data/voice_engine/stereo_rtp_files/rtpplay.exe" desc="chromium原生二进制" /> | ||
| 88 | + <filteritem type="filepath" name="tools_webrtc/video_quality_toolchain/win/.*sha1" desc="chromium原生二进制" /> | ||
| 89 | + <filteritem type="filepath" name="tools_webrtc/audio_quality/win/.*sha1" desc="chromium原生二进制" /> | ||
| 90 | + <filteritem type="filepath" name="data/voice_engine/stereo_rtp_files/.*rtp" desc="chromium原生二进制" /> | ||
| 91 | + <filteritem type="filepath" name="modules/desktop_capture/win/cursor_test_data/.*cur" desc="chromium原生二进制" /> | ||
| 92 | + <filteritem type="filepath" name="data/audio_processing/android/output_data_fixed.pb" desc="chromium原生二进制" /> | ||
| 93 | + <filteritem type="filepath" name="data/audio_processing/android/output_data_float.pb" desc="chromium原生二进制" /> | ||
| 94 | + <filteritem type="filepath" name="sdk/objc/unittests/foreman.mp4" desc="chromium原生二进制" /> | ||
| 95 | + <filteritem type="filepath" name="sdk/objc/unittests/.*pcm" desc="chromium原生二进制" /> | ||
| 96 | + <filteritem type="filepath" name="data/voice_engine/.*pcm" desc="chromium原生二进制" /> | ||
| 97 | + <filteritem type="filepath" name="rtc_tools/network_tester/androidapp/res/.*png" desc="chromium原生二进制" /> | ||
| 98 | + </filefilter> | ||
| 99 | + </filefilterlist> | ||
| 100 | + <licensematcherlist> | ||
| 101 | + <licensematcher name="Public Domain" desc=""> | ||
| 102 | + <licensetext name=" | ||
| 103 | + * From: Wilco Dijkstra <Wilco.Dijkstra@ntlworld.com> | ||
| 104 | + * Date: Fri, Jun 24, 2011 at 3:20 AM | ||
| 105 | + * Subject: Re: sqrt routine | ||
| 106 | + * To: Kevin Ma <kma@google.com> | ||
| 107 | + * Hi Kevin, | ||
| 108 | + * Thanks for asking. Those routines are public domain (originally posted to | ||
| 109 | + * comp.sys.arm a long time ago), so you can use them freely for any purpose. | ||
| 110 | + * Cheers, | ||
| 111 | + * Wilco | ||
| 112 | + " desc="" /> | ||
| 113 | + <licensetext name=" | ||
| 114 | + // License: Public domain. You are free to use this code however you like, with | ||
| 115 | + // the proviso that the author takes on no responsibility or liability for any | ||
| 116 | + // use. | ||
| 117 | + " desc="" /> | ||
| 118 | + </licensematcher> | ||
| 119 | + <licensematcher name="BSD-3-Clause" desc=""> | ||
| 120 | + <licensetext name=" | ||
| 121 | + % Use of this source code is governed by a BSD | ||
| 122 | + - | ||
| 123 | + style license % that can be found in the LICENSE file in the root of the source | ||
| 124 | + % tree.An additional intellectual property rights grant can be found | ||
| 125 | + % in the file PATENTS.All contributing project authors may | ||
| 126 | + % be found in the AUTHORS file in the root of the source tree.% | ||
| 127 | + | ||
| 128 | + clear; | ||
| 129 | + pack; | ||
| 130 | + " desc="" /> | ||
| 131 | + </licensematcher> | ||
| 132 | + <licensematcher name="LicenseRef-scancode-takuya-ooura" desc=""> | ||
| 133 | + <licensetext name=" | ||
| 134 | + Name: General Purpose FFT (Fast Fourier/Cosine/Sine Transform) Package | ||
| 135 | + Short Name: fft4g | ||
| 136 | + URL: http://www.kurims.kyoto-u.ac.jp/~ooura/fft.html | ||
| 137 | + Version: 0 | ||
| 138 | + Date: 2018-06-19 | ||
| 139 | + License: Custome license | ||
| 140 | + License File: LICENSE | ||
| 141 | + Security Critical: yes | ||
| 142 | + " desc="" /> | ||
| 143 | + <licensetext name=" | ||
| 144 | + * You may use, copy, modify and distribute this code for any purpose (include | ||
| 145 | + * commercial use) and without fee. Please refer to this package when you modify | ||
| 146 | + * this code. | ||
| 147 | + " desc="" /> | ||
| 148 | + </licensematcher> | ||
| 149 | + <licensematcher name="LicenseRef-scancode-x11-lucent" desc=""> | ||
| 150 | + <licensetext name=" | ||
| 151 | + * Permission to use, copy, modify, and distribute this software for | ||
| 152 | + * any purpose without fee is hereby granted, provided that this | ||
| 153 | + * entire notice is included in all copies of any software which is | ||
| 154 | + * or includes a copy or modification of this software and in all | ||
| 155 | + * copies of the supporting documentation for such software. | ||
| 156 | + * | ||
| 157 | + * THIS SOFTWARE IS BEING PROVIDED "AS IS", WITHOUT ANY EXPRESS OR | ||
| 158 | + * IMPLIED WARRANTY. IN PARTICULAR, NEITHER THE AUTHOR NOR QUEEN'S | ||
| 159 | + * UNIVERSITY AT KINGSTON MAKES ANY REPRESENTATION OR WARRANTY OF ANY | ||
| 160 | + * KIND CONCERNING THE MERCHANTABILITY OF THIS SOFTWARE OR ITS | ||
| 161 | + * FITNESS FOR ANY PARTICULAR PURPOSE. | ||
| 162 | + * | ||
| 163 | + * All of which is to say that you can do what you like with this | ||
| 164 | + * source code provided you don't try to sell it as your own and you | ||
| 165 | + * include an unaltered copy of this message (including the | ||
| 166 | + * copyright). | ||
| 167 | + * | ||
| 168 | + * It is also implicitly understood that bug fixes and improvements | ||
| 169 | + * should make their way back to the general Internet community so | ||
| 170 | + * that everyone benefits. | ||
| 171 | + " desc="" /> | ||
| 172 | + </licensematcher> | ||
| 173 | + </licensematcherlist> | ||
| 174 | + </oatconfig> | ||
| 175 | +</configuration> | ||
| @@ -0,0 +1,11 @@ | |||
| 1 | +[ | ||
| 2 | + { | ||
| 3 | + "Name": "webrtc", | ||
| 4 | + "License": "BSD-3-Clause", | ||
| 5 | + "License File": "LICENSE", | ||
| 6 | + "Version Number": "4d7f57adca5e9c9657e0adfdc3c95b6534b85cc2", | ||
| 7 | + "Owner": "jinchanggang@huawei.com", | ||
| 8 | + "Upstream URL": "https://webrtc.googlesource.com/src.git@4d7f57adca5e9c9657e0adfdc3c95b6534b85cc2", | ||
| 9 | + "Description": "第三方软件webrtc,谷歌开源并推进纳入W3C标准的一项音视频技术" | ||
| 10 | + } | ||
| 11 | +] | ||