Move Consistency.FileLocation to ./test
authorHaelwenn (lanodan) Monnier <contact@hacktivis.me>
Tue, 13 Oct 2020 17:54:24 +0000 (19:54 +0200)
committerHaelwenn (lanodan) Monnier <contact@hacktivis.me>
Tue, 13 Oct 2020 17:57:45 +0000 (19:57 +0200)
This fixes a compilation fail because of Credo's absence in MIX_ENV=prod

.credo.exs
test/credo/check/consistency/file_location.ex [moved from lib/credo/check/consistency/file_location.ex with 100% similarity]

index 83e34a2b4de5b4fe3e4b0c36dc9cc6e17ee84000..b85898af361f7fe858db104b6206f5e3fd290e5e 100644 (file)
@@ -25,7 +25,7 @@
       #
       # If you create your own checks, you must specify the source files for
       # them here, so they can be loaded by Credo before running the analysis.
-      requires: ["./lib/credo/check/consistency/file_location.ex"],
+      requires: ["./test/credo/check/consistency/file_location.ex"],
       #
       # Credo automatically checks for updates, like e.g. Hex does.
       # You can disable this behaviour below: