4c50aec79c
* 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
28 lines
820 B
Plaintext
28 lines
820 B
Plaintext
Before:
|
|
runtime ale_linters/scala/scalastyle.vim
|
|
|
|
After:
|
|
call ale#linter#Reset()
|
|
let g:ale_scala_scalastyle_options = ''
|
|
let g:ale_scalastyle_conf_loc = ''
|
|
|
|
Execute(Should return the correct default command):
|
|
AssertEqual
|
|
\ 'scalastyle %t',
|
|
\ ale_linters#scala#scalastyle#GetCommand(bufnr(''))
|
|
|
|
Execute(Should allow using a custom config file):
|
|
let g:ale_scalastyle_config_loc = '/dooper/config.xml'
|
|
|
|
AssertEqual
|
|
\ 'scalastyle --config ''/dooper/config.xml'' %t',
|
|
\ ale_linters#scala#scalastyle#GetCommand(bufnr(''))
|
|
|
|
Execute(Should allow using custom options):
|
|
let g:ale_scala_scalastyle_options = '--warnings false --quiet true'
|
|
|
|
AssertEqual
|
|
\ 'scalastyle --config ''/dooper/config.xml'' --warnings false --quiet true %t',
|
|
\ ale_linters#scala#scalastyle#GetCommand(bufnr(''))
|
|
|