diff --git a/ci_scripts/dead_code/process_periphery_output.rb b/ci_scripts/dead_code/process_periphery_output.rb index 820170be935..e9accb53644 100644 --- a/ci_scripts/dead_code/process_periphery_output.rb +++ b/ci_scripts/dead_code/process_periphery_output.rb @@ -11,16 +11,10 @@ output_json_file = ARGV[1] unused_code = {} -processed_lines = 0 -matched_lines = 0 -skipped_lines = 0 File.foreach(periphery_output_file) do |line| line.chomp! - # Increment the total processed lines - processed_lines += 1 - # Process lines that contain ".swift" and either "unused" or "warning" (case-insensitive) if line.include?('.swift') && (line.downcase.include?('unused') || line.downcase.include?('warning')) # Split the line into up to 4 parts based on colon @@ -48,14 +42,11 @@ # Assign the same string as both key and value unused_code[full_warning] = full_warning - matched_lines += 1 else puts "Skipping improperly formatted line: #{line}" - skipped_lines += 1 end else # Handle lines that don't match criteria - skipped_lines += 1 end end