aboutsummaryrefslogtreecommitdiff
path: root/src/validation.cpp
diff options
context:
space:
mode:
authorAva Chow <github@achow101.com>2024-06-12 17:19:48 -0400
committerAva Chow <github@achow101.com>2024-06-12 17:19:48 -0400
commitff21eb2def701585fb1c286d8aef6dee86be48c3 (patch)
tree77527afd14d7035520399b1a9e4752cf63b6ca4b /src/validation.cpp
parent011a895a82df8971b7fed4fcd090afb638c4c0d7 (diff)
parent0fcbfdb7ad172e518a10dd6e5be4cb6bb1158784 (diff)
downloadbitcoin-ff21eb2def701585fb1c286d8aef6dee86be48c3.tar.xz
Merge bitcoin/bitcoin#30219: Lint: Support running individual lint checks
0fcbfdb7ad172e518a10dd6e5be4cb6bb1158784 Support running individual lint checks (David Gumberg) Pull request description: This PR was split out from #29965: Adds support for running individual tests in the rust lint suite by passing `--lint=LINT_TO_RUN` to the lint runner. This PR also adds a corresponding help message. When running with `cargo run`, arguments after a double dash (`--`) are passed to the binary instead of the cargo command. For example, in order to run the linter check that tabs are not used as whitespace: ```console cd test/lint/test_runner && cargo run -- --lint=tabs_whitespace ``` ACKs for top commit: maflcko: ACK 0fcbfdb7ad172e518a10dd6e5be4cb6bb1158784 achow101: ACK 0fcbfdb7ad172e518a10dd6e5be4cb6bb1158784 marcofleon: Tested ACK 0fcbfdb7ad172e518a10dd6e5be4cb6bb1158784. Ran `cargo run` with various of the individual tests and with bad input. Also ran it with no arguments. Everything works as expected and help message looks good. Tree-SHA512: 48fe4aa9fbb2acef5f8e3c17382ae22e0e350ae6ad9aeeb1a3c0a9192de98809f98728e32b8db24a36906ace999e35626ebd6cb2ca05f74146d21e9b6fb14615
Diffstat (limited to 'src/validation.cpp')
0 files changed, 0 insertions, 0 deletions