]> git.madduck.net Git - etc/vim.git/blob - .vim/bundle/ale/test/linter/test_elixir_credo.vader

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

Do not set EDITOR/VISUAL for shell
[etc/vim.git] / .vim / bundle / ale / test / linter / test_elixir_credo.vader
1 Before:
2   call ale#assert#SetUpLinterTest('elixir', 'credo')
3   call ale#test#SetFilename('../test-files/elixir/mix_project/lib/app.ex')
4
5
6 After:
7   unlet! g:ale_elixir_credo_strict
8
9   call ale#assert#TearDownLinterTest()
10
11 Execute(Builds credo command with normal project):
12   AssertLinterCwd ale#path#Simplify(g:dir . '/../test-files/elixir/mix_project')
13   AssertLinter 'mix',
14   \ 'mix help credo && mix credo suggest --format=flycheck --read-from-stdin %s'
15
16 Execute(Builds credo command with umbrella project):
17   call ale#test#SetFilename('../test-files/elixir/umbrella_project/apps/mix_project/lib/app.ex')
18
19   AssertLinterCwd ale#path#Simplify(g:dir . '/../test-files/elixir/umbrella_project')
20   AssertLinter 'mix',
21   \ 'mix help credo && mix credo suggest --format=flycheck --read-from-stdin %s'
22
23 Execute(Builds credo command with --strict mode when set to 1):
24   let g:ale_elixir_credo_strict = 1
25
26   AssertLinter 'mix',
27   \ 'mix help credo && mix credo --strict --format=flycheck --read-from-stdin %s'
28
29 Execute(Builds credo command with suggest mode by default):
30   AssertLinter 'mix',
31   \ 'mix help credo && mix credo suggest --format=flycheck --read-from-stdin %s'
32
33 Execute(Builds credo command with suggest mode when set to 0):
34   let g:ale_elixir_credo_strict = 0
35
36   AssertLinter 'mix',
37   \ 'mix help credo && mix credo suggest --format=flycheck --read-from-stdin %s'
38
39 Execute(Builds credo command with a custom config file):
40   let g:ale_elixir_credo_config_file = '/home/user/custom_credo.exs'
41
42   AssertLinter 'mix',
43   \ 'mix help credo && mix credo suggest --config-file /home/user/custom_credo.exs --format=flycheck --read-from-stdin %s'