feat: support // slither-disable-start <detectors>
and // slither-disable-end <detectors>
#1453
Labels
enhancement
New feature or request
Describe the desired feature
Right now you can only disable detectors for the next line, but it would very helpful to be able to disable them for larger blocks of code. A sample use case is writing solidity scripts with foundry: reentrancy is not a concern at all so I can disable reentrancy for the file, but I still want to run uninitialized variable checks to avoid passing the zero address as function inputs.
I feel like this shouldn't be too hard to implement since
// slither-disable-next-line
is already implemented, so if you can provide some guidance on how to add this I'm happy to take a shot to get this merged sooner 🙂Sample usage to disable some reentrancy checks for the full file (I think this only disables one category of reentrancy checks, not sure if there's a shorthand for disabling all of them)
The text was updated successfully, but these errors were encountered: