Commit e9b5eebe authored by smartcontracts's avatar smartcontracts Committed by GitHub

feat: add sol-expectrevert-no-args locally (#12342)

Adds the sol-expectrevert-no-args semgrep rule locally.
parent 1f62270a
...@@ -23,3 +23,10 @@ rules: ...@@ -23,3 +23,10 @@ rules:
severity: ERROR severity: ERROR
message: Javadoc-style comments are not allowed, use `///` style doc comments instead message: Javadoc-style comments are not allowed, use `///` style doc comments instead
pattern-regex: (\/\*\*\n(\s+\*\s.*\n)+\s+\*\/) pattern-regex: (\/\*\*\n(\s+\*\s.*\n)+\s+\*\/)
- id: sol-expectrevert-no-args
languages: [solidity]
severity: ERROR
message: vm.expectRevert() must specify the revert reason
patterns:
- pattern: vm.expectRevert()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment