Fix #518 Fix handling of spaces in filenames for various linters

This commit is contained in:
w0rp
2017-04-29 17:33:18 +01:00
parent cbb01e32b9
commit 0b4acd6453
10 changed files with 200 additions and 48 deletions

View File

@@ -1,6 +1,10 @@
Execute(The mypy handler should parse lines correctly):
Before:
runtime ale_linters/python/mypy.vim
After:
call ale#linter#Reset()
Execute(The mypy handler should parse lines correctly):
AssertEqual
\ [
\ {
@@ -22,5 +26,16 @@ Execute(The mypy handler should parse lines correctly):
\ "file.py:40:5: error: Some other problem",
\ ])
After:
call ale#linter#Reset()
Execute(The mypy handler should handle Windows names with spaces):
AssertEqual
\ [
\ {
\ 'lnum': 4,
\ 'col': 0,
\ 'text': "No library stub file for module 'django.db'",
\ 'type': 'E',
\ },
\ ],
\ ale_linters#python#mypy#Handle(347, [
\ "C:\something\with spaces.py:4: error: No library stub file for module 'django.db'",
\ ])