File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -96,7 +96,18 @@ impl CodeValidator {
9696 // Walk through all Cargo.toml files to find crates
9797 let crates = self . find_workspace_crates ( ) ?;
9898
99+ // Crates that legitimately contain test-related files as part of their implementation
100+ // (not unit tests, but testing infrastructure code)
101+ let excluded_crates = [ "cargo-wrt" , "wrt-build-core" ] ;
102+
99103 for crate_path in crates {
104+ // Skip excluded crates that legitimately contain test infrastructure
105+ if let Some ( crate_name) = crate_path. file_name ( ) . and_then ( |n| n. to_str ( ) ) {
106+ if excluded_crates. contains ( & crate_name) {
107+ continue ;
108+ }
109+ }
110+
100111 let src_dir = crate_path. join ( "src" ) ;
101112 if src_dir. exists ( ) {
102113 self . check_directory_for_test_files ( & src_dir, & mut errors) ?;
You can’t perform that action at this time.
0 commit comments