]> git.madduck.net Git - etc/vim.git/blob - .vim/bundle/ale/test/handler/test_scalastyle_handler.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:

Merge commit 'd49e95aa7ba744f0a7f544aca43afdb6aab41f24' as '.vim/bundle/asyncomplete...
[etc/vim.git] / .vim / bundle / ale / test / handler / test_scalastyle_handler.vader
1 Before:
2   runtime! ale_linters/scala/scalastyle.vim
3
4 After:
5   call ale#linter#Reset()
6
7 Execute(The scalastyle handler should parse lines correctly):
8   AssertEqual
9   \ [
10   \   {
11   \     'lnum': 190,
12   \     'text': 'Missing or badly formed ScalaDoc: Missing @param str',
13   \     'type': 'W',
14   \   },
15   \   {
16   \     'lnum': 200,
17   \     'col': 34,
18   \     'text': 'There should be a space before the plus (+) sign',
19   \     'type': 'E',
20   \   },
21   \   {
22   \     'lnum': 200,
23   \     'col': 1,
24   \     'text': 'There should be a space before the plus (+) sign',
25   \     'type': 'E',
26   \   },
27   \ ],
28   \ ale_linters#scala#scalastyle#Handle(347, [
29   \    'Starting scalastyle',
30   \    'start file /home/test/Doop.scala',
31   \    'warning file=/home/test/Doop.scala message=Missing or badly formed ScalaDoc: Missing @param str line=190',
32   \    'error file=/home/test/Doop.scala message=There should be a space before the plus (+) sign line=200 column=33',
33   \    'error file=/home/test/Doop.scala message=There should be a space before the plus (+) sign line=200 column=0',
34   \    'end file /home/test/Doop.scala',
35   \    'Processed 1 file(s)',
36   \    'Found 0 errors',
37   \    'Found 3 warnings',
38   \    'Finished in 934 ms',
39   \ ])
40
41 Execute(The scalastyle linter should complain when there is no configuration file):
42   AssertEqual
43   \ [
44   \   {
45   \     'lnum': 1,
46   \     'text': '(See :help ale-scala-scalastyle) No scalastyle configuration file was found.',
47   \   },
48   \ ],
49   \ ale_linters#scala#scalastyle#Handle(347, [
50   \   'scalastyle 1.0.0',
51   \   'Usage: scalastyle [options] <source directory>',
52   \   ' -c, --config FILE               configuration file (required)',
53   \ ])