diff options
author | Kevin Kays <kkays@raybeam.com> | 2017-07-13 18:41:01 -0400 |
---|---|---|
committer | w0rp <w0rp@users.noreply.github.com> | 2017-07-13 23:41:01 +0100 |
commit | 4c50aec79c158a61de27f273e1d338fb1d817021 (patch) | |
tree | d37c582252ac0655e732545f85930b97567a1eb5 /test/handler | |
parent | 4c6c5bf84fa31ab18ff83122c12b7e8edb18bd1e (diff) | |
download | ale-4c50aec79c158a61de27f273e1d338fb1d817021.zip |
Add scalastyle linter (#766)
* Add support for scalastyle
* Add scalastyle docs
* scalastyle support for column numbers
* off by one column
* Add tests for scalastyle command and handler
* update readme for scalastyle
* allow full scalastyle options instead of just config file
* fix indentation
* allow scalastyle config file in parent directories by a couple names.
* check for missing match args with empty
* remove echo
* use a for loop
Diffstat (limited to 'test/handler')
-rw-r--r-- | test/handler/test_scalastyle_handler.vader | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/test/handler/test_scalastyle_handler.vader b/test/handler/test_scalastyle_handler.vader new file mode 100644 index 00000000..b03d18e7 --- /dev/null +++ b/test/handler/test_scalastyle_handler.vader @@ -0,0 +1,38 @@ +Execute(The scalastyle handler should parse lines correctly): + runtime! ale_linters/scala/scalastyle.vim + + AssertEqual + \ [ + \ { + \ 'lnum': 190, + \ 'text': 'Missing or badly formed ScalaDoc: Missing @param str', + \ 'type': 'W', + \ }, + \ { + \ 'lnum': 200, + \ 'col': 34, + \ 'text': 'There should be a space before the plus (+) sign', + \ 'type': 'E', + \ }, + \ { + \ 'lnum': 200, + \ 'col': 1, + \ 'text': 'There should be a space before the plus (+) sign', + \ 'type': 'E', + \ }, + \ ], + \ ale_linters#scala#scalastyle#Handle(347, [ + \ 'Starting scalastyle', + \ 'start file /home/test/Doop.scala', + \ 'warning file=/home/test/Doop.scala message=Missing or badly formed ScalaDoc: Missing @param str line=190', + \ 'error file=/home/test/Doop.scala message=There should be a space before the plus (+) sign line=200 column=33', + \ 'error file=/home/test/Doop.scala message=There should be a space before the plus (+) sign line=200 column=0', + \ 'end file /home/test/Doop.scala', + \ 'Processed 1 file(s)', + \ 'Found 0 errors', + \ 'Found 3 warnings', + \ 'Finished in 934 ms', + \ ]) + +After: + call ale#linter#Reset() |