summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsharils <sharils@users.noreply.github.com>2017-12-26 22:13:05 +0800
committersharils <sharils@users.noreply.github.com>2018-01-10 20:53:02 +0800
commit29acafdaf4f59861aeff64c5f56a584e40260c5e (patch)
tree40112e0a3de6e18d3336263336d8cf2fd3b34409
parente43e7065da17f45e4cce127a319ceee0a0311883 (diff)
downloadale-29acafdaf4f59861aeff64c5f56a584e40260c5e.zip
Work around hot-reloading issue
See https://github.com/phoenixframework/phoenix/issues/1165 for more detail
-rw-r--r--ale_linters/elixir/credo.vim2
-rw-r--r--ale_linters/elixir/dogma.vim2
2 files changed, 2 insertions, 2 deletions
diff --git a/ale_linters/elixir/credo.vim b/ale_linters/elixir/credo.vim
index 3699dd23..af2ff48a 100644
--- a/ale_linters/elixir/credo.vim
+++ b/ale_linters/elixir/credo.vim
@@ -32,6 +32,6 @@ endfunction
call ale#linter#Define('elixir', {
\ 'name': 'credo',
\ 'executable': 'mix',
-\ 'command': 'mix credo suggest --format=flycheck --read-from-stdin %s',
+\ 'command': 'mix help credo && mix credo suggest --format=flycheck --read-from-stdin %s',
\ 'callback': 'ale_linters#elixir#credo#Handle',
\})
diff --git a/ale_linters/elixir/dogma.vim b/ale_linters/elixir/dogma.vim
index b4f32b04..71cf4f4c 100644
--- a/ale_linters/elixir/dogma.vim
+++ b/ale_linters/elixir/dogma.vim
@@ -32,7 +32,7 @@ endfunction
call ale#linter#Define('elixir', {
\ 'name': 'dogma',
\ 'executable': 'mix',
-\ 'command': 'mix dogma %s --format=flycheck',
+\ 'command': 'mix help dogma && mix dogma %s --format=flycheck',
\ 'lint_file': 1,
\ 'callback': 'ale_linters#elixir#dogma#Handle',
\})