chore: add slither config (#4)

This is so we can run `slither .` in any of our projects.
This commit is contained in:
r4bbit 2023-09-07 10:25:03 +02:00 committed by GitHub
parent 013c9b7e9f
commit 3def4811ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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/"
]
}