Fix #643 - Add support for write-good for many languages

This commit is contained in:
Sumner Evans
2017-10-25 00:27:40 +01:00
committed by w0rp
parent 1a5ef969a5
commit 7ac07a30b8
30 changed files with 437 additions and 24 deletions

View File

@@ -0,0 +1,21 @@
Execute(The write-good handler should handle the example from the write-good README):
AssertEqual
\ [
\ {
\ 'lnum': 1,
\ 'col': 1,
\ 'type': 'W',
\ 'text': '"So" adds no meaning',
\ }
\ ],
\ ale#handlers#writegood#Handle(bufnr(''), [
\ 'In /tmp/vBYivbZ/6/test.md',
\ '=============',
\ 'So the cat was stolen.',
\ '^^',
\ '"So" adds no meaning on line 1 at column 0',
\ '-------------',
\ 'So the cat was stolen.',
\ ' ^^^^^^^^^^',
\ '"was stolen" may be passive voice on line 1 at column 11 ',
\ ])