Enable Nesting credo check
With two accepted exceptions
This commit is contained in:
+3
-1
@@ -3,9 +3,11 @@
|
|||||||
%{
|
%{
|
||||||
name: "default",
|
name: "default",
|
||||||
checks: %{
|
checks: %{
|
||||||
|
extra: [
|
||||||
|
{Credo.Check.Refactor.Nesting, max_nesting: 3}
|
||||||
|
],
|
||||||
disabled: [
|
disabled: [
|
||||||
{Credo.Check.Refactor.CyclomaticComplexity, []},
|
{Credo.Check.Refactor.CyclomaticComplexity, []},
|
||||||
{Credo.Check.Refactor.Nesting, []},
|
|
||||||
{Credo.Check.Readability.ModuleDoc, []}
|
{Credo.Check.Readability.ModuleDoc, []}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -307,6 +307,7 @@ defmodule Mix.Tasks.Scrobble.Audit do
|
|||||||
Enum.each(artist_issues.sample_tracks, fn %{artist: artist, sample_tracks: tracks} ->
|
Enum.each(artist_issues.sample_tracks, fn %{artist: artist, sample_tracks: tracks} ->
|
||||||
Mix.Shell.IO.info("\n Artist: #{artist}")
|
Mix.Shell.IO.info("\n Artist: #{artist}")
|
||||||
|
|
||||||
|
# credo:disable-for-next-line Credo.Check.Refactor.Nesting
|
||||||
Enum.each(tracks, fn track ->
|
Enum.each(tracks, fn track ->
|
||||||
Mix.Shell.IO.info(" - #{track.title} (from #{track.album})")
|
Mix.Shell.IO.info(" - #{track.title} (from #{track.album})")
|
||||||
end)
|
end)
|
||||||
@@ -343,6 +344,7 @@ defmodule Mix.Tasks.Scrobble.Audit do
|
|||||||
} ->
|
} ->
|
||||||
Mix.Shell.IO.info("\n Album: #{album} by #{artist}")
|
Mix.Shell.IO.info("\n Album: #{album} by #{artist}")
|
||||||
|
|
||||||
|
# credo:disable-for-next-line Credo.Check.Refactor.Nesting
|
||||||
Enum.each(tracks, fn track ->
|
Enum.each(tracks, fn track ->
|
||||||
Mix.Shell.IO.info(" - #{track.title}")
|
Mix.Shell.IO.info(" - #{track.title}")
|
||||||
end)
|
end)
|
||||||
|
|||||||
Reference in New Issue
Block a user