Guide

Module VersionHex DocsLicenseCoverage Status

Guide is a tool that turns sobelow static code analysis results into markdown, that can be used to decorate pull requests of GitHub.

This tool should be run with the following command:

mix guide --source <url to markdown file> --repo <name of repo in GitHub> --commit <commit hash of the latest commit>

To decorate a PR you have to run these steps inside of your CI/CD pipeline (e.g. GitHub Actions):

  1. mix sobelow --skip --format=json --out=./sobelow.results.json
  2. mix guide --source <url to markdown file> --repo <name of repo in GitHub> --commit <commit hash of the latest commit>
  3. gh pr comment <PR Number> --repo <name of repo in GitHub> -F comment.md

Command line options

Installation

The package can be installed by adding guide to your list of dependencies in mix.exs:

def deps do
[
{:guide, "~> 0.0.3", only: [:dev, :test], runtime: false}
]
end