towerops/lib/towerops_web/controllers/graphql_docs_html
Graham McIntire b5512f2579
Some checks failed
Build base image / Build and push base image (push) Failing after 2s
Production Deployment / Run ExUnit Tests (push) Failing after 58s
Production Deployment / Build and Push Docker Image (push) Has been skipped
fix: resolve credo warnings — refactor decoder_macros complexity and remove unused assign indirection
- Refactored build_field_handler_ast to use pattern-matching function heads
  instead of a large cond block, reducing cyclomatic complexity from 30 to ≤9
- Extracted classify_type_spec and per-type AST builder helpers into separate
  private functions for maintainability
- Removed :previous_interface_stats initialization from show.ex (only
  polling.ex reads it); prev_stats now passed explicitly as a parameter
  to polling functions instead of reaching through socket.assigns
- Updated Polling.poll_sensors, poll_traffic, and poll_traffic_with_state
  to accept prev_stats as an explicit argument
2026-07-25 09:46:19 -05:00
..
index.html.heex fix: resolve credo warnings — refactor decoder_macros complexity and remove unused assign indirection 2026-07-25 09:46:19 -05:00