Skip to content

Commit 48ead17

Browse files
committed
clippy::too_many_lines
1 parent 8fd4dc9 commit 48ead17

6 files changed

Lines changed: 8 additions & 1 deletion

File tree

crates/stackable-operator/src/commons/affinity.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ mod tests {
139139
use crate::config::fragment;
140140

141141
#[test]
142+
#[expect(clippy::too_many_lines)]
142143
fn merge_new_attributes() {
143144
let default_affinity = StackableAffinityFragment {
144145
pod_affinity: None,

crates/stackable-operator/src/crd/git_sync/v1alpha1_impl.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -388,6 +388,7 @@ mod tests {
388388
}
389389

390390
#[test]
391+
#[expect(clippy::too_many_lines)]
391392
fn test_multiple_git_syncs() {
392393
let git_sync_spec = r#"
393394
# GitSync with defaults

crates/stackable-operator/src/crd/git_sync/v1alpha2_impl.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ impl GitSyncResources {
8484
}
8585

8686
/// Creates `GitSyncResources` from the given `GitSync` specifications.
87+
#[expect(clippy::too_many_lines)]
8788
pub fn new(
8889
git_syncs: &[GitSync],
8990
resolved_product_image: &ResolvedProductImage,
@@ -432,6 +433,7 @@ mod tests {
432433
}
433434

434435
#[test]
436+
#[expect(clippy::too_many_lines)]
435437
fn test_multiple_git_syncs() {
436438
let git_sync_spec = r#"
437439
# GitSync with defaults
@@ -906,6 +908,7 @@ name: content-from-git-2
906908
}
907909

908910
#[test]
911+
#[expect(clippy::too_many_lines)]
909912
fn test_git_sync_ssh() {
910913
let git_sync_spec = r#"
911914
# GitSync using SSH

crates/stackable-operator/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
#![expect(clippy::missing_errors_doc)]
44
#![expect(clippy::must_use_candidate)]
55
#![expect(clippy::return_self_not_must_use)]
6-
#![expect(clippy::too_many_lines)]
76
#![expect(clippy::implicit_hasher)]
87
#![expect(clippy::doc_link_with_quotes)]
98
#![expect(clippy::missing_panics_doc)]

crates/stackable-operator/src/product_config_utils.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -809,6 +809,7 @@ mod tests {
809809
Some(collection! {property.to_string() => property.to_string()})
810810
}
811811

812+
#[expect(clippy::too_many_lines)]
812813
fn build_role_and_group(
813814
role_config: bool,
814815
group_config: bool,
@@ -1512,6 +1513,7 @@ mod tests {
15121513
}
15131514

15141515
#[test]
1516+
#[expect(clippy::too_many_lines)]
15151517
fn test_validate_all_roles_and_groups_config() {
15161518
let role_1 = "role_1";
15171519
let role_2 = "role_2";

crates/stackable-operator/src/product_logging/spec.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -561,6 +561,7 @@ mod tests {
561561
}
562562

563563
#[test]
564+
#[expect(clippy::too_many_lines)]
564565
fn merge_automatic_container_log_config_fragment() {
565566
// no overriding log level + no default log level -> no log level
566567
assert_eq!(

0 commit comments

Comments
 (0)