This is an automated email from the ASF dual-hosted git repository.
tustvold pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/arrow-rs.git
The following commit(s) were added to refs/heads/master by this push:
new 901fbe877ff Minor: fixup contribution guide (#5952)
901fbe877ff is described below
commit 901fbe877ffad88fda843fa32a509f2bb09564c5
Author: Andrew Lamb <[email protected]>
AuthorDate: Tue Jun 25 12:03:24 2024 -0400
Minor: fixup contribution guide (#5952)
---
CONTRIBUTING.md | 11 ++---------
1 file changed, 2 insertions(+), 9 deletions(-)
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 11393500741..4810e748f0b 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -128,23 +128,16 @@ cargo +stable fmt --all -- --check
## Clippy Lints
-We recommend using `clippy` for checking lints during development. While we do
not yet enforce `clippy` checks, we recommend not introducing new `clippy`
errors or warnings.
+We use `clippy` for checking lints during development, and CI runs `clippy`
checks.
Run the following to check for `clippy` lints:
```bash
# run clippy with default settings
-cargo clippy
+cargo clippy --workspace --all-targets --all-features -- -D warnings
```
-More comprehensive `clippy` checks can be run by adding flags:
-
-```bash
-# run clippy on the arrow crate with all features enabled, targeting all
tests, examples, and benchmarks
-cargo clippy -p arrow --all-features --all-targets
-```
-
If you use Visual Studio Code with the `rust-analyzer` plugin, you can enable
`clippy` to run each time you save a file. See
https://users.rust-lang.org/t/how-to-use-clippy-in-vs-code-with-rust-analyzer/41881.
One of the concerns with `clippy` is that it often produces a lot of false
positives, or that some recommendations may hurt readability. We do not have a
policy of which lints are ignored, but if you disagree with a `clippy` lint,
you may disable the lint and briefly justify it.