Move deny(clippy) to command line arguments in the CI job
Before adoption: this commit came in with the history the project adopted, so no landing records it.
authored by David Tolnay · committed by David Tolnay · parent 737f78c · Browse files · 5 files·+6 added−10 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
5 files+6 added−10 removed
- other:+6 added−10 removed
Provenance
- Commit
8f16ac0- Tree
15fc82a- Author
David Tolnay <dtolnay@gmail.com>- Committer
David Tolnay <dtolnay@gmail.com>- Parent
737f78c
5 files changed+6 added−10 removed
modified:.github/workflows/ci.yml+6 added-6 removed
153 unmodified linesExpand all154155156157158159160161162163158159160161162163153 unmodified linesExpand all - uses: actions/checkout@v2 - uses: dtolnay/rust-toolchain@clippy # The need for -Aredundant_field_names here is a Clippy bug. # https://github.com/rust-lang/rust-clippy/issues/5356 - run: cd serde && cargo clippy --features rc,unstable -- -D clippy::all -A clippy::redundant_field_names - run: cd serde_derive && cargo clippy -- -D clippy::all - run: cd serde_derive_internals && cargo clippy -- -D clippy::all - run: cd serde_test && cargo clippy -- -D clippy::all -A clippy::redundant_field_names - run: cd test_suite && cargo clippy --tests --features unstable -- -D clippy::all -A clippy::redundant_field_names - run: cd test_suite/no_std && cargo clippy -- -D clippy::all -A clippy::redundant_field_names - run: cd serde && cargo clippy --features rc,unstable -- -Dclippy::all -Dclippy::pedantic -Aclippy::redundant_field_names - run: cd serde_derive && cargo clippy -- -Dclippy::all -Dclippy::pedantic - run: cd serde_derive_internals && cargo clippy -- -Dclippy::all -Dclippy::pedantic - run: cd serde_test && cargo clippy -- -Dclippy::all -Dclippy::pedantic -Aclippy::redundant_field_names - run: cd test_suite && cargo clippy --tests --features unstable -- -Dclippy::all -Aclippy::redundant_field_names - run: cd test_suite/no_std && cargo clippy -- -Dclippy::all -Aclippy::redundant_field_namesmodified:serde/src/lib.rs-1 removed
92 unmodified lines93 // https://github.com/serde-rs/serde/issues/81294 #![cfg_attr(feature = "unstable", feature(never_type))]95 #![allow(unknown_lints, bare_trait_objects, deprecated)]96 #![cfg_attr(feature = "cargo-clippy", allow(renamed_and_removed_lints))]97-#![cfg_attr(feature = "cargo-clippy", deny(clippy, clippy_pedantic))]97 // Ignored clippy and clippy_pedantic lints98 #![cfg_attr(99 feature = "cargo-clippy",100 allow(197 unmodified linesmodified:serde_derive/src/lib.rs-1 removed
13 unmodified lines14 //! [https://serde.rs/derive.html]: https://serde.rs/derive.html15 16 #![doc(html_root_url = "https://docs.rs/serde_derive/1.0.130")]17 #![allow(unknown_lints, bare_trait_objects)]18-#![deny(clippy::all, clippy::pedantic)]18 // Ignored clippy lints19 #![allow(20 // clippy false positive: https://github.com/rust-lang/rust-clippy/issues/705421 clippy::branches_sharing_code,86 unmodified linesmodified:serde_derive_internals/lib.rs-1 removed
1 #![doc(html_root_url = "https://docs.rs/serde_derive_internals/0.26.0")]2 #![allow(unknown_lints, bare_trait_objects)]3-#![deny(clippy::all, clippy::pedantic)]3 // Ignored clippy lints4 #![allow(5 clippy::cognitive_complexity,6 // clippy bug: https://github.com/rust-lang/rust-clippy/issues/757543 unmodified linesmodified:serde_test/src/lib.rs-1 removed
144 unmodified lines145 //! ```146 147 #![doc(html_root_url = "https://docs.rs/serde_test/1.0.130")]148 #![cfg_attr(feature = "cargo-clippy", allow(renamed_and_removed_lints))]149-#![cfg_attr(feature = "cargo-clippy", deny(clippy, clippy_pedantic))]149 // Ignored clippy lints150 #![cfg_attr(feature = "cargo-clippy", allow(float_cmp, needless_doctest_main))]151 // Ignored clippy_pedantic lints152 #![cfg_attr(38 unmodified lines