Make temporary file detection work on just about all platforms

This commit is contained in:
w0rp
2017-09-14 00:11:17 +01:00
parent 71c2e65d64
commit a59d1ddbf3
4 changed files with 7 additions and 22 deletions

View File

@@ -16,7 +16,7 @@ Execute(The ansible-lint handler should handle basic errors):
\ },
\ ],
\ ale_linters#ansible#ansible_lint#Handle(bufnr(''), [
\ '/tmp/vxepmGL/1/main.yml:35: [EANSIBLE0002] Trailing whitespace',
\ fnamemodify(tempname(), ':h') . '/main.yml:35: [EANSIBLE0002] Trailing whitespace',
\ ])
Execute (The ansible-lint handler should handle names with spaces):
@@ -30,7 +30,7 @@ Execute (The ansible-lint handler should handle names with spaces):
\ },
\ ],
\ ale_linters#ansible#ansible_lint#Handle(bufnr(''), [
\ '/tmp/vxepm GL/1/main.yml:6:6: E111 indentation is not a multiple of four',
\ fnamemodify(tempname(), ':h') . '/main.yml:6:6: E111 indentation is not a multiple of four',
\ ])
Execute (The ansible-lint handler should ignore errors from other files):