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.
2 runtime ale_linters/java/javac.vim
4 call ale#test#SetDirectory('/testplugin/test')
5 call ale#test#SetFilename('dummy.java')
8 call ale#test#RestoreDirectory()
9 call ale#linter#Reset()
11 Execute(The javac handler should handle cannot find symbol errors):
15 \ 'filename': ale#path#Simplify('/tmp/vLPr4Q5/33/foo.java'),
17 \ 'text': 'error: some error',
21 \ 'filename': ale#path#Simplify('/tmp/vLPr4Q5/33/foo.java'),
24 \ 'text': 'error: cannot find symbol: BadName',
28 \ 'filename': ale#path#Simplify('/tmp/vLPr4Q5/33/foo.java'),
31 \ 'text': 'error: cannot find symbol: BadName2',
35 \ 'filename': ale#path#Simplify('/tmp/vLPr4Q5/33/foo.java'),
37 \ 'text': 'warning: some warning',
41 \ 'filename': ale#path#Simplify('/tmp/vLPr4Q5/33/foo.java'),
44 \ 'text': 'error: cannot find symbol: bar()',
48 \ 'filename': ale#path#Simplify('/tmp/vLPr4Q5/33/foo.java'),
51 \ 'text': 'error: incompatible types: Bar cannot be converted to Foo',
55 \ ale_linters#java#javac#Handle(bufnr(''), [
56 \ '/tmp/vLPr4Q5/33/foo.java:1: error: some error',
57 \ '/tmp/vLPr4Q5/33/foo.java:2: error: cannot find symbol',
60 \ ' symbol: class BadName',
61 \ ' location: class Bar',
62 \ '/tmp/vLPr4Q5/33/foo.java:34: error: cannot find symbol',
63 \ ' BadName2 foo() {',
65 \ ' symbol: class BadName2',
66 \ ' location: class Bar',
67 \ '/tmp/vLPr4Q5/33/foo.java:37: warning: some warning',
68 \ '/tmp/vLPr4Q5/33/foo.java:42: error: cannot find symbol',
71 \ ' symbol: method bar()',
72 \ '/tmp/vLPr4Q5/33/foo.java:58: error: incompatible types: Bar cannot be converted to Foo',
73 \ ' this.setFoo(bar);',
78 Execute(The javac handler should resolve files from different directories):
82 \ 'filename': ale#path#Simplify(g:dir . '/Foo.java'),
84 \ 'text': 'error: some error',
88 \ 'filename': ale#path#Simplify(g:dir . '/Bar.java'),
90 \ 'text': 'error: some error',
94 \ ale_linters#java#javac#Handle(bufnr(''), [
95 \ './Foo.java:1: error: some error',
96 \ './Bar.java:1: error: some error',