#977 Complain about the lack of configuration files for scalastyle in such a way that users will be directed towards getting it to work

This commit is contained in:
w0rp
2017-10-15 00:20:43 +01:00
parent 515dcdef29
commit 90d4fb139c
3 changed files with 41 additions and 4 deletions

View File

@@ -1,6 +1,10 @@
Execute(The scalastyle handler should parse lines correctly):
Before:
runtime! ale_linters/scala/scalastyle.vim
After:
call ale#linter#Reset()
Execute(The scalastyle handler should parse lines correctly):
AssertEqual
\ [
\ {
@@ -34,5 +38,16 @@ Execute(The scalastyle handler should parse lines correctly):
\ 'Finished in 934 ms',
\ ])
After:
call ale#linter#Reset()
Execute(The scalastyle linter should complain when there is no configuration file):
AssertEqual
\ [
\ {
\ 'lnum': 1,
\ 'text': '(See :help ale-scala-scalastyle) No scalastyle configuration file was found.',
\ },
\ ],
\ ale_linters#scala#scalastyle#Handle(347, [
\ 'scalastyle 1.0.0',
\ 'Usage: scalastyle [options] <source directory>',
\ ' -c, --config FILE configuration file (required)',
\ ])