crytic / crytic/slither

read from `--stdin`

Open
#2,057 2 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Python
Stars
6.4k
Forks
1.1k
PR merge metrics
No merged PRs in 30d

Description

### Describe the desired feature

Useful for dev tooling.

Possible APIs
```
cat src/Contract.sol | slither - --stdin-filename src/Contract.sol
cat src/Contract.sol | slither - --base-path src/
```

`solc` API is like:
```
cat src/Contract.sol | solc - --allow-paths "*," --base-path ./src
```
`--base-path` is necessary for import resolution. Probably `--stdin-filename` (following language tooling conventions) would be better, as it provides more information.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.