当前位置:网站首页>纪念成为首个 DAYU200 三方 demo 贡献者
纪念成为首个 DAYU200 三方 demo 贡献者
2022-07-02 12:26:00 【华为云】
记一次给OpenHarmony提交代码【序】-静态检查失败
今天我在这个仓库下提交了一个Pr
https://gitee.com/openharmony/vendor_hihope/pulls/308
遇到问题了,顺便就做个记录,
遇到的是什么问题呢?大家看下图就知道了

静态检查失败
上图写的清楚是静态检查失败,那么大家知道是什么原因吗?
首先我也尝试自己可以解决,但是后来发现,不是很顺利,想了一下之前提了5个Pr了都没有问题,为什么今天就遇到了,
我们来看一下下图我给大家标记的地方,
大家可以点击report这儿


显示致命错误16个,
我们点击代码问题来看一下吧
OAT.3 许可证头
License Header Invalid: NoLicenseHeader
是的报的都是这样的错
让我们来猜一猜,基本
都是License惹的祸,
于是我根据这上面说的16个错误指出的路径,分别在对应的文件里添加了版权信息,如图所示:

为了方便大家我把我添加的Licensed相关的贴出来,大家按需复制就好
/* * Copyright (C) 2022 HiHope Open Source Organization . * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http:// www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * * limitations under the License. */
我按照上面的提示,将所有的文件修改完成之后,重新触发门禁,
start build结果门禁工具升级,satrt build暂时关闭;请在1h后重试!
于是我一个小时之后重新试了一下
,还是没有通过

不过这次我查看详情的时候发现已经剩两处没有修改,我继续按照提示进行修改,最终代码门禁通过。

合并成功

终于成为了首个DAYUs200三方demo贡献者

总结
遇到问题要学会分析问题发生的原因,
学会看提示,
学会在社区寻找帮助,
最后成功大家可以在这儿查看我所提交的代码。
https://gitee.com/openharmony/vendor_hihope/tree/master/rk3568/demo/QRCodeGenerator
边栏推荐
- [leetcode] 1020 number of enclaves
- 《大学“电路分析基础”课程实验合集.实验七》丨正弦稳态电路的研究
- Demo of converting point cloud coordinates to world coordinates
- College entrance examination score line climbing
- Wise target detection 23 - pytoch builds SSD target detection platform
- (5) Flink's table API and SQL update mode and Kafka connector case
- /Bin/ld: cannot find -lgssapi_ krb5
- floyed「建议收藏」
- Deux séquences ergodiques connues pour construire des arbres binaires
- Astra: could not open "2bc5/ [email protected] /6“: Failed to set USB interface
猜你喜欢

Review materials for the special topic of analog electronics with all essence: basic amplification circuit knowledge points

如何實現十億級離線 CSV 導入 Nebula Graph

Ant group's large-scale map computing system tugraph passed the national evaluation

How to import a billion level offline CSV into Nepal graph

Wechat Alipay account system and payment interface business process

Experiment collection of University "Fundamentals of circuit analysis". Experiment 4 - Research on linear circuit characteristics

Thoroughly understand browser strong cache and negotiation cache

Comparison between rstan Bayesian regression model and standard linear regression model of R language MCMC

Aike AI frontier promotion (7.2)

《大学“电路分析基础”课程实验合集.实验五》丨线性有源二端网络等效电路的研究
随机推荐
Postgressql stream replication active / standby switchover primary database no read / write downtime scenario
可视化技术在 Nebula Graph 中的应用
[2. Basics of Delphi grammar] 3 Object Pascal constants and variables
[leetcode] 1254 - count the number of closed Islands
beforeEach
6091. Divide the array so that the maximum difference is K
Experiment collection of University "Fundamentals of circuit analysis". Experiment 4 - Research on linear circuit characteristics
Application of visualization technology in Nebula graph
Wavedec2 in MATLAB, talk about the wavedec2 function [easy to understand]
Cultural scores of summer college entrance examination
Two traversal sequences are known to construct binary trees
[leetcode] 695 - maximum area of the island
Thoroughly understand browser strong cache and negotiation cache
[leetcode] 577 reverse word III in string
隐藏在 Nebula Graph 背后的星辰大海
【LeetCode】1020-飞地的数量
Floyed "suggestions collection"
【LeetCode】19-删除链表的倒数第N个结点
2279. 装满石头的背包的最大数量
Ssh/scp does not prompt all activities are monitored and reported