当前位置:网站首页>纪念成为首个 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
边栏推荐
- beforeEach
- Fastjson list to jsonarray and jsonarray to list "suggested collections"
- Use ffmpeg command line to push UDP and RTP streams (H264 and TS), and ffplay receives
- Basic knowledge of cryptography
- Golang MD5 encryption and MD5 salt value encryption
- PostgresSQL 流复制 主备切换 主库无读写宕机场景
- 数组和链表的区别浅析
- 【LeetCode】283-移动零
- Comparison between rstan Bayesian regression model and standard linear regression model of R language MCMC
- 基于 Nebula Graph 构建百亿关系知识图谱实践
猜你喜欢
Thoroughly understand browser strong cache and negotiation cache
Basic knowledge of cryptography
《大学“电路分析基础”课程实验合集.实验四》丨线性电路特性的研究
Comparison between rstan Bayesian regression model and standard linear regression model of R language MCMC
可视化技术在 Nebula Graph 中的应用
[leetcode] 1905 statistics sub Island
【Salesforce】如何确认你的Salesforce版本?
Introduction to dynamic planning I, BFS of queue (70.121.279.200)
Comment réaliser un graphique Nebula d'importation CSV hors ligne de niveau milliard
已知兩種遍曆序列構造二叉樹
随机推荐
SQL修改语句
Target detection - make your own deep learning target detection data set with labelimg
已知两种遍历序列构造二叉树
Postgressql stream replication active / standby switchover primary database no read / write downtime scenario
Folium, diagnosis and close contact trajectory above
【LeetCode】977-有序數組的平方
Name of institution approved in advance
Finally, I understand the event loop, synchronous / asynchronous, micro task / macro task, and operation mechanism in JS (with test questions attached)
PTA ladder game exercise set l2-001 inter city emergency rescue
隐藏在 Nebula Graph 背后的星辰大海
/Bin/ld: cannot find -lxml2
/bin/ld: 找不到 -lpam
6090. Minimax games
已知兩種遍曆序列構造二叉樹
[leetcode] 344 reverse string
Golang MD5 encryption and MD5 salt value encryption
【Experience Cloud】如何在VsCode中取得Experience Cloud的MetaData
SQL FOREIGN KEY
[development environment] install the Chinese language pack for the 2013 version of visual studio community (install test agents 2013 | install visual studio 2013 simplified Chinese)
locate: 无法执行 stat () `/var/lib/mlocate/mlocate.db‘: 没有那个文件或目录