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 \ ])