Replace expensive length/1 comparisons with direct list comparisons or Enum.empty?/1 checks (13 instances in source code and tests). Add module aliases for Phoenix.HTML.Form and Towerops.Accounts.Scope to reduce nested module references. Changes: - Replace length(list) > 0 with list != [] or refute Enum.empty?(list) - Add Phoenix.HTML.Form alias in CoreComponents - Add Towerops.Accounts.Scope alias in ConnCase test helper This eliminates all credo warnings and software design suggestions. |
||
|---|---|---|
| .. | ||
| admin | ||
| alert_live | ||
| equipment_live | ||
| graph_live | ||
| org_live | ||
| site_live | ||
| dashboard_live.ex | ||
| dashboard_live.html.heex | ||