forked from mindspore-Ecosystem/mindspore
Update PR template, add chinese reference.
This commit is contained in:
parent
a9ee95737d
commit
8d5771cba5
|
@ -0,0 +1,49 @@
|
||||||
|
<!-- Thanks for sending a pull request! Here are some tips for you:
|
||||||
|
|
||||||
|
1) If this is your first time, please read our contributor guidelines: https://gitee.com/mindspore/mindspore/blob/master/CONTRIBUTING.md
|
||||||
|
|
||||||
|
2) If you want to contribute your code but don't know who will review and merge, please add label `mindspore-assistant` to the pull request, we will find and do it as soon as possible.
|
||||||
|
-->
|
||||||
|
|
||||||
|
**What type of PR is this?**
|
||||||
|
> Uncomment only one ` /kind <>` line, hit enter to put that in a new line, and remove leading whitespaces from that line:
|
||||||
|
>
|
||||||
|
> /kind bug
|
||||||
|
> /kind task
|
||||||
|
> /kind feature
|
||||||
|
|
||||||
|
|
||||||
|
**What does this PR do / why do we need it**:
|
||||||
|
|
||||||
|
|
||||||
|
**Which issue(s) this PR fixes**:
|
||||||
|
<!--
|
||||||
|
*Automatically closes linked issue when PR is merged.
|
||||||
|
Usage: `Fixes #<issue number>`, or `Fixes (paste link of issue)`.
|
||||||
|
-->
|
||||||
|
Fixes #
|
||||||
|
|
||||||
|
**Code review checklist [[illustration]](https://gitee.com/mindspore/community/blob/master/security/code_review_checklist_mechanism.md)**:
|
||||||
|
|
||||||
|
- **Typical problems of security coding [[historical security coding cases reference]](https://gitee.com/mindspore/community/blob/master/security/security_coding_violation_cases.md)**
|
||||||
|
- [ ] whether to verify the pointer is null/nullptr
|
||||||
|
- [ ] whether to verify the function's return value
|
||||||
|
- [ ] whether new/malloc memory is released correctly
|
||||||
|
- **Performance analysis (if a sub-item is involved, please outline the implementation idea or modification content)**
|
||||||
|
- [ ] whether to modify hotspot ***function / algorithm / operation***
|
||||||
|
- [ ] whether to consider concurrent scenarios
|
||||||
|
- [ ] whether to consider communication scenario
|
||||||
|
+ - [ ] **Whether to comply with coding specifications [[coding specification reference]](https://gitee.com/mindspore/community/blob/master/security/coding_guild_cpp_zh_cn.md)**
|
||||||
|
+ - [ ] **Whether to comply with ***SOLID principle / Demeter's law*****
|
||||||
|
+ - [ ] **Whether the ***interaction between modules / features*** is involved (if yes, please outline the implementation ideas)**
|
||||||
|
+ - [ ] **Whether there is UT test case && the test case is a valid (if there is no test case, please explain the reason)**
|
||||||
|
+ - [ ] **whether the secret key is loaded/released correctly**
|
||||||
|
- **Error handling and recording**
|
||||||
|
- [ ] whether the interface exception scenarios are fully considered
|
||||||
|
- [ ] whether the error is recorded appropriately
|
||||||
|
|
||||||
|
**Special notes for your reviewers**:
|
||||||
|
<!-- + - [ ] **Whether document (installation, tutorial, design, reference, API, migration guide, FAQ, etc.) modification is involved** -->
|
||||||
|
<!-- + - [ ] **Whether it causes forward compatibility failure** -->
|
||||||
|
<!-- + - [ ] **Whether the API change is involved** -->
|
||||||
|
<!-- + - [ ] **Whether the dependent third-party library change is involved** -->
|
|
@ -23,8 +23,7 @@ Usage: `Fixes #<issue number>`, or `Fixes (paste link of issue)`.
|
||||||
-->
|
-->
|
||||||
Fixes #
|
Fixes #
|
||||||
|
|
||||||
**Code review checklist**:
|
**Code review checklist [[illustration]](https://gitee.com/mindspore/community/blob/master/security/code_review_checklist_mechanism.md)**:
|
||||||
<!-- Code review guidebook: https://gitee.com/mindspore/community/blob/master/security/code_review_checklist_mechanism.md -->
|
|
||||||
|
|
||||||
- **Typical problems of security coding [[historical security coding cases reference]](https://gitee.com/mindspore/community/blob/master/security/security_coding_violation_cases.md)**
|
- **Typical problems of security coding [[historical security coding cases reference]](https://gitee.com/mindspore/community/blob/master/security/security_coding_violation_cases.md)**
|
||||||
- [ ] whether to verify the pointer is null/nullptr
|
- [ ] whether to verify the pointer is null/nullptr
|
||||||
|
|
|
@ -0,0 +1,49 @@
|
||||||
|
<!-- Thanks for sending a pull request! Here are some tips for you:
|
||||||
|
|
||||||
|
1) If this is your first time, please read our contributor guidelines: https://gitee.com/mindspore/mindspore/blob/master/CONTRIBUTING.md
|
||||||
|
|
||||||
|
2) If you want to contribute your code but don't know who will review and merge, please add label `mindspore-assistant` to the pull request, we will find and do it as soon as possible.
|
||||||
|
-->
|
||||||
|
|
||||||
|
**What type of PR is this?**
|
||||||
|
> Uncomment only one ` /kind <>` line, hit enter to put that in a new line, and remove leading whitespaces from that line:
|
||||||
|
>
|
||||||
|
> /kind bug
|
||||||
|
> /kind task
|
||||||
|
> /kind feature
|
||||||
|
|
||||||
|
|
||||||
|
**What does this PR do / why do we need it**:
|
||||||
|
|
||||||
|
|
||||||
|
**Which issue(s) this PR fixes**:
|
||||||
|
<!--
|
||||||
|
*Automatically closes linked issue when PR is merged.
|
||||||
|
Usage: `Fixes #<issue number>`, or `Fixes (paste link of issue)`.
|
||||||
|
-->
|
||||||
|
Fixes #
|
||||||
|
|
||||||
|
**Code review checklist [【代码检视checklist说明】](https://gitee.com/mindspore/community/blob/master/security/code_review_checklist_mechanism.md)**:
|
||||||
|
|
||||||
|
- **典型安全编码问题 [【违反安全编码案例】](https://gitee.com/mindspore/community/blob/master/security/security_coding_violation_cases.md)**
|
||||||
|
- [ ] 是否进行空指针校验
|
||||||
|
- [ ] 是否进行返回值校验 (禁止使用void屏蔽函数返回值)
|
||||||
|
- [ ] 是否正确释放new/malloc申请的内存
|
||||||
|
- **性能分析 (如果涉及某个子项,请概述设计思想/修改内容)**
|
||||||
|
- [ ] 是否修改热点***函数 / 算法 / 算子***
|
||||||
|
- [ ] 是否考虑并发场景
|
||||||
|
- [ ] 是否考虑通信场景
|
||||||
|
+ - [ ] **是否符合编码规范 [【编码规范】](https://gitee.com/mindspore/community/blob/master/security/coding_guild_cpp_zh_cn.md)**
|
||||||
|
+ - [ ] **是否遵守 ***SOLID原则 / 迪米特法则*****
|
||||||
|
+ - [ ] **是否涉及模块/特性间交互 (若涉及请概述实现思路)**
|
||||||
|
+ - [ ] **是否具备UT测试用例看护 && 测试用例为有效用例 (若新特性无测试用例看护请说明原因)**
|
||||||
|
+ - [ ] **是否正确加载、释放秘钥**
|
||||||
|
- **错误处理与记录**
|
||||||
|
- [ ] 是否充分考虑接口的异常场景
|
||||||
|
- [ ] 是否正确记录错误信息
|
||||||
|
|
||||||
|
**Special notes for your reviewers**:
|
||||||
|
<!-- + - [ ] **是否涉及文档(安装、教程、设计、参考、API、迁移指南、FAQ等)修改** -->
|
||||||
|
<!-- + - [ ] **是否导致无法前向兼容** -->
|
||||||
|
<!-- + - [ ] **是否为对外接口变更** -->
|
||||||
|
<!-- + - [ ] **是否涉及依赖的三方库变更** -->
|
Loading…
Reference in New Issue