Credo.CLI.Output.UI.truncate

You're seeing just the function truncate, go back to Credo.CLI.Output.UI module for more information.
Link to this function

truncate(line, max_length)

View Source

Truncate a line to fit within a specified maximum length. Truncation is indicated by a trailing ellipsis (…), and you can override this using an optional third argument.

iex> Credo.CLI.Output.UI.truncate(nil, 7)
""
iex> Credo.CLI.Output.UI.truncate("  7 chars\n", 7)
"  7 ch…"
iex> Credo.CLI.Output.UI.truncate("  more than 7\n", 7)
"  more…"
iex> Credo.CLI.Output.UI.truncate("  more than 7\n", 7, " ...")
"  m ..."
Link to this function

truncate(line, max_length, ellipsis)

View Source