debride: Add debride linter (closes #2471)

This commit is contained in:
Eddie Lebow
2019-08-13 01:32:18 -04:00
parent 28c93ab185
commit 501af8dd8b
6 changed files with 92 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
Before:
runtime ale_linters/ruby/debride.vim
After:
call ale#linter#Reset()
Execute(The debride linter parses output correctly):
AssertEqual
\ [
\ {
\ 'lnum': 2,
\ 'text': 'Possible unused method: image_tags',
\ 'type': 'W',
\ },
\ {
\ 'lnum': 7,
\ 'text': 'Possible unused method: not_deleted',
\ 'type': 'W',
\ }
\ ],
\ ale_linters#ruby#debride#HandleOutput(0, [
\ 'These methods MIGHT not be called:',
\ '',
\ 'Image',
\ ' image_tags app/models/image.rb:2',
\ ' not_deleted app/models/image.rb:7'
\])