mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-07 21:24:33 +08:00
#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:
@@ -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)',
|
||||
\ ])
|
||||
|
||||
Reference in New Issue
Block a user