chore: add slither config

This is so we can run `slither .` in any of our projects.
This commit is contained in:
r4bbit 2023-09-05 16:27:08 +02:00
parent 43a1dff852
commit 2d059c0232
No known key found for this signature in database
GPG Key ID: E95F1E9447DC91A9
3 changed files with 12 additions and 1 deletions

View File

@ -14,3 +14,5 @@ lcov.info
package-lock.json
pnpm-lock.yaml
yarn.lock
slither.config.json

View File

@ -69,7 +69,8 @@ following files:
├── .prettierrc.yml
├── .solhint.json
├── foundry.toml
└── remappings.txt
├── remappings.txt
└── slither.config.json
```
### VSCode Integration

8
slither.config.json Normal file
View File

@ -0,0 +1,8 @@
{
"detectors_to_exclude": "naming-convention,reentrancy-events,solc-version,timestamp",
"filter_paths": "(lib|test)",
"solc_remaps": [
"@openzeppelin/contracts=lib/openzeppelin-contracts/contracts/",
"forge-std/=lib/forge-std/src/"
]
}