Add analyze mix alias to run the same credo checks we use in CI
authorMark Felder <feld@FreeBSD.org>
Tue, 4 Aug 2020 13:55:40 +0000 (08:55 -0500)
committerMark Felder <feld@FreeBSD.org>
Tue, 4 Aug 2020 13:55:40 +0000 (08:55 -0500)
mix.exs

diff --git a/mix.exs b/mix.exs
index 0e723c15f28542d2f171ae567b22a9a4873c57ec..63142dee768c8891c4f3501675069e89b6409cf8 100644 (file)
--- a/mix.exs
+++ b/mix.exs
@@ -214,7 +214,8 @@ defmodule Pleroma.Mixfile do
       "ecto.setup": ["ecto.create", "ecto.migrate", "run priv/repo/seeds.exs"],
       "ecto.reset": ["ecto.drop", "ecto.setup"],
       test: ["ecto.create --quiet", "ecto.migrate", "test"],
-      docs: ["pleroma.docs", "docs"]
+      docs: ["pleroma.docs", "docs"],
+      analyze: ["credo --strict --only=warnings,todo,fixme,consistency,readability"]
     ]
   end