Current section

Files

Jump to
graphqexl lib mix tasks lint.ex
Raw

lib/mix/tasks/lint.ex

defmodule Mix.Tasks.Lint do
@shortdoc """
Perform linting and static analysis using Lefthook as a runner for tools like Credo
"""
def run([]) do
IO.puts "[STARTING] Static Analysis..."
"lefthook" |> System.cmd(["run", "lint"])
IO.puts "[DONE] Static Analysis"
end
end