Skip to content

Commit

Permalink
Add Execution.get_issues_grouped_by_filename/1
Browse files Browse the repository at this point in the history
  • Loading branch information
rrrene committed Jul 30, 2022
1 parent 6dbf87b commit 1261f6c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/credo/execution.ex
Original file line number Diff line number Diff line change
Expand Up @@ -512,6 +512,13 @@ defmodule Credo.Execution do
|> List.flatten()
end

@doc """
Returns all issues grouped by filename for the given `exec` struct.
"""
def get_issues_grouped_by_filename(exec) do
ExecutionIssues.to_map(exec)
end

@doc """
Returns all issues for the given `exec` struct that relate to the given `filename`.
"""
Expand Down

0 comments on commit 1261f6c

Please sign in to comment.