Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat/disable start #1461

Merged
merged 4 commits into from
Nov 28, 2022
Merged

feat/disable start #1461

merged 4 commits into from
Nov 28, 2022

Conversation

mds1
Copy link
Contributor

@mds1 mds1 commented Nov 8, 2022

Closes #1453

Example usage:

  • The reentrancy-benign is disabled for the full file
  • All checks are disabled within the neverRunSlitherForThis method
// SPDX-License-Identifier: UNLICENSED
// slither-disable-start reentrancy-benign
pragma solidity ^0.8.16;

import "forge-std/Script.sol";
import {Counter} from "src/Counter.sol";

contract Deploy is Script {
  Counter counter;

  function run() public {
    vm.startBroadcast();
    counter = new Counter();
  }

  function neverRunSlitherForThis() internal {
    // slither-disable-start all
    uint256 x = 5;
    // slither-disable-end all
  }
}

@plotchy
Copy link
Contributor

plotchy commented Nov 8, 2022

This is sick!

@montyly montyly mentioned this pull request Nov 28, 2022
@montyly montyly merged commit a16202a into crytic:dev Nov 28, 2022
@montyly
Copy link
Member

montyly commented Nov 28, 2022

This is really cool. Thanks @mds1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants