-
 defmodule Credo.CLI.Output.IssuesGroupedByCategory do
   alias Credo.CLI.Filter
   alias Credo.CLI.Output

  alias Credo.Config
  alias Credo.Issue

  @many_source_files 60
  @indent 8
  @per_category 5
  @order [:design, :readability, :refactor, :warning, :consistency]
  @category_colors [
    design: :olive,
    readability: :blue,

      |> Enum.into(%{})

    categories
    |> Sorter.ensure(@category_starting_order, @category_ending_order)
    |> Enum.each(fn(category) ->
        print_issues(category, issue_map[category], source_file_map, config, term_width)
      end)
