summaryrefslogtreecommitdiff
path: root/ale_linters/scala/scalastyle.vim
diff options
context:
space:
mode:
Diffstat (limited to 'ale_linters/scala/scalastyle.vim')
-rw-r--r--ale_linters/scala/scalastyle.vim2
1 files changed, 2 insertions, 0 deletions
diff --git a/ale_linters/scala/scalastyle.vim b/ale_linters/scala/scalastyle.vim
index 3232d70b..42228cf6 100644
--- a/ale_linters/scala/scalastyle.vim
+++ b/ale_linters/scala/scalastyle.vim
@@ -53,12 +53,14 @@ function! ale_linters#scala#scalastyle#GetCommand(buffer) abort
\ 'scalastyle_config.xml',
\ 'scalastyle-config.xml'
\]
+
for l:config in l:potential_configs
let l:scalastyle_config = ale#path#ResolveLocalPath(
\ a:buffer,
\ l:config,
\ ''
\)
+
if !empty(l:scalastyle_config)
break
endif