]> git.madduck.net Git - etc/vim.git/blob - .vim/bundle/ale/test/linter/test_scalastyle.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_scalastyle.vader
1 Before:
2   call ale#assert#SetUpLinterTest('scala', 'scalastyle')
3
4 After:
5   unlet! g:ale_scalastyle_config_loc
6   call ale#linter#Reset()
7
8 Execute(Should return the correct default command):
9   AssertLinter 'scalastyle', 'scalastyle %t'
10
11 Execute(Should allow using a custom config file):
12   let b:ale_scala_scalastyle_config = '/dooper/config.xml'
13
14   AssertLinter 'scalastyle', 'scalastyle'
15   \   . ' --config ' . ale#Escape('/dooper/config.xml')
16   \   . ' %t'
17
18 Execute(Should support a legacy option for the scalastyle config):
19   unlet! g:ale_scala_scalastyle_config
20   let g:ale_scalastyle_config_loc = '/dooper/config.xml'
21
22   call ale#linter#Reset()
23   runtime ale_linters/scala/scalastyle.vim
24
25   AssertLinter 'scalastyle', 'scalastyle'
26   \   . ' --config ' . ale#Escape('/dooper/config.xml')
27   \   . ' %t'
28
29 Execute(Should allow using custom options):
30   let b:ale_scala_scalastyle_options = '--warnings false --quiet true'
31
32   AssertLinter 'scalastyle', 'scalastyle'
33   \     . ' --warnings false --quiet true'
34   \     . ' %t'