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

maint(ci): apply expectRevert rule to tests (#12543)

Updates semgrep config to apply expectRevert to tests. Fixes a few
instances where this wasn't being followed.
parent 5f2cc843
......@@ -105,7 +105,7 @@ contract ETHLiquidity_Test is CommonTest {
uint256 amount = STARTING_LIQUIDITY_BALANCE + 1;
// Act
vm.expectRevert();
vm.expectRevert(); // nosemgrep: sol-safety-expectrevert-no-args
ethLiquidity.mint(amount);
// Assert
......
......@@ -314,7 +314,7 @@ contract SuperchainWETH_Test is CommonTest {
superchainWeth.deposit{ value: _amount }();
// Act
vm.expectRevert();
vm.expectRevert(); // nosemgrep: sol-safety-expectrevert-no-args
superchainWeth.crosschainBurn(_from, _amount + 1);
}
......
......@@ -351,7 +351,7 @@ contract MerkleTrie_get_Test is Test {
// Ambiguous revert check- all that we care is that it *does* fail. This case may
// fail within different branches.
vm.expectRevert();
vm.expectRevert(); // nosemgrep: sol-safety-expectrevert-no-args
MerkleTrie.get(key, proof, root);
}
......
......@@ -37,7 +37,7 @@ rules:
- pattern: vm.expectRevert()
paths:
exclude:
- packages/contracts-bedrock/test
- packages/contracts-bedrock/test/dispute/WETH98.t.sol
- id: sol-style-input-arg-fmt
languages: [solidity]
......@@ -80,7 +80,6 @@ rules:
exclude:
- packages/contracts-bedrock/test/safe-tools/CompatibilityFallbackHandler_1_3_0.sol
- id: sol-style-malformed-require
languages: [solidity]
severity: ERROR
......
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