From 2d059c023256d289e19af897f7d83fd44846ba2a Mon Sep 17 00:00:00 2001 From: r4bbit <445106+0x-r4bbit@users.noreply.github.com> Date: Tue, 5 Sep 2023 16:27:08 +0200 Subject: [PATCH] chore: add slither config This is so we can run `slither .` in any of our projects. --- .prettierignore | 2 ++ README.md | 3 ++- slither.config.json | 8 ++++++++ 3 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 slither.config.json diff --git a/.prettierignore b/.prettierignore index 9200384..1f4d2f6 100644 --- a/.prettierignore +++ b/.prettierignore @@ -14,3 +14,5 @@ lcov.info package-lock.json pnpm-lock.yaml yarn.lock + +slither.config.json diff --git a/README.md b/README.md index b5a94d9..1342a53 100644 --- a/README.md +++ b/README.md @@ -69,7 +69,8 @@ following files: ├── .prettierrc.yml ├── .solhint.json ├── foundry.toml -└── remappings.txt +├── remappings.txt +└── slither.config.json ``` ### VSCode Integration diff --git a/slither.config.json b/slither.config.json new file mode 100644 index 0000000..9a2fba9 --- /dev/null +++ b/slither.config.json @@ -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/" + ] +}