feat(allowlist): add Verilog, SystemVerilog, and VHDL support - #1050
feat(allowlist): add Verilog, SystemVerilog, and VHDL support#1050Parikalp-Bhardwaj wants to merge 10 commits into
Conversation
|
✅ OpenCodeReview: Review complete: 0 finding(s) across 3 selected item(s). |
|
@Parikalp-Bhardwaj Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution. |
|
Hi @lizhengfeng101, thank you for reviewing my submission. I have completed and signed the Contributor License Agreement. |
wu21-web
left a comment
There was a problem hiding this comment.
The wiring is complete (including exclude patterns), the documentation has some problems however.
|
Thank you for the detailed review. I’ve updated the |
|
merge conflicts @Parikalp-Bhardwaj |
…to feat/hardware-description-support # Conflicts: # internal/config/rules/system_rules.json # internal/config/rules/system_rules_test.go # pages/src/content/docs/en/review-rules.md # pages/src/content/docs/ja/review-rules.md # pages/src/content/docs/ru/review-rules.md # pages/src/content/docs/zh/review-rules.md
|
Hi @lizhengfeng101 I have resolved the merge conflicts, please review it when you have a chance. Thank you |
|
Checked the branch out and verified behavior rather than only reading the diff — case-insensitive chain, ordering, and the two test packages all pass. Three things: 1. Test name doesn't match its data. -{"hdl tb substring mid-name not excluded", "rtl/subtract.v", false},
+{"hdl tb substring mid-name not excluded", "rtl/outbound.v", false},2. - "**/*.{v,sv}": "verilog.md",
+ "**/*.{v,vh,sv}": "verilog.md",Plus 3. The
|
|
Thanks for the helpful review. I’ve addressed all three points:
I also verified the changes with the focused Go tests, Hopefully it will stay conflict-free this time! |
merge conflicts ...... |
|
I can see that the conflicts were caused by the recently added solidity and vyper entries in main, since they modify the same allowlist and rule-mapping files as this PR 😅 |
|
Tip Moving your insertions away from the end of any map, JSON gets you less merge conflicts. |
…iption-support # Conflicts: # internal/config/allowlist/allowed_ext_test.go # internal/config/allowlist/default_exclude_patterns.json # internal/config/allowlist/supported_file_types.json # internal/config/rules/system_rules.json
|
@wu21-web The conflicts are now resolved and the updated branch has been pushed.
Good point, thanks for the tip. I kept the HDL entries before the existing solidity/vyper entries when resolving the conflicts, so hopefully the same overlap won’t happen again. |
lizhengfeng101
left a comment
There was a problem hiding this comment.
Nit: pages/src/content/docs/ko/review-rules.md has the same rule table but wasn't updated — please add the Verilog/VHDL rows there as well.
Co-authored-by: Tao Xin <xtao@yzu.edu.cn>
025211e to
7396080
Compare
Description
Implements the Hardware Description Language group requested in #470, adding support for Verilog, SystemVerilog, and VHDL.
Changes include:
.v,.sv,.vhd, and.vhdlfiles, including case-insensitive variants.**/tb_*.{v,sv,vhd,vhdl}**/*_tb.{v,sv,vhd,vhdl}.vand.svfiles toverilog.md..vhdand.vhdlfiles tovhdl.md..vextension noteThe
.vextension is shared with the V programming language. Following the Hardware Description scope in #470, this change treats.vas Verilog. The current resolver uses file extensions and cannot distinguish the two languages by content.Type of Change
How Has This Been Tested?
make testpasses locallyAdditional verification:
go test ./internal/config/allowlist/... ./internal/config/rules/... -count=1make checkmake testAll commands pass locally.
Checklist
go fmt,go vet)Related Issues
Closes #1049
Part of #470