Extract helper functions to reduce cyclomatic complexity: - telemetry/database_metrics.ex: Extract emit_packets_table_telemetry/7 Moves multiple || 0 operators into separate function Reduces complexity from 10 to within limits - packet_utils.ex: Extract build_weather_check_query/1 Moves Ecto query building with multiple or conditions Reduces complexity from 11 to within limits - packet.ex: Extract merge_extracted_data/3 Moves telemetry and parser data merging logic Reduces complexity from 11 to within limits Fixes 3 Credo cyclomatic complexity issues (7 remaining). |
||
|---|---|---|
| .. | ||
| database_metrics.ex | ||