summaryrefslogtreecommitdiff
path: root/ale_linters/java
diff options
context:
space:
mode:
authorJohannes Wienke <jwienke@techfak.uni-bielefeld.de>2018-11-07 13:26:54 +0100
committerJohannes Wienke <jwienke@techfak.uni-bielefeld.de>2018-11-07 13:26:54 +0100
commit8e24a1a91658600771512e80c0c42c1ab1d6c117 (patch)
tree9f182e5ac0da01370928f18ad28c56f525842e74 /ale_linters/java
parent5d6b4ef73f1d9532fe3f16cdbf5994aa6a3eb9fe (diff)
downloadale-8e24a1a91658600771512e80c0c42c1ab1d6c117.zip
Let checkstyle only lint original files
Temporary files break checks like the one for a missing package-info.java, as discussed in #1305.
Diffstat (limited to 'ale_linters/java')
-rw-r--r--ale_linters/java/checkstyle.vim3
1 files changed, 2 insertions, 1 deletions
diff --git a/ale_linters/java/checkstyle.vim b/ale_linters/java/checkstyle.vim
index 7d0c31ba..c07b65d0 100644
--- a/ale_linters/java/checkstyle.vim
+++ b/ale_linters/java/checkstyle.vim
@@ -34,7 +34,7 @@ endfunction
function! ale_linters#java#checkstyle#GetCommand(buffer) abort
return 'checkstyle '
\ . ale#Var(a:buffer, 'java_checkstyle_options')
- \ . ' %t'
+ \ . ' %s'
endfunction
if !exists('g:ale_java_checkstyle_options')
@@ -46,4 +46,5 @@ call ale#linter#Define('java', {
\ 'executable': 'checkstyle',
\ 'command_callback': 'ale_linters#java#checkstyle#GetCommand',
\ 'callback': 'ale_linters#java#checkstyle#Handle',
+\ 'lint_file': 1,
\})