Re-enable Credo CyclomaticComplexity check
This commit is contained in:
@@ -186,6 +186,7 @@ defmodule MusicLibraryWeb.Components.Pagination do
|
||||
@visible_left_pages 3
|
||||
@visible_right_pages 3
|
||||
@middle "..."
|
||||
# credo:disable-for-next-line Credo.Check.Refactor.CyclomaticComplexity
|
||||
defp generate_page_links(pagination_params) do
|
||||
%{
|
||||
total_entries: total_entries,
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user