File tree Expand file tree Collapse file tree 5 files changed +17
-0
lines changed
Expand file tree Collapse file tree 5 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -235,11 +235,13 @@ pub enum ConfigAction {
235235
236236impl OutputFormat {
237237 /// Check if format supports colored output
238+ #[ allow( dead_code) ]
238239 pub fn supports_color ( & self ) -> bool {
239240 matches ! ( self , OutputFormat :: Text | OutputFormat :: Html | OutputFormat :: Markdown )
240241 }
241242
242243 /// Get file extension for format
244+ #[ allow( dead_code) ]
243245 pub fn file_extension ( & self ) -> & ' static str {
244246 match self {
245247 OutputFormat :: Text => "txt" ,
@@ -252,6 +254,7 @@ impl OutputFormat {
252254 }
253255
254256 /// Get MIME type for format
257+ #[ allow( dead_code) ]
255258 pub fn mime_type ( & self ) -> & ' static str {
256259 match self {
257260 OutputFormat :: Text => "text/plain" ,
@@ -278,6 +281,7 @@ impl Language {
278281 }
279282
280283 /// Get file extensions for language
284+ #[ allow( dead_code) ]
281285 pub fn file_extensions ( & self ) -> Vec < & ' static str > {
282286 match self {
283287 Language :: Java => vec ! [ "java" ] ,
Original file line number Diff line number Diff line change @@ -20,12 +20,15 @@ pub struct ComparisonResult {
2020 pub target_file : PathBuf ,
2121 pub language : Language ,
2222 pub diff_result : DiffResult ,
23+ #[ allow( dead_code) ]
2324 pub classified_changes : Vec < DetailedChangeClassification > ,
2425 pub refactoring_patterns : Vec < RefactoringPattern > ,
2526 pub similarity_scores : Option < HashMap < String , f64 > > ,
2627 pub cross_file_moves : Vec < FunctionMove > ,
2728 pub stats : ComparisonStats ,
29+ #[ allow( dead_code) ]
2830 pub source_ast : Option < ASTNode > ,
31+ #[ allow( dead_code) ]
2932 pub target_ast : Option < ASTNode > ,
3033}
3134
@@ -38,6 +41,7 @@ pub struct AnalysisResult {
3841 pub symbols : SymbolTable ,
3942 pub complexity_metrics : Option < FunctionComplexityMetrics > ,
4043 pub dependency_info : Option < DependencyGraph > ,
44+ #[ allow( dead_code) ]
4145 pub function_signatures : Option < HashMap < String , String > > ,
4246 pub processing_time : Duration ,
4347}
Original file line number Diff line number Diff line change @@ -47,6 +47,7 @@ impl Default for CrossFileTrackerConfig {
4747/// Cross-file function tracker
4848pub struct CrossFileTracker {
4949 config : CrossFileTrackerConfig ,
50+ #[ allow( dead_code) ]
5051 language : Language ,
5152 hungarian_matcher : HungarianMatcher ,
5253 similarity_scorer : SimilarityScorer ,
Original file line number Diff line number Diff line change @@ -58,12 +58,16 @@ pub struct TreeEditDistance {
5858#[ derive( Debug , Clone ) ]
5959struct TreeInfo {
6060 /// Number of nodes in subtree
61+ #[ allow( dead_code) ]
6162 node_count : usize ,
6263 /// Depth of subtree
64+ #[ allow( dead_code) ]
6365 depth : usize ,
6466 /// Hash of subtree structure
67+ #[ allow( dead_code) ]
6568 structure_hash : String ,
6669 /// Leftmost leaf descendant
70+ #[ allow( dead_code) ]
6771 leftmost_leaf : usize ,
6872 /// Keyroots for Zhang-Shasha algorithm
6973 keyroots : Vec < usize > ,
Original file line number Diff line number Diff line change @@ -224,12 +224,16 @@ pub struct AnalyzeRequest {
224224#[ derive( Debug , Deserialize , Default ) ]
225225pub struct AnalyzeOptions {
226226 #[ serde( default ) ]
227+ #[ allow( dead_code) ]
227228 pub include_complexity : bool ,
228229 #[ serde( default ) ]
230+ #[ allow( dead_code) ]
229231 pub include_dependencies : bool ,
230232 #[ serde( default ) ]
233+ #[ allow( dead_code) ]
231234 pub include_signatures : bool ,
232235 #[ serde( default = "default_threshold" ) ]
236+ #[ allow( dead_code) ]
233237 pub similarity_threshold : f64 ,
234238}
235239
You can’t perform that action at this time.
0 commit comments