Enable pedantic lints on test suite in CI

This commit is contained in:
David Tolnay 2021-11-04 20:21:43 -07:00
parent 8f16ac0a94
commit 1fcda0ebdb
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82
9 changed files with 23 additions and 3 deletions

View File

@ -159,5 +159,5 @@ jobs:
- 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_names
- run: cd test_suite && cargo clippy --tests --features unstable -- -Dclippy::all -Dclippy::pedantic -Aclippy::redundant_field_names
- run: cd test_suite/no_std && cargo clippy -- -Dclippy::all -Dclippy::pedantic -Aclippy::redundant_field_names

View File

@ -3,6 +3,7 @@
clippy::from_over_into,
// Clippy bug: https://github.com/rust-lang/rust-clippy/issues/7422
clippy::nonstandard_macro_braces,
clippy::too_many_lines,
clippy::trivially_copy_pass_by_ref
)]

View File

@ -1,3 +1,5 @@
#![allow(clippy::items_after_statements, clippy::used_underscore_binding)]
use serde::{Deserialize, Deserializer};
use serde_test::{assert_de_tokens, assert_de_tokens_error, Token};

View File

@ -1,6 +1,8 @@
#![allow(
clippy::decimal_literal_representation,
clippy::empty_enum,
clippy::manual_assert,
clippy::needless_pass_by_value,
clippy::unreadable_literal
)]
#![cfg_attr(feature = "unstable", feature(never_type))]

View File

@ -6,9 +6,14 @@
#![allow(
unknown_lints,
mixed_script_confusables,
clippy::items_after_statements,
clippy::missing_errors_doc,
clippy::missing_panics_doc,
clippy::must_use_candidate,
// Clippy bug: https://github.com/rust-lang/rust-clippy/issues/7422
clippy::nonstandard_macro_braces,
clippy::ptr_arg,
clippy::too_many_lines,
clippy::trivially_copy_pass_by_ref
)]

View File

@ -1,5 +1,9 @@
#![deny(trivial_numeric_casts)]
#![allow(clippy::enum_variant_names, clippy::redundant_field_names)]
#![allow(
clippy::enum_variant_names,
clippy::redundant_field_names,
clippy::too_many_lines
)]
mod bytes;

View File

@ -1,3 +1,5 @@
#![allow(clippy::used_underscore_binding)]
use serde::{Deserialize, Serialize};
#[test]

View File

@ -1,3 +1,5 @@
#![allow(clippy::type_repetition_in_bounds)]
#[test]
fn test_gen_custom_serde() {
#[derive(serde::Serialize, serde::Deserialize)]

View File

@ -1,3 +1,5 @@
#![allow(clippy::similar_names)]
use serde::de::value::{self, MapAccessDeserializer};
use serde::de::{IntoDeserializer, MapAccess, Visitor};
use serde::{Deserialize, Deserializer};