Re-enable Credo CyclomaticComplexity check

This commit is contained in:
Claudio Ortolina
2026-03-06 10:08:25 +00:00
parent d3ae3a7381
commit a23f772c04
4 changed files with 3 additions and 1 deletions
@@ -254,6 +254,7 @@ defmodule MusicLibraryWeb.StatsComponents do
# The Tailwind build step requires all needed classes to be explicitly referenced
# in the source code, and not dynamically generated. This implies that one cannot
# (for example) interpolate a number in a class name.
# credo:disable-for-next-line Credo.Check.Refactor.CyclomaticComplexity
defp stats_class(collection) do
case Enum.count(collection) do
1 -> "grid-cols-1"