MixMachine

Make Mix compilation produce report that is machine-readable.

Currently supported formats:

Usage

Add it to list of your dependencies:

def deps do
[
{:mix_machine, "~> 0.1.0"}
]
end

And now you can use:

$ mix compile.machine

That will produce report.json with SARIF format.

Configration

Current behaviour can be controlled by few flags:

In addition to CLI flags these options can be set in project/0 function in mix.exs in :machine keyword list (it has lower precedence than CLI flags):

Example

def project do
[
# …
machine: [
format: :code_climate,
output: "codeclimate.json",
pretty: true,
root: ".."
]
]

License

See LICENSE.