Fix #1048 - Do not lint files named "."

This commit is contained in:
w0rp
2017-10-26 20:29:23 +01:00
parent 3ab069c9bd
commit 3ac92ea529
2 changed files with 20 additions and 0 deletions

View File

@@ -61,6 +61,12 @@ function! ale#ShouldDoNothing(buffer) abort
return 1
endif
let l:filename = fnamemodify(bufname(a:buffer), ':t')
if l:filename is# '.'
return 1
endif
" Do nothing if running in the sandbox
if ale#util#InSandbox()
return 1