Linting rule only for dev and test
Production build broke because our custom lint rule was compiled. The credo linter is not available and not necessary in production. Solution: create separate directory for dev tools.
This commit is contained in:
parent
04a736765d
commit
cf7df3111f
@ -41,7 +41,7 @@
|
|||||||
# If you create your own checks, you must specify the source files for
|
# 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.
|
# them here, so they can be loaded by Credo before running the analysis.
|
||||||
#
|
#
|
||||||
requires: ["lib/firehose/checks/"],
|
requires: ["lib_dev/firehose/checks/"],
|
||||||
#
|
#
|
||||||
# If you want to enforce a style guide and need a more traditional linting
|
# If you want to enforce a style guide and need a more traditional linting
|
||||||
# experience, you can change `strict` to `true` below:
|
# experience, you can change `strict` to `true` below:
|
||||||
|
|||||||
@ -32,7 +32,8 @@ defmodule Firehose.MixProject do
|
|||||||
end
|
end
|
||||||
|
|
||||||
# Specifies which paths to compile per environment.
|
# Specifies which paths to compile per environment.
|
||||||
defp elixirc_paths(:test), do: ["lib", "test/support"]
|
defp elixirc_paths(:test), do: ["lib", "lib_dev", "test/support"]
|
||||||
|
defp elixirc_paths(:dev), do: ["lib", "lib_dev"]
|
||||||
defp elixirc_paths(_), do: ["lib"]
|
defp elixirc_paths(_), do: ["lib"]
|
||||||
|
|
||||||
# Specifies your project dependencies.
|
# Specifies your project dependencies.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user