GitHub Actions-compatible compiler warnings/errors

When running Dialyzer in CI, we use the --format github option. This formats errors like:

::warning file=lib/file.ex,line=19,title=no_return::Function fail/0 has no local return.

This allows GitHub Actions to parse the errors, and ‘comment’ them inline in Github:

I’m wondering if the Elixir compiler supports this option (I couldn’t find such an option in the mix docs however), and if not, where the relevant code in the Elixir compiler which emits warnings/errors is located if I wanted to consider contributing this myself.

Thanks!

1 Like

Looks like it’s located here:

1 Like

Thanks! This is helpful to see how Dialyzer implements it. I wasn’t clear in my message unfortunately - I am interested to see where this could be added to the compiler itself.