@@ -125,7 +125,7 @@ impl CodeExtractor {
125125
126126 // Process files in parallel with better progress tracking
127127 // Split files into smaller chunks for better progress visibility
128- let chunk_size = ( total_files / 20 ) . max ( 1 ) . min ( 10 ) ; // Process in smaller chunks of 1-10 files
128+ let chunk_size = ( total_files / 20 ) . clamp ( 1 , 10 ) ; // Process in smaller chunks of 1-10 files
129129 let mut all_chunks = Vec :: new ( ) ;
130130 let mut processed_files = 0 ;
131131
@@ -157,6 +157,7 @@ impl CodeExtractor {
157157 Ok ( all_chunks)
158158 }
159159
160+ #[ allow( dead_code) ]
160161 fn should_process_file ( & self , path : & Path , options : & ExtractionOptions ) -> bool {
161162 Self :: should_process_file_static ( path, options)
162163 }
@@ -211,6 +212,7 @@ impl CodeExtractor {
211212 Self :: extract_chunks_from_tree_static ( & tree, & content, file_path, language, options)
212213 }
213214
215+ #[ allow( dead_code) ]
214216 fn extract_chunks_from_tree (
215217 & self ,
216218 tree : & Tree ,
@@ -232,8 +234,7 @@ impl CodeExtractor {
232234 let mut chunks = Vec :: new ( ) ;
233235
234236 // Extract comment ranges for the entire file
235- let file_comment_ranges =
236- Self :: extract_comment_ranges_static ( tree, source_code, language) ;
237+ let file_comment_ranges = Self :: extract_comment_ranges_static ( tree, source_code, language) ;
237238
238239 let query_str = match language {
239240 Language :: Rust => "
@@ -283,6 +284,8 @@ impl CodeExtractor {
283284 Ok ( chunks)
284285 }
285286
287+ #[ allow( dead_code) ]
288+ #[ allow( clippy:: too_many_arguments) ]
286289 fn node_to_chunk (
287290 & self ,
288291 node : Node ,
@@ -373,6 +376,7 @@ impl CodeExtractor {
373376 } )
374377 }
375378
379+ #[ allow( dead_code) ]
376380 fn extract_name ( & self , node : Node , source_code : & str ) -> Option < String > {
377381 Self :: extract_name_static ( node, source_code)
378382 }
@@ -412,6 +416,7 @@ impl CodeExtractor {
412416 None
413417 }
414418
419+ #[ allow( dead_code) ]
415420 fn normalize_indentation (
416421 & self ,
417422 content : & str ,
@@ -521,6 +526,7 @@ impl CodeExtractor {
521526 ( normalized_text, final_ranges)
522527 }
523528
529+ #[ allow( dead_code) ]
524530 fn extract_comment_ranges (
525531 & self ,
526532 tree : & Tree ,
0 commit comments