Dogma.Formatter.JSON

A machine readable format in JSON.

The JSON structure is like the following example:

{
  "metadata": {
    "dogma_version": "0.3.0",
    "elixir_version": "1.0.5",
    "erlang_version": "Erlang/OTP 10 [erts-7.0.3] [64-bit]",
    "system_architecture": "x86_64-apple-darwin14.5.0"
  },
  "files": [{
      "path": "lib/foo.ex",
      "errors": []
   }, {
      "path": "lib/bar.ex",
      "errors": [{
          "line": 1,
          "rule": "ModuleDoc",
          "message": "Module without @moduledoc detected"
       }, {
          "line": 14,
          "rule": "ComparisonToBoolean",
          "message": "Comparison to a boolean is useless"
       }
      ]
  }],
  "summary": {
    "error_count": 2,
    "inspected_file_count": 2
  }
}
Source

Summary

finish(scripts)

Runs at the end of the test suite, printing json

script()

Runs after each script is tested, printing nothing

start()

Runs at the start of the test suite, printing nothing

Functions

finish(scripts)

Runs at the end of the test suite, printing json.

Source
script()

Runs after each script is tested, printing nothing.

Source
start()

Runs at the start of the test suite, printing nothing.

Source