Open tcharding opened 10 months ago
CC @dpc for giving me the idea.
The first patch can be removed to see this work in action.
FTR this PR is a proof of concept for introducing semgrep
everywhere. Sorry @clarkmoody this repo is fast becoming the testbed for all the rust-bitcoin
tooling madness we want to introduce :)
Sorry @clarkmoody this repo is fast becoming the testbed for all the
rust-bitcoin
tooling madness we want to introduce :)
checks if there's flake.nix
in the root dir :shrug:
You haven't managed to convert me to nix
yet :)
yet! :D
This is exploratory, adds a
semgrep
config file with a single rule. The idea is that we could usesemgrep
to enforce coding patterns. The downside is it has to be done withgrep
so it is not general enough to enforce "all error types implementstd::error::Error
" - well at least not trivially AFAICT.The added rule shows how grep'able things can be enforced.
ref: https://semgrep.dev/orgs/rust_bitcoin/settings/access